Is there a guide for the City Name Manager? I made some changes in CMC to do with the new tiles in Anatolia and the cities on said tiles are never renamed.
Khajuraho/Wat Preah PisnulokWhich wonder?
Hinduism as state religion, both hinduism and buddhism are present in the city.Do you have the right religions including state religion?
CvPlot::canTrain > if (GC.getUnitInfo(eUnit).isPrereqBonuses())I am working on a mystery new civ!
I'd like to give them a UP that allows them to build certain units without having access to the required strategic resource. The brute-force solution is to create, for every affected unit, a unique unit that looks identical but does not require the resource. Does anyone know of a more elegant solution?
Also, what are people's preferred strategies to edit the SettlerMaps and WarMaps?
Also, what are people's preferred strategies to edit the SettlerMaps and WarMaps?
doNuclearMeltdown in CvRandomEventsInterface.py.
Another question: Where does one edit the areas that are shown in the tooltip for UHV purposes? E.g. tiles showing as "Mesopotamia" when playing as Greece, etc.
EDIT: Also, I am adding a new wonder, but the game crashes when I try to select it in a city (or when construction should start after finishing the previous item). The button and civilopedia entry work fine, and I am fairly confident I incremented the numbers of buildings in the right places—anyone has an intuition of what might be going wrong?
Another question: Where does one edit the areas that are shown in the tooltip for UHV purposes? E.g. tiles showing as "Mesopotamia" when playing as Greece, etc.
EDIT: Also, I am adding a new wonder, but the game crashes when I try to select it in a city (or when construction should start after finishing the previous item). The button and civilopedia entry work fine, and I am fairly confident I incremented the numbers of buildings in the right places—anyone has an intuition of what might be going wrong?
Thanks, these two items solved my questions.UHV tooltip: Python/Entrypoints/CvScreenInterface.py @ getUHVTileInfo(). The text key is in XML/Texts/Regions.xml
Does the button path of the wonder art start with a comma? It shouldn't. (Unless you are using a button atlas, but I assume you don't.)
I should probably not ask questions here when I'm tired and actually put some effort into looking for answers...To the person asking about UHV era tooltips: Read the last page, I asked the same question and received two answers.
Thanks, that seems to be what I am looking for. However, the code is rather confusing—I understand the general structure of the code (if any condition for unit training is not met, return false), but there are many if-statements in there that seem related to bonuses. Have you done something like what I'm trying to do? I'm trying to solve it on my own, but if somebody has experience with disabling resource requirements for specific units/civs, I'd be very grateful. I guess my main concern is that I often don't know what's possible and what's not when editing C++ code. For instance, how do I reference specific units?CvPlot::canTrain > if (GC.getUnitInfo(eUnit).isPrereqBonuses())
if (GC.getUnitInfo(eUnit).getPrereqAndBonus() != NO_BONUS)
Thanks, it worked! Though I'd like to restrict the UP to melee units only. Any idea how? I triedActually the isPrereqBonuses part is not what you are looking for, and I'm not even sure what that does. Basically anything that follows
is about resource requirements. It's a bit more complicated to check because there are various combinations of possible "and" and "or" conditions. But you can wrap the whole thing in a "if (getOwner != MYSTERYCIV)" and it should be fine.Code:if (GC.getUnitInfo(eUnit).getPrereqAndBonus() != NO_BONUS)
if (getOwner() != MYSTERYCIV || GC.getUnitInfo(eUnit).getUnitClassType() != 1)