View Full Version : Global Warming!!!


Chaotic Law
Dec 05, 2005, 01:40 AM
ok, I have posted a thread about changing the workers to change the terrain. That didnt seem to get anyone interested in doing that mod. The real reason I want workers to change the terrain was I made the game a lot longer. Well towards the end of the game Global warming slowly starts to kill off your cities by randomly changing tiles to desert. So, my question is this. Can someone help me to turn off the global warming?

Any info on this would be greatly appreciated.

Chaotic Law

Trying to organize the chaos.

gatorforest
Dec 14, 2005, 09:14 AM
If you figure it out, I'd like to know as well. I made a long game and all of a sudden without warning "poof" global warming and sometimes it struck multiple tiles in one turn (up to 5 tiles at a time). On a small world that is a huge percentage of tiles. They also seem to have kept out the terraforming that was introduced in Civ2. Interesting that the game makes believe in global warming, but not terraforming. I would like to turn this stupid global warming thing off as well. (PS why is it always assumed global warming give you a desert? Seems to me you could get Jungle or Marsh in a world that is 70-80% water.) Anyhow once again I would like to turn the stupid global warming thing off (it really is a pain). Short of that, maybe know what the heck is causing it (as it doesn't seem related to my buildings or populations [as I have used the editor to modify several aspects of the game]) or let me have terreforming back.

jerk85
Dec 14, 2005, 07:02 PM
Bump - Somebody has to know how to do this! Anyone?

Seven05
Dec 14, 2005, 07:19 PM
In GlobalDefines.xml:

First...

<Define>
<DefineName>GLOBAL_WARMING_TERRAIN</DefineName>
<DefineTextVal>TERRAIN_DESERT</DefineTextVal>
</Define>

It doesn't look like you can control it anymore than that, but for fun you could change it to tundra or snow and have an ice age instead :)

Most importantly, later in the same file...

<Define>
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>20</iDefineIntVal>
</Define>

I would guess that setting this to zero will stop global warming all together.

jerk85
Dec 14, 2005, 10:25 PM
Can anyone confirm if this works? I'm hoping to avoid playing all the way through a whole new game just to find out it didn't work.

Seven05
Dec 15, 2005, 12:30 AM
As opposed to playing through a whole game knowing you're going to get global warming? :)

Podosho
Oct 27, 2006, 10:15 AM
Yes, I have the same problem, in the year 2500...... global warming comes up, I thought this stuff was gone in this civ4?

ohcrapitsnico
Oct 27, 2006, 01:36 PM
I think their is also something in the sdk that controls this. I agree I would like to turn this off for my mod since it is in 500 bc.

Crighton
Oct 27, 2006, 01:59 PM
do a search in the threads, someone posted a longer and more detailed answer to all this about five months ago, included in several threads at the time are my rantings on the subject (and NO!!!! Nuclear War causes NUCLEA WINTER NOT GLOBAL WARMING)

Globetrotter
Feb 22, 2007, 03:10 AM
Just found out that there is a function is actually under the CvGame.cpp file
There is a doGlobalWarming function
It is void, so it doesn't return any value
I believe that if we remove everything that it contains, and leave it as

void CvGame::doGlobalWarming()
{
}


global warming will disappear for ever... Haven't checked it yet

But viewing the code in this fucntion, as Seven05 mentioned above, changing in GlobalDefines.xml

<Define>
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>20</iDefineIntVal>
</Define>

to zero should also make it work.

Mozza
Feb 22, 2007, 06:30 AM
I made a long game and all of a sudden without warning "poof" global warming

There was likely plenty of warning but everyone passed it off as "hippy claptrap", "no real evidence as to cause", or "sombody else's problem".

;)

LazyJones
Jun 03, 2007, 02:31 AM
In GlobalDefines.xml:

First...

<Define>
<DefineName>GLOBAL_WARMING_TERRAIN</DefineName>
<DefineTextVal>TERRAIN_DESERT</DefineTextVal>
</Define>

