2025-07-19 11:19 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003197Spring engineGeneralpublic2012-07-16 12:12
Reporternixtux 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
Product Version89.0 
Target VersionFixed in Version 
Summary0003197: seismicSignature defaults broken
Descriptionthe wiki shows that this tag "seismicSignature Default: 0 for units with floater, canHover or canFly, otherwise sqrt(mass / 100.0)"

I add a small test code to unitdef_post to show defaults getting set but as you will see from link the default of sqrt(mass / 100.0) never gets set.

http://pastebin.com/XXZSpban
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009009

FLOZi (reporter)

unitdef_post is run before the defs are actually passed to the engine...

If you want to test the default, print them from UnitDefs table during the game

~0009023

Kloot (developer)

to expand on FLOZi's comment: Spring sets default values for tags _after_ unitdefs*.lua has executed, the scripts only have the _raw_ values (as parsed from the .fbi/.lua unitdefs) available and can change what the engine sees when it asks for them.
+Notes

-Issue History
Date Modified Username Field Change
2012-07-15 22:33 nixtux New Issue
2012-07-16 00:12 FLOZi Note Added: 0009009
2012-07-16 12:12 Kloot Note Added: 0009023
2012-07-16 12:12 Kloot Status new => resolved
2012-07-16 12:12 Kloot Resolution open => no change required
2012-07-16 12:12 Kloot Assigned To => Kloot
+Issue History