View Issue Details

IDProjectCategoryView StatusLast Update
0004000Spring engineGeneralpublic2013-09-12 09:34
Reportersilentwings Assigned TojK  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version94.1.1+git 
Summary0004000: uDef.canfly is always nil in unitdefs post
Description(so is uDef.isAirUnit & likely more tags), tested with -1128
Steps To Reproduceput the following code into unitdefs_post

for name, ud in pairs(UnitDefs) do
    Spring.Echo(ud.isAirUnit, ud.canFly)
end

it will return "nil,nil" for all units, but when placed in some gadget:Initialize it will give the right results.
Additional Informationwhat i'm trying to do here is counterbalance the change in scaling for aircraft brakerate
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

jK

2013-09-12 06:20

developer   ~0011591

_post.lua get what _you_ send to the engine: no default inserts, no scalings done, ...
just pure lua tables with random strings in it

Kloot

2013-09-12 09:34

developer   ~0011592

FYI: all the "raw" tags are accessible in _post but you must use LOWERCASE keys (ud.canfly)

Issue History

Date Modified Username Field Change
2013-09-12 01:35 silentwings New Issue
2013-09-12 06:20 jK Note Added: 0011591
2013-09-12 06:20 jK Status new => closed
2013-09-12 06:20 jK Assigned To => jK
2013-09-12 06:20 jK Resolution open => no change required
2013-09-12 09:34 Kloot Note Added: 0011592
2013-09-12 09:34 Kloot Status closed => feedback
2013-09-12 09:34 Kloot Resolution no change required => reopened
2013-09-12 09:34 Kloot Status feedback => closed
2013-09-12 09:34 Kloot Resolution reopened => no change required