View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003390 | Spring engine | Lua | public | 2013-01-08 08:26 | 2013-01-08 14:40 | ||||
Reporter | Rafal99 | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | trivial | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 91.0 | ||||||||
Target Version | Fixed in Version | 91.0.1+git | |||||||
Summary | 0003390: Mapinfo tags "hardness" and "notDeformable" are not accessible from lua | ||||||||
Description | LuaConstGame exports most basic mapInfo tags to lua, except these two. While hardness can be get be accessed using Spring.GetGroundInfo(), there is no way to access "notDeformable" tag. https://github.com/spring/spring/blob/develop/rts/Lua/LuaConstGame.cpp needs these two lines: LuaPushNamedNumber(L, "mapHardness", mapInfo->map.hardness); LuaPushNamedNumber(L, "notDeformable", mapInfo->map.notDeformable); | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
Rafal99 (reporter) 2013-01-08 08:31 Last edited: 2013-01-08 08:31 |
No wait, it should be LuaPushNamedBool in case of notDeformable tag. |
Kloot (developer) 2013-01-08 14:40 |
https://github.com/spring/spring/commit/01587c27bbcf4211c1578b201b3ceda5178c7b83 (read the comment about notDeformable) |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-01-08 08:26 | Rafal99 | New Issue | |
2013-01-08 08:31 | Rafal99 | Note Added: 0009575 | |
2013-01-08 08:31 | Rafal99 | Note Edited: 0009575 | View Revisions |
2013-01-08 14:40 | Kloot | Note Added: 0009576 | |
2013-01-08 14:40 | Kloot | Status | new => resolved |
2013-01-08 14:40 | Kloot | Fixed in Version | => 91.0.1+git |
2013-01-08 14:40 | Kloot | Resolution | open => fixed |
2013-01-08 14:40 | Kloot | Assigned To | => Kloot |