It doesn't look like you can control it anymore than that, but for fun you could change it to tundra or snow and have an ice age instead :)

CONFIRMED! :goodjob:
This works!
... At least for grasslands instead of deserts :mischief:

Most importantly, later in the same file...

<Define>
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>20</iDefineIntVal>
</Define>

I would guess that setting this to zero will stop global warming all together.

Haven't tried this yet.

MTK73
Jun 03, 2007, 01:04 PM
I don't suppose you could make a mod that changes it to grasslands? I haven't gotten into changing files myself, but global warming is driving me insane.

Thanks,
Matt

Gerikes
Jun 03, 2007, 01:15 PM
Haven't tried this yet.

That should work. Here's the vanilla SDK's "doGlobalWarming" function...


void CvGame::doGlobalWarming()
{
CvCity* pCity;
CvPlot* pPlot;
CvWString szBuffer;
TerrainTypes eWarmingTerrain;
bool bChanged;
int iI;

eWarmingTerrain = ((TerrainTypes)(GC.getDefineINT("GLOBAL_WARMING_TERRAIN")));

for (iI = 0; iI < getNukesExploded(); iI++)
{
if (getSorenRandNum(100, "Global Warming") < GC.getDefineINT("GLOBAL_WARMING_PROB"))
{
...


Switch GLOBAL_WARMING_PROB from whatever it is to 0 in the SDK XML and the emboldened line will never pass, thus you'll never get global warming.

Edit: P.S. Welcome to the forums LazyJones and MTK73!

LazyJones
Jun 03, 2007, 02:29 PM
I don't suppose you could make a mod that changes it to grasslands? I haven't gotten into changing files myself, but global warming is driving me insane.

Thanks,
Matt

That's just what I did.
I changed the contents of the file "GlobalDefines.xml"in the "\Assets\XML" folder.

Open the file in Notepad.
Scroll down a little
Change
<Define>
<DefineName>GLOBAL_WARMING_TERRAIN</DefineName>
<DefineTextVal>TERRAIN_DESERT</DefineTextVal>
</Define>
to
<Define>
<DefineName>GLOBAL_WARMING_TERRAIN</DefineName>
<DefineTextVal>TERRAIN_GRASS</DefineTextVal>
</Define>

Simple as that.
Now, whenever you get the global warming event, it simply means that one tile has been turned into a grasslands tile :mischief:

More :food: for my huge cities :clap:

Oh, and: Thanks, Gerikes :)

Sto
Jun 03, 2007, 02:57 PM
You should not change the original files . There is two way to do that .

1 you put a copy of the file with your changes in the same folder as the original game located into C:\Documents and Settings\<user>\Mes documents\My Games\<civ4 folder>\CustomAssets and your changes will be taken in count .

2 The proper way is to create your own MOD and load it at the beginning of the game . you just need to create a .ini file into the MOD and make your changes like in the CustomAssets folder ( take an example into another MOD )

Tcho !

GeoModder
Jun 03, 2007, 03:33 PM
Btw, a tundra shouldn't switch to a grassland, but to a swamp... ;)

mark777
Jun 04, 2007, 10:32 PM
cool has helped abit...will try again

Gaius Octavius
Jun 04, 2007, 11:25 PM
Find this in GlobalDefines.XML and make it look like the following:

<Define>
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>0</iDefineIntVal>
</Define>

If it is set to zero, Global Warming cannot happen. It's that simple.

Beebs44
Dec 21, 2007, 08:05 PM
I tried to change my xml file to adjust global warming but all my folders are empty. I can play the game just fine so I know there is no error. Is there some program I need to see the text or make changes? Also I am new member to the forum, although I have visited as a guest before...I cannot seem to find where to go to create a new thread, if someone can help me out with that too much appreciated.

PlayerGuy08
Jan 27, 2008, 01:55 PM
Hi all,

I tried editing the globaldefines file to do away with global warming but I could not find the such file. I did a search on my entire computer for it, nothing, went to the game directory and searched all over, nothing. Why can't I find it?

Gaius Octavius
Jan 27, 2008, 02:59 PM
It is under Civilization IV\Assets\XML. Alternatively, if you have Warlords or BtS, it will be located under Civilization IV\*Expansion Here*\Assets\XML. You can edit it with notepad.

If you cannot find it chances are you did not spell it correctly in the search.

PlayerGuy08
Jan 29, 2008, 11:01 AM
hi, thanks for your reply, I will try what you said when I have a chance to play... if it doesn't work I'll just reinstall

kenlee28
Jun 05, 2008, 07:17 AM
Hmm, tried to make the change to the xml file:

<Define>
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>0</iDefineIntVal>
</Define>

However the game seems to stop working after that, tried to uninstall to reverse the problem but no luck yet. Any suggestions for why this happens?

Ricemon
Jun 17, 2008, 02:23 AM
I've changed the globaldefines file (the terrain to grasslands, and the probability to zero) in my mod directory but it didn't work in-game.

Then I copied the xml over to custom assets in my documents/my games folder but that failed as well.

Started a new game, seemed fine for a while but at turn 500 global warming shat on me again >.<

I also cleared the cache but the changed xml settings never took place.

Is there something I've missed or am not doing correctly? (ie. changing the xml files with notepad)

Ricemon
Jun 26, 2008, 12:15 AM
/bump for above question

Jampop888
Jul 31, 2008, 06:40 AM
I tried to do this and when I tried to save it told me that it is a read only file and so it cannot create the file!?!?

BunnyWunny
Apr 27, 2010, 11:07 PM
If it is set to zero, Global Warming cannot happen. It's that simple.

Hoo-rah :)

Bless you my son. That has *really* been bugging me. The entire Global Warming fraud has been around for way too long, and now recently with the discovery of the cover-ups of the original data, well...

If they're going to change the laws of physics they should have made it a Star Trek Mod
;)

