Let mod add geo even if map has none!
Posted: 09 Apr 2011, 19:56
Some maps do not have geovents.
I have a gadget that lays geovents on the metal spots of such map.
This gadget only work when the feature "geovent" is actually defined.
Old mapconv used to declare geovent and many kind of trees whenever compiling a map, even if no feature of this type was actually placed.
Some newest map compiler do not add the geovent feature def in the map when there isn't any geovent placed on the map.
On those maps, Kernel Panic gadget Lua fails.
I want to fix that Kernel Panic gadget.
I am trying to add a geovent feature (or a "datavent" feature with geoThermal=true) into the pregame FeatureDefs_post.
It appears to be impossible because FeatureHandler.cpp doesn't read any geoThermal tag or similar. So only the engine can make a geovent feature, and if it decide to not, I'm screwed. Mods cannot have their own geo!
An additional issue is that the engine add (or not) the geovent feature *after* the pregame featuredefs_post.lua, so inside the FeatureDefs_post I can't even know if the engine will decide to add a geovent feature def or not.
I request geovent feature def to be always added by engine.
Baring that I request letting mods add their own geothermal vents.
I have a gadget that lays geovents on the metal spots of such map.
This gadget only work when the feature "geovent" is actually defined.
Old mapconv used to declare geovent and many kind of trees whenever compiling a map, even if no feature of this type was actually placed.
Some newest map compiler do not add the geovent feature def in the map when there isn't any geovent placed on the map.
On those maps, Kernel Panic gadget Lua fails.
I want to fix that Kernel Panic gadget.
I am trying to add a geovent feature (or a "datavent" feature with geoThermal=true) into the pregame FeatureDefs_post.
It appears to be impossible because FeatureHandler.cpp doesn't read any geoThermal tag or similar. So only the engine can make a geovent feature, and if it decide to not, I'm screwed. Mods cannot have their own geo!
An additional issue is that the engine add (or not) the geovent feature *after* the pregame featuredefs_post.lua, so inside the FeatureDefs_post I can't even know if the engine will decide to add a geovent feature def or not.
I request geovent feature def to be always added by engine.
Baring that I request letting mods add their own geothermal vents.