View Full Version : Satellite Reveal Fog of War


GeneralSpecific
Jan 04, 2007, 09:05 PM
How can I make the fog of war lifted whenever the satellite is researched? I am relatively new to modding Civ but not to many other games.

Thanks,
General Specific

Impaler[WrG]
Jan 04, 2007, 10:02 PM
Theirs a boolean value in TechInfo.xml <bRevealMap> or something like that, you can give any tech that ability by setting it to 1 aka true.

Macmatt
Jan 05, 2007, 10:58 AM
Theirs a boolean value in TechInfo.xml <bRevealMap> or something like that, you can give any tech that ability by setting it to 1 aka true.
I think this only shows unexplored parts of the map and doesn't lift the FoW, because the satellite tech already does this.

EDIT: Oh btw, welcome to CFC :D

Impaler[WrG]
Jan 05, 2007, 01:14 PM
Opps mis-understood the question, sorry. I dont think theirs a boolean that dose what your looking for, it would be a nice idea though. The map revealing thing could be pushed back to an earlier tech ware it might actualy do some good seeing that in practicaly every game the whole map will be explored by that point. You would probly need to get into the SDK and create a new boolean tag and code to do what your thinking of.

GeneralSpecific
Jan 05, 2007, 02:28 PM
Oh boy, that doesn't sound too easy.........

Good Sauce
Jan 05, 2007, 03:23 PM
having FOW lifeted would show you every AI move, that would make for some very long turns... Unless you turned off show enemy moves, but that seems to kinda defeat the point.

Impaler[WrG]
Jan 05, 2007, 03:40 PM
I always turn that off as is, screen moves to fast for you to get any good information out of it.

snipperrabbit!!
Jan 06, 2007, 12:11 PM
I think it's possible to reproduce the state religion effect on LoS at a larger extent i.e. no fog of war in all cities and surrounding square.

GeneralSpecific
Jan 06, 2007, 02:28 PM
Well, I just figured that with satellites one would be able to spy on the enemy (or ally) movements like with actual satellites.

Fabrysse
Jan 08, 2007, 05:51 AM
Why not creating a unit (satelite) that could use the button "explore" such as planes. If you give it no attack power and a big area where it can see, it could run... No ?
It's not automatic, you have to build the unit and use it to spy other civs.

primem0ver
Jan 08, 2007, 06:06 PM
Actually I know how it can be done but it may require the SDK (unless the necessary methods are available in python).

You will have to know how to do one or the other in order to accomplish what you ask (Python or C++) and it may require C++. I have already programmed some things that changes the fog of war in the GeneticEra mod which is why I found the correct C++ method.

I don't remember the exact methods at the moment (I use internet away from home where I have the SDK) but their is a method that is setInvisibleVisibility or something like that that is used to change the fog of war. It can also be used to see invisible units (which is why it has such a funny name). It is either part of the CvPlot class or the CvUnit class (I think the first).

If you want more info you can pm me. I have considered doing this exact thing in the mod I develop but there might be a major drawback to this (which is why I have not done it). In CTP anyway, if their is no fog of war, you must watch ALL units move. This makes turns dreadfully long! I don't know if this happens in Civ4... but it is something to consider.