• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

(Solved) Is it possible to hide buildings/wonders from the world view? (XML or DLL)

Synthlight

Chieftain
Joined
Jan 19, 2014
Messages
5
Does anyone know how/if it's possible to hide the buildings/wonders so they are hidden from view on the map? I don't want the building itself to be completely invisible; it should still be buildable/demolishable/listable from within the city management I just want to 'hide' it from interfering with the city layout. (i.e. I just want cites to be filled with whatever the generic building of the era is.)

I did some digging and my best guess for doing this in XML is 'DisplayPosition' but I can't find much on how that works so I don't know if this is the right way.

Now I pleasantly discover that the DLL/source is available and am wondering if that provides an easier solution?
If I were to alter "m_iPreferredDisplayPosition = kResults.GetInt("DisplayPosition");" (in 'CvBuildingClasses.cpp, CvBuildingEntry::CacheResults') would that possible work? If I override this to 0 will buildings be invisible or will only slot 0 be displayed? (Is -1 valid or will that ruin/crash things?)

Does anyone know where the function is for actually displaying buildings in the world view?

PS: I'm no stranger to C/C++ or Lua I just have no idea how this works in relation to Civ V modding.
 
Back
Top Bottom