[BtS 3.17] Alternative to "Global Warming"

anhu

Chieftain
Joined
Nov 21, 2005
Messages
21
From the maker of "5-formations"...

Description:


In standard BtS 3.17, extended use of nukes or unhealthy buildings will cause fertile land to change into desert. Being that nukes were my favorite units, I thought this was a little too much. However, I didn't want to completely remove the penalty, so I made a small change.

With this mod, random plots will spawn fallout instead of changing into desert. The rate of spawning is exactly the same as the previous rate of changing into desert. This change had to be in the dll, since I tried changing "TERRAIN_DESERT" to "FEATURE_FALLOUT" in "GLOBAL_WARMING_TERRAIN" in the xml to no effect.

This mod doesn't just limit the feature spawned to "FEATURE_FALLOUT"; it can be any feature (eg, ice for an ice age, flood plains for flooding, forests for...whatever). Just change "FEATURE_FALLOUT" under "GLOBAL_WARMING_TERRAIN" in globaldefines.xml to any validly defined feature.

The files you need, in the attached, are

-globaldefines.xml (put this under "My Documents\My Games\Beyond the Sword\CustomAssets\XML")
-CvGameCoreDLL.dll (I'm not sure if CIVIV accepts CvGameCoreDLL.dlls from customassets; I just replaced the one under the original directory after backing up the original CvGameCoreDLL.dll)


The file I edited was cvgame.cpp; it is also included for your curiosity. This file is unessential if you do not care about creating a new CvGameCoreDLL.dll

Any resemblance to any other mod is purely coincidental; I don't think anyone else has tried to provide this alternative to global warming.

So... Hate the mod? Like it? Think it's useless? Tell me what you think =)
 

Attachments

I think that the new climate model of CCV is better. :D

There will be a graded global warming system and also the effect of a nuclear winter from too much nukes in CCV. So plots will turn from humid to arid, in some areas also from arid to humid, from cold to warm, you will loose food because of bad crops, ice can grow and may even cause a new ice age...

CCV will do that all for you.

End of add. :D
 
I am a little confused. Is there an English version of this CCV available for 3.17? I would really like to have the graded global warming system...
 
I am a little confused. Is there an English version of this CCV available for 3.17? I would really like to have the graded global warming system...

Version 3.00 for BTS 3.17 is coming soon and of course with an English translation.
 
Lt.Bob's patch has had this exact same change running for some time (well over a year) in his DLL mod, and he updated it for v3.17 as well... he also allows 40-civs in his DLL mod which (at the same time) allows for Nuclear Fallout instead of desertification.
 
Wow, I'm obsoleted a year ago =(

I guess I didn't do enough forum lurking or research...
 
Well, yours differs in that you can define other features in the GlobalDefines, the previous solution was hard coded for fallout.
 
Well, yours differs in that you can define other features in the GlobalDefines, the previous solution was hard coded for fallout.
Actually it wasn't... by default it allowed the original desertification. If you wanted fallout, you had to change it in GlobalDefines. :deal:
 
It's not my version, I was just looking for an Alternative to "Global Warming" and this and the lt bob thing showed up. I haven't really looked at the Lt Bob version but it seems more official. This was just an unlabelled mess of 3.17 code that I updated to 3.19. Since I bothered to do it I figured I might as well post it if anyone else wanted it. I hate it when you look for stuff and it's gone.

I did see your modcomp and that's what got me looking to see what everyone else had out there to see what was possible for fallout / global warming modcomps.
 
no I only compared it to a 3.19 sdk file and merged in the official changes and left out the stuff that he'd changed which was about 3 lines.

well im trying my hand at SDK work, so I went ahead and compiled a gamecore with this code as the only change. no crashes :)

some behaviour i noticed during testing
*when global defines is left at default (global warming terrain = terrain_desert) seems to have a chance of spawning an oasis. i would consider this a bug.
*when set to feature_fallout behavior seems normal so all is well

link to compiled gamecore
 
Back
Top Bottom