Dynaverse.net

Taldrenites => Starfleet Command Mission Scripting => Topic started by: David Ferrell on January 29, 2003, 04:00:55 pm

Title: SFC3 Scripting API available now.
Post by: David Ferrell on January 29, 2003, 04:00:55 pm
http://208.57.228.4/Scripts_Source/SFC3_Scripting_API.zip

Check the readme for the important changes from SFC2/OP.  The major difference is in that the script
interface need not be built.  Simply build the script you are working on by itself.

The API is for use with the 1.01 patch for SFC3 (not yet available).

Thanks,

Dave  
Title: Re: SFC3 Scripting API available now.
Post by: NuclearWessels on January 29, 2003, 05:27:08 pm
Good good news!  Thanks Dave!

OK, the good news and bad news folks

The good news is that API is VERY similar to OP's, so if you've done any scripting on EAW or OP you'll have no problems adjusting to SFC3.

Of course, the bad news is that the API is VERY similar to OP's, so if you don't have some C++ background it can be pretty tough sledding.  The guide I put together for SFC2 mission scripting should still be helpful, but the setup steps have changed and more methods have been added, and there's some changes in the ship creation methods, so I'm afraid it's just going to be winging it for awhile.  I'll try to put together an SFC3 version of the mission scripting guide, but I won't be able to go near that until at least the end of February.

A couple of features and notes that might be of interest,

 - the mGetHexType method works, at least for identifying the hex owner (I'm having some problems getting it to identify the terrain features correctly, but that may be a glitch of mine)

 - you'll need to install the DirectX SDK if you haven't already (the 8.whatever version is ok)

 - there's an mChangeShipProperties method floating around that allows you to set visible/indestructable/collide options, could be fun to play with

I'm sure there's lots and  lots more, but that's what I've seen from the first pass
dave


   
Title: Re: SFC3 Scripting API available now.
Post by: 3dot14 on January 29, 2003, 05:28:49 pm
hopefully this will be the start of some wonderful mission scripts.

BTW. the file is mirrored at SFU/fileplanet:
http://www.strategyplanet.com/sfc/missionapi.shtml#sfc3
Title: Re: SFC3 Scripting API available now.
Post by: FPF_TraceyG on January 29, 2003, 07:01:33 pm
Excellant... great news. I know a lot of people have been waiting for this one!
Title: Re: SFC3 Scripting API available now.
Post by: clintk on January 29, 2003, 07:03:44 pm
Yippee !
Title: Re: SFC3 Scripting API available now.
Post by: clintk on January 29, 2003, 07:25:20 pm
Some interesting functions:

mSetShipImmediateSpeed
mSetWarpSpeed
mChangeAppearance
mChangeShipsProperties
mSetHullStrengthFromOriginal
mSetShipLoadout
mSetShuttles
mSetFighters
mRegisterCommOption
mSetTeamCarryingStarbaseSeed
mIsTeamCarryingStarbaseSeed
mEnableSpectate
mGetMaxClassType
mAllInPosition
mHeartbeat

And events:

mOnCloakStatusChange
mOnShuttleLaunchLandEvent
mOnShieldStatusChange
mOnNewTeam
Title: Re: SFC3 Scripting API available now.
Post by: Toasty0 on January 29, 2003, 09:59:00 pm
Also of interest is that the VC++.NET 2002 IDE is getting cranky with the scripts.

Not sure what it is yet that is the problem.

Best,
Jerry  
Title: Re: SFC3 Scripting API available now.
Post by: KOTH-Steel Claw on January 30, 2003, 06:03:24 am
Glad to see this! I am not the programmer type, but I know some of the folks posting here are. This will do much to keep the D3 alive.
Title: Re: SFC3 Scripting API available now.
Post by: KATChuutRitt on January 30, 2003, 08:04:23 am
Yes the work these guys have done in the past is amazing, if anything can cure the ills of this game it will likely start here.

Keep at it guys!!.....
Title: Re: SFC3 Scripting API available now.
Post by: Stylsy on January 30, 2003, 10:54:28 am
This is great news, thanks!
Title: Re: SFC3 Scripting API available now.
Post by: Karnak on January 30, 2003, 12:42:26 pm
Cry havoc and let loose the programmer wolves/frogs of war, hehe.  
Title: Re: SFC3 Scripting API available now.
Post by: Centauri Vaughn on January 30, 2003, 02:16:10 pm
Whoohooo!!!  Its about time..Thanks Dave  
Title: Re: SFC3 Scripting API available now.
Post by: Chris Jones on January 30, 2003, 03:39:57 pm
CENTAURI VAUGHN old pal... I knew you'd chime in here!


Thanks, Dave
Title: Re: SFC3 Scripting API available now.
Post by: RedHotChiliDog on February 02, 2003, 05:08:49 pm
This is great news!  Thanks!
 
Title: Re: SFC3 Scripting API available now.
Post by: Toasty0 on June 29, 2003, 01:29:53 pm
Anyone used this API with the DX9 SDK?

Best,
Jerry  
Title: Re: SFC3 Scripting API available now.
Post by: Toasty0 on June 29, 2003, 04:36:45 pm
Never mind. I just tried to compile one of the included scripts and it whined about the D3DX8Math.h .

I guess it is safe to assume it is certainly not looking for any DX9 headers or includes. *sigh*

EDIT:Oh lord, save me from myself. I found the proper files and installed them in the proper lib or include folder. The scripts/api does work with DX9.0a using the VS6.0sp5 IDE. Gonna check whether or not doing the newer DX9.0s SDK with VS.Net2003 will solve the interlockexchange compile error.
Best,
Jerry  
Title: Re: SFC3 Scripting API available now.
Post by: Tombstone on August 18, 2003, 02:47:39 pm
I have the DXSDK 9.0b installed with MS Visual Studio 6.0 and do not have any compiler errors.  Just thought I'd mention it.
Title: Re: SFC3 Scripting API available now.
Post by: David Ferrell on May 05, 2004, 05:09:19 pm
The new API for build 531 and later is available

here:
http://www.daywebhosting.com/SFC3_Scripting_API.zip
and here:
http://64.22.246.5/GermanScripts/SFC3_Scripting_API.zip

Thanks,

Dave  
Title: Re: SFC3 Scripting API available now.
Post by: fox on May 11, 2004, 11:10:02 am
I have two questions about the new Api:

Where can I get the files for the misiion "Meta_Casino"?
Which is the correct folder for "kli_friendorfoe", because there is a folder "kli_friendorfoe" and a folder "kli_fiendorfoe"?