Dynaverse.net
Taldrenites => Starfleet Command Mission Scripting => Topic started by: SkyFlyer on July 24, 2003, 03:25:45 am
-
Are the scripts compatible? IE. Could a script written for EAW work for OP?
-
No ..the API's are slightly different.....
-
.. but the differences from EAW to OP are minor.. (there's a couple).. than you have to add the functions OP has that EAW doesn't.
.. usually, a straight recompile works.
-- Luc
-
Firesoul,
THese might be good for the OP FAQ in the general forums.
Rhaz
-
to be honest, it's not a frequent questions.
-
Quote:
Are the scripts compatible? IE. Could a script written for EAW work for OP?
I use the same source code for both platforms. By using preprocessed defines I can include/exclude the OP code needed to generate OP scripts.
-
Quote:
Quote:
Are the scripts compatible? IE. Could a script written for EAW work for OP?
I use the same source code for both platforms. By using preprocessed defines I can include/exclude the OP code needed to generate OP scripts.
There's a couple of differences..
..something involving speed.. what was it... .. function's the same, but named differently.
As for the defines, are those that I got from MagnumMan and passed on?
You know.. there's an entry in the OP API concerning sound.. (x-phaser?) and if that define is there, then it's OP..
That thing?
-- Luc
-
When I looked at the OP scripts supplied by Taldren the only source code difference I saw was the message briefing setup and, of course, the API directory you get the Taldren libraries from. All I did was put in this code:
#ifdef SFCOP
for ( int32 j = kFederation; j <= kOrionCamboro; j++ )
#elif
for ( int32 j = kFederation; j <= kMirak; j++ )
#endif
You define SFCOP for OP compile in your Project's preprocessor definitions and undefine it for EAW compiles. Everything works fine in OP, but a few sound files are missing like Sulu voice playbacks so put #ifdef around such code blocks too. I made up the SFCOP define. You call it whatever you want, just be consistent. You can also use these #ifdef blocks for accessors that work in OP but not it EAW.