Thanks, gonna be a whole lot more fun to play now.

acivguy55
Dec 09, 2010, 03:21 PM
I tried to modify global arming values but my pc will not let me save the modified XML :confused::confused: can anyone help?

BunnyWunny
Dec 09, 2010, 06:06 PM
I tried to modify global arming values but my pc will not let me save the modified XML :confused::confused: can anyone help?

You just open the file in Notepad or another such product like Word, then save it as usual. If you just click on the file it will open up in your browser and you wont' be able to do anything with it.:p

Baldyr
Dec 09, 2010, 10:36 PM
Vista/Windows 7 users need to have administrator rights or something to be able to edit a installed program. Or something, I luckily am running XP. :D

BunnyWunny
Dec 10, 2010, 08:21 AM
Vista/Windows 7 users need to have administrator rights or something to be able to edit a installed program. Or something, I luckily am running XP. :D

I'll run Linux first before I switch from XP. Not like my PC has enough power for it to work properly anyhow...unfortunately at work they use Win7 and it takes half the day sometimes for the printer to function properly. A total POS.

I haven't looked yet, but I suppose Civ5 runs on Win7?:rolleyes:

j_mie6
Dec 11, 2010, 04:44 AM
Right I made a mod for this AGES ago but never did anything with it... I will release it now for the benifit of all... (in the modcomps forums)

Link (http://forums.civfanatics.com/showthread.php?p=9996633#post9996633)

Pumabear
May 16, 2011, 01:10 PM
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>20</iDefineIntVal>

If I set this value to 10, will the chance for global warming be halved?

The_J
May 16, 2011, 01:24 PM
As far as i understand it...yes.

BunnyWunny
May 16, 2011, 04:38 PM
<DefineName>GLOBAL_WARMING_PROB</DefineName>
<iDefineIntVal>20</iDefineIntVal>

If I set this value to 10, will the chance for global warming be halved?

10% chance instead of 20%, yes.

I might go along with the global warming thing if it would also turn deserts and tundra into pasture or forests :)