Thread Tools
Old April 26, 2002, 23:18   #1
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 01:39
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Annoying Pollution Pop-up with MaxPlayer > 0: The Final Solution
(I'm glad this forum isn't in German or I would have a hard time explaining the thread title )

Are you also tired of that stupid pollution pop-up you get every 10 turns when you have MaxPlayer set to a value greater than 0 (or the # of AI Civs, whatever)? Well, I've got just the fix for you.

1) Open the file ctp2_data\default\gamedata\script.slc in a text editor (NotePad, WordPad, Word, EditPlus, etc) - or MM2_script.slc in case of the MedMod, CRA_script.slc in case of Cradle, etc

2) Find the following text (it should be near the bottom of the file):
Code:
messagebox '911ImminentFlood' {
	Show();
	Text(ID_WORLD_POLLUTION_FLOODING_IMMINENT);
	MessageType("POLLUTION");
}
3) Replace it with the following:
Code:
messagebox '911ImminentFlood' {
	if (HasAdvance(g.player, ID_ADVANCE_INDUSTRIAL_REVOLUTION)) {
		Show();
	} else {
		Abort();
	}
	Text(ID_WORLD_POLLUTION_FLOODING_IMMINENT);
	MessageType("POLLUTION");
}
Now the message will never be diplayed unless you have Industrial Revolution, in which case it's probably a genuine warning of heavy pollution.
Note that this only works when the mod you're using actually has an advance Industrial Revolution (which most mods do). If this is not the case, replace INDUSTRIAL_REVOLUTION in the above code with some other, similar, advance.

Thanks to Pedrunn for pointing me in the right direction (even though he probably didn't realize this).
And yes, I will place this in the FAQ (but first I need some sleep ).
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old April 26, 2002, 23:27   #2
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 20:39
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Re: Annoying Pollution Pop-up with MaxPlayer > 0: The Final Solution
Got it!

Great small improvement!
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old April 28, 2002, 16:50   #3
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 00:39
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Any clues on why the pop-up comes up unheralded?
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old April 29, 2002, 11:36   #4
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 01:39
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
... because the game was released 6 months before it was ready?
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old April 29, 2002, 12:53   #5
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 00:39
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962


Good answer
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 19:39.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team