View Issue Details

IDProjectCategoryView StatusLast Update
0003390Spring engineLuapublic2013-01-08 14:40
ReporterRafal99 Assigned ToKloot  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version91.0 
Fixed in Version91.0.1+git 
Summary0003390: Mapinfo tags "hardness" and "notDeformable" are not accessible from lua
DescriptionLuaConstGame 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);
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Rafal99

2013-01-08 08:31

reporter   ~0009575

Last edited: 2013-01-08 08:31

No wait, it should be LuaPushNamedBool in case of notDeformable tag.

Kloot

2013-01-08 14:40

developer   ~0009576

https://github.com/spring/spring/commit/01587c27bbcf4211c1578b201b3ceda5178c7b83 (read the comment about notDeformable)

Issue History

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
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