I test my game using springlobby's singleplayer mode and it works.
I confirmed the problem, it's a "attempt to compare number with string" error when processing unitdefs_post and doing this
Code: Select all
...
local mv = unitDef.maxvelocity
if (mv and mv > 0) then <---------------- fails here
Spring.Echo(unitDef.name.." HERE! "..mv)
...
in the context of unitdefs_post , it seems it reads the unitdefs values as strings if run through the exe or weblobby, but reads them as floats when started through springlobby(edited)
[f=-000001] Stratos HERE! 4.80000019 <------ from springlobby
vs
[f=-000001] Stratos HERE! 4.8 <------ from exe/weblobby
i can fix it with a "tonumber(...)", but the fact that the exact same game package produces different results is disturbing
(same game, same map, same engine binary)