Announcement

Collapse
No announcement yet.

Annoying Pollution Pop-up with MaxPlayer > 0: The Final Solution

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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

    Comment


    • #3
      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

      Comment


      • #4
        ... because the game was released 6 months before it was ready?
        Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

        Comment


        • #5


          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

          Comment

          Working...
          X