The Modding Q&A Thread

Okay, n00b question: How do I make it so I can mouse over a tile and get the coords?

Do the following steps:

1) Go to your CivilizationIV.ini
2) Go to "cheatcode"
3) Delete the '0', and instead right, "chipotle"
4) Load up a game, hover over a tile and press the "ctrl" key

That should do the trick ;)
 
Do the following steps:

1) Go to your CivilizationIV.ini
2) Go to "cheatcode"
3) Delete the '0', and instead right, "chipotle"
4) Load up a game, hover over a tile and press the "ctrl" key

That should do the trick ;)

The derpasaurus rex running around in my head is laughing at me as because it didn't work
:sad:

In fact I can't get the console running either :confused:
 
The derpasaurus rex running around in my head is laughing at me as because it didn't work
:sad:

In fact I can't get the console running either :confused:

To tell you the truth I forgot what the exact name was, but it should be something along the lines of Cheatconsle or CheatCode. Send me your civilization IV ini, and I can take a look
 
double post
 
To tell you the truth I forgot what the exact name was, but it should be something along the lines of Cheatconsle or CheatCode. Send me your civilization IV ini, and I can take a look

CheatCode = chipotle
 
CheatCode = chipotle

Yes, thats what its supposed to say. Save, and then hold down the ctrnl key, alternatively you can now click ctrl+Z, and the map will be unveiled.
 
I'm trying to find the coords of tiles so I can spawn resources
 
With cheat mode enabled, hold down the shift key and hover a tile. The coordinates are displayed in the plot info box (bottom left).
 
With cheat mode enabled, hold down the shift key and hover a tile. The coordinates are displayed in the plot info box (bottom left).

yes sorry, its supposed to be shift key, not ctrl! :hammer2:

Oh and Baldyr, nice to see you still posting! :)
 
Can anyone sum up the exact function of the "core areas", "normal areas" and "broader areas" in Consts.py as they relate to unit and city flipping, stability etc?
 
So after setting up chipotle I still can't see plot coords while pressing shift.
 
Hi Everyone,

No one answered my issue with adding in an event into my mod, so i've decided to make is simpler by just adding them in to this thread (below). Basically the event should remove a Catholic Reliquary in Jerusalem, and spawn a "True_Cross" unit in the city. And it should only happen with the Crusaders (KoJ) capture the city.

Basically the problem currently is that when the Crusaders capture the city, the player receives a "Relic" unit and the Catholic Reliquary building remains there. Part 2 of the problem is that the "True_Cross" unit does not spawn, and as I said before, it is the Relic unit that still spawns.

The second half of the code handles the normal relic recovering event, which is fine; its just that for that ONE time when the Crusaders (KoJ) capture Jerusalem, the "True_Cross_Recovered" Event needs to trigger, instead of the "Relic_Recovered".

CvRFCEventHandler.py:
Spoiler :
PHP:
# Relics/True Cross (The Turk)
		if iNewOwner < iNumPlayers and bConquest:
			if iNewOwner == con.iCrusaders and (city.getX(), city.getY()) == con.tJerusalem:
				pNewOwner.initTriggeredData(gc.getInfoTypeForString("EVENTTRIGGER_TRUE_CROSS_RECOVERED"), True, city.getID(), city.getX(), city.getY(), -1, -1, -1, -1, -1, -1, "")
			else:
				bFound = False
				for i in [con.iCatholicReliquary, con.iOrthodoxReliquary, con.iSunniReliquary, con.iShiaReliquary, con.iHinduReliquary]:
					if city.getNumRealBuilding(i) > 0:
						city.setNumRealBuilding(i, 0)
						bFound = True
				if not bFound:
					iChance = 1
					if (city.getX(), city.getY()) in [con.tBaghdad, con.tConstantinople, con.tJerusalem]:
						iChance += 3
					if city.plot().getRegionID() in [con.rPalestine, con.rSyria, con.rNorthernSyria, con.rJazira]:
						iChance += 3
					if pNewOwner.getStateReligion() in [con.iSunni, con.iShia] and city.plot().getRegionID() in [con.rHejaz, con.rMesopotamia]:
						iChance += 3
					if gc.getGame().getSorenRandNum(100, 'Chance to find a relic') < iChance:
						bFound = True
				if bFound:
					pNewOwner.initTriggeredData(gc.getInfoTypeForString("EVENTTRIGGER_RELIC_RECOVERED"), True, city.getID(), city.getX(), city.getY(), -1, -1, -1, -1, -1, -1, "")

I've also attached other files below, but I'm afraid that the problem may be stemming from this bit of code here. Thanks to anyone who can help! :)
 
So after setting up chipotle I still can't see plot coords while pressing shift.

Did you reveal the map with Ctrl + Z? (Or is it Alt + Z? :confused:)
 
Did you reveal the map with Ctrl + Z? (Or is it Alt + Z? :confused:)

:eek2: wut? :wallbash:
130232443562.gif
 
When cheat mode is enabled you can reveal the whole map with that short-cut. It might be that you need to do this before you can see the map tile coordinates, I don't remember exactly.
 
When cheat mode is enabled you can reveal the whole map with that short-cut. It might be that you need to do this before you can see the map tile coordinates, I don't remember exactly.

No you don't need to. Just hold shift over a tile and you will get the coordinates.
 
Neither control z or alt z work
 
Neither control z or alt z work

This is getting tough to figure out now. What exactly does you civ4.ini file say, and what is your OS and Civ4 version?
 
This is getting tough to figure out now. What exactly does you civ4.ini file say, and what is your OS and Civ4 version?

"CheatCode = chipotle"

Windows XP Professional 32-bit

Civilization 4 Beyond the Sword version 3.19
 
Well that didn't help :sad: That's exacly what my setup is on one of my three computers.

Next step I can think of is a reinstall but I don't know if you want to go down that path yet.
 
Back
Top Bottom