how to extract firerate from transdata

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Hi,
i'm trying to extract firerate from transdata /itemtable

so, if you do transdata /itemtable /help
there is no /firerate option available (there is /firedelay, but that's not it)
however if you try, /firerate is accepted as a parameter and returns values for weapons.
now, I don't know how to convert these values to what I read in the XML.
For example, for the recoilless cannon (firerate 16) transdata returns 125

But do not despair!
extract with transdata /itemtable /criteria:"w" /damage /averagedamage
then do:

averageDamage*360/damage = firerate

:)
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

digdug wrote:averageDamage*360/damage = firerate
 The /fireRate switch gives the same value as (typGetProperty weaponType 'fireRate). In one of my utility mods, I use (divide 2000 (typGetProperty weaponType 'fireRate)) to get the XML fireRate value. It’s… mostly accurate; weapons with an odd number fireRate return their fireRate-plus-one.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

AH !
thanks AP !

(btw, odd firerates don't exist. a firerate of 15 is the same as firerate 16 for the engine)
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

 Actually, I think I remember having seen somewhere that the odd number fireRate weapons interact slightly differently with fireRateAdj and speed enhancements. For most intents and purposes, though, odd numbers are the same as odd-plus-one, yeah.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
Post Reply