| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0003197 | Spring engine | General | public | 2012-07-15 22:33 | 2012-07-16 12:12 | ||||
| Reporter | nixtux | ||||||||
| Assigned To | Kloot | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | no change required | ||||||
| Product Version | 89.0 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0003197: seismicSignature defaults broken | ||||||||
| Description | the 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 | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | |||||||||
| Attached Files |  | ||||||||
|  Notes | |
| FLOZi (reporter) 2012-07-16 00:12 | 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 | 
| Kloot (developer) 2012-07-16 12:12 | 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. | 
|  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 | 

 
	