Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:50:03 am

Login with username, password and session length
Check out XenoCorp.Net's FTP site !! Over 10 GB of gaming files for your downloading pleasure: ftp.xenocorp.net
692192 Posts in 49566 Topics by 2957 Members
Latest Member: Jasoneagle
* Home Help Search Calendar Login Register
Dynaverse.net  |  Taldrenites  |  Starfleet Command Mission Scripting  |  Topic: OP API scripting methods: functions that do not work properly 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: OP API scripting methods: functions that do not work properly  (Read 815 times)
FPF-SCM_TraceyG_XC
Empress of the Empire
Global Moderator
Commander
*
Offline Offline

Gender: Female
Posts: 2543



OP API scripting methods: functions that do not work properly
« on: December 22, 2004, 05:33:25 am »

By no means complete, I've started compiling a list of functions that do and do not work. In this thread I'm going to list those that do not work (or partially work but have a workaround for them). I'll add to this list from time to time.

class tShipInfo

The following functions do not work at all and always return zero (the first one does in fact work in EAW):

int32   mGetBPV( void );   (see here for the fix http://www.dynaverse.net/forum/index.php/topic,163350382.0.html )
int32   mGetTotalBPV( void ); this function was never implemented and has no member in tshipinfo class that corresponds to it

The following functions appear to do nothing:

void   mSetWeaponState( eWeaponStates weaponState );

The following functions work partially but improperly:

eClassTypes   mGetClassType( void ); (see here for the fix http://www.dynaverse.net/forum/index.php/topic,163350349.0.html )

class tTeamInfo

The following functions do not work at all and always return zero:

int32   mGetTotalCombatBPV( void );


Unlike EAW, there is no way for an OP script to get the exact BPV of a ship without using Magnum Man's API shiplist tool. Only team->mGetCombatBPV() works, however this returns the combined total BPV for all ships in one team, so if there is more than one ship, you cannot calculate individual BPV's. Fortunately the hull class can be determined (see other thread for the fix) which means that AI matching must use a combination of hull class and BPV to get a balanced matchup in scripts for OP (until the source code is released of course).
« Last Edit: December 22, 2004, 11:07:48 am by FPF-TraceyG » Logged

Captain FPF-TraceyG, Federation Protection Fleet


SFC2.net Admin member
SFC3.net Admin member
Voting member of the DGA
Member of XenoCorp, Squadron Commodore
el-Karnak
Serverkit Development Team
Lt. Commander
*
Offline Offline

Gender: Male
Posts: 1214



WWW
Re: OP API scripting methods: functions that do not work properly
« Reply #1 on: January 25, 2005, 04:22:05 pm »

That's neat. Grin

EEK always uses the Team BPV values and the player ship GetBPV functions always worked for me, so I never had the need for getting AI ship BPV.  mGetClassType fix I did in EEK a year ago and I totally forgot that I did it in my common libs until I read this thread.

What we really need though in the missions is the ability to pull out the stardate from the dyna.  Then you're cooking with gas. Grin
Logged

el-Karnak

Addled SFCOP/SFC3 Mission scripter.

Hankism
"Trees get sap on you.  You have to rake their leaves.  They fall in the forest and you can't hear them.  You can't trust them."
Pages: [1] Print 
Dynaverse.net  |  Taldrenites  |  Starfleet Command Mission Scripting  |  Topic: OP API scripting methods: functions that do not work properly « previous next »
Jump to:  

Powered by MySQL Powered by PHP Dynaverse.net | Powered by SMF 1.0.15.
© 2001-2008, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
Page created in 0.094 seconds with 21 queries.