Help - Removing Fog of War (Revealing Entire Map)

jcikal

The Voice of Reason
Joined
Jul 23, 2005
Messages
303
How do I reveal the entire map without entering the World Builder? (That's the only solution I was able to find using the search)
 
I know it was possible to do in Civ 3, hopefully Civ 4 also has the capability. I've read through the manual but no mention of it anywhere and couldn't find anything about it in the World Builder either.
 
jcikal said:
I know it was possible to do in Civ 3, hopefully Civ 4 also has the capability. I've read through the manual but no mention of it anywhere and couldn't find anything about it in the World Builder either.

Are you speaking on a level of graphics, or on a level of having the map actually revealed to the player (the second being different in that perhaps you're messing with how the AI sees the world).

In the first case, check out the python call CyEngine().setFogOfWar(bState). Truthfully, I don't know what it does (it might just make it so that there's no fog of war on tiles you visited).

You might also find success playing with pPlot.setRevealed().
 
Where do I put the CyEngine().setFogOfWar(bState)? Which Python file is it under?
 
jcikal said:
Where do I put the CyEngine().setFogOfWar(bState)? Which Python file is it under?

Check out CvEventManager.py. There are a bunch of functions there that happen at certain times, for example there's one that happens at the beginning of a player's turn, another that happens whenever an improvement is built, etc. Find the one that best suits when you want the code to run.
 
If you want to reveal the entire map in SP games, so you can just play the game with the whole map explored, make sure in the civilization.ini file that cheat=chipole and then ingame hit cntrl+z and it will reveal the whole map for you.
 
Back
Top Bottom