Page 1 of 1
DALLAS/Osiris cutscene functions in a D3-SDK mod
Posted: Wed Jul 11, 2007 4:34 pm
by Foil
There are a couple of DALLAS \"cutscene\" functions I'd like to incorporate into the new gametype I'm developing (using the D3-SDK in Visual Studio 2005).
When I try to incorporate the function and #include the dallasfuncs.cpp, I get a bunch of errors from one of the osiris header files.
I'm still fairly new to building C/C++ projects, so I'm hoping I'm just doing something wrong. Any help?
Posted: Wed Jul 11, 2007 4:56 pm
by Grendel
Probably the depricated default parameter value in function prototypes ? You'll have to edit them out.
Posted: Wed Jul 11, 2007 5:31 pm
by Foil
Nope, I know how to take care of those.
Posted: Wed Jul 11, 2007 6:37 pm
by Grendel
What does the error say ? (Copy the line that causes it here as well.)
Posted: Wed Jul 11, 2007 7:58 pm
by Foil
Well, it's over 100 errors, mostly \"undeclared identifier\" and \"identifier not found\".
The files are \"#include\"'d, though. They're just in a different folder; but doing the right-click \"Go To Definition/Declaration\" in VS2005 gets me right to the definition and/or declaration, so I know I'm not missing anything. It just seems like the compiler can't find them.
I'll keep playing around with it...
Posted: Wed Jul 11, 2007 8:35 pm
by DCrazy
Is it a linker error or a compiler error?
If it's a linker error, check to make sure that if OSIRIS lives in a separate library that you've specified your linker settings accordingly.
In any event, there's not much we can determine without you posting the first couple of errors generated. It would be even better if you would post the entire list at somewhere like
http://www.pastebin.com and link to it here.
Posted: Wed Jul 11, 2007 8:44 pm
by Foil
Okay, after playing around, it's clear I'm not understanding something about how the #includes work.
The errors are compiler errors:
Code: Select all
1>------ Build started: Project: JailBreak, Configuration: Release Win32 ------
1>Compiling...
1>dallasfuncs.cpp
1>c:\\d3-sdk\\osiris\\osiris_vector.h(111) : error C3861: 'srand': identifier not found
1>c:\\d3-sdk\\osiris\\osiris_vector.h(1267) : error C2065: 'RAND_MAX' : undeclared identifier
1>c:\\d3-sdk\\osiris\\osiris_vector.h(1267) : error C3861: 'rand': identifier not found
1>c:\\d3-sdk\\osiris\\osiris_vector.h(1268) : error C3861: 'rand': identifier not found
1>c:\\d3-sdk\\osiris\\osiris_vector.h(1269) : error C3861: 'rand': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(304) : error C3861: 'File_WriteInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(307) : error C3861: 'File_WriteInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(310) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(313) : error C3861: 'File_WriteInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(315) : error C3861: 'File_WriteInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(317) : error C3861: 'File_WriteByte': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(318) : error C3861: 'File_WriteInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(319) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(320) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(321) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(322) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(323) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(324) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(325) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(326) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(327) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(328) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(329) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(330) : error C3861: 'File_WriteFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(339) : error C3861: 'File_ReadInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(342) : error C3861: 'File_ReadInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(345) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(348) : error C3861: 'File_ReadInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(350) : error C3861: 'File_ReadInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(352) : error C3861: 'File_ReadByte': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(353) : error C3861: 'File_ReadInt': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(354) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(355) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(356) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(357) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(358) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(359) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(360) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(361) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(362) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(363) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(364) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(365) : error C3861: 'File_ReadFloat': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(370) : error C2065: 'msafe_struct' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(370) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(370) : error C2065: 'mstruct' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(371) : error C2228: left of '.objhandle' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(372) : error C2065: 'MSAFE_OBJECT_TYPE' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(372) : error C3861: 'MSafe_GetValue': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(374) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(374) : error C2065: 'OBJ_WEAPON' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(376) : error C2065: 'MSAFE_OBJECT_PARENT' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(376) : error C3861: 'MSafe_GetValue': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(377) : error C3861: 'MSafe_GetValue': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(379) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(379) : error C2065: 'OBJ_PLAYER' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(379) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(379) : error C2065: 'OBJ_OBSERVER' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(379) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(379) : error C2065: 'OBJ_GHOST' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(381) : error C2228: left of '.objhandle' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(385) : error C3861: 'mprintf': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(389) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(389) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(389) : error C2228: left of '.type' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(394) : error C3861: 'mprintf': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(420) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(422) : error C2228: left of '.roomnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(423) : error C2228: left of '.portalnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(424) : error C2228: left of '.flags' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(425) : error C2228: left of '.state' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(427) : error C2065: 'MSAFE_ROOM_PORTAL_RENDER' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(427) : error C3861: 'MSafe_CallFunction': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(445) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(447) : error C2228: left of '.roomnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(448) : error C2228: left of '.portalnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(449) : error C2228: left of '.state' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(451) : error C2065: 'MSAFE_ROOM_PORTAL_BLOCK' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(451) : error C3861: 'MSafe_CallFunction': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(469) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(471) : error C2228: left of '.roomnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(472) : error C2228: left of '.portalnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(474) : error C3861: 'MSafe_GetValue': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(476) : error C2228: left of '.flags' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(477) : error C2228: left of '.state' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(477) : error C2228: left of '.state' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(478) : error C3861: 'MSafe_CallFunction': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(496) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(498) : error C2228: left of '.roomnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(499) : error C2228: left of '.portalnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(501) : error C2065: 'MSAFE_ROOM_BREAK_GLASS' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(501) : error C3861: 'MSafe_CallFunction': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(531) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(533) : error C2228: left of '.roomnum' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(534) : error C2228: left of '.amount' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(535) : error C2228: left of '.index' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(537) : error C2065: 'MSAFE_ROOM_DAMAGE' : undeclared identifier
1>..\\..\\osiris\\dallasfuncs.cpp(537) : error C3861: 'MSafe_CallFunction': identifier not found
1>..\\..\\osiris\\dallasfuncs.cpp(554) : error C2146: syntax error : missing ';' before identifier 'mstruct'
1>..\\..\\osiris\\dallasfuncs.cpp(558) : error C2228: left of '.message' must have class/struct/union
1> type is ''unknown-type''
1>..\\..\\osiris\\dallasfuncs.cpp(558) : error C2228: left of '.message' must have class/struct/union
1>..\\..\\osiris\\dallasfuncs.cpp(558) : fatal error C1003: error count exceeds 100; stopping compilation
1>JailBreak.cpp
....(just warnings from there)...
I haven't touched the #include statements, and the files are in the folders as set in the D3 SDK.
(dallasfuncs.cpp and the osiris*.h files are in ..\\..\\osiris, the paths all look correct to me)
Posted: Wed Jul 11, 2007 8:59 pm
by DCrazy
Yeah, those files are all kinds of FUBAR. osiris_vector.h has source code in it and doesn't include <stdlib.h>, in which the random number generator lives. dallasfuncs.cpp doesn't include any file which would define the File_* functions, and the comment at the top of the file (\"I think there's a problem...\") doesn't even begin to describe it. Don't use them.
I'm tempted to submit this stuff to
WorseThanFailure.
Posted: Wed Jul 11, 2007 9:32 pm
by Foil
Yeah, I saw that comment, and was like \"WTH?!\"
I think I'll just try to pull out the functions (just two of 'em) that I want.
Thanks, guys.
Posted: Wed Jul 11, 2007 11:01 pm
by Grendel
Tried uncommenting the osiris_import.h include and move it above the osiris_vector.h include ?
Edit: oops, n/m
Posted: Fri Jul 13, 2007 9:36 pm
by Foil
No, didn't even work when I pulled out the functions and structs I needed. I guess the DALLAS/OSIRIS cutscene functions don't work in multiplayer at all.
Oh, well. I can still do what I wanted to, I think.