2025-07-29 23:32 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003390Spring engineLuapublic2013-01-08 14:40
ReporterRafal99 
Assigned ToKloot 
PrioritynormalSeveritytrivialReproducibilityalways
StatusresolvedResolutionfixed 
Product Version91.0 
Target VersionFixed 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
Attached Files

-Relationships
+Relationships

-Notes

~0009575

Rafal99 (reporter)

Last edited: 2013-01-08 08:31

View 2 revisions

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

~0009576

Kloot (developer)

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

-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 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
+Issue History