Jump to content
Null 45

Clear Pollution - DLL Plugin

4 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

A DLL Plugin for SimCity 4 that clears pollution from a city.

The DLL adds a ClearPollution cheat that can be used to clear Air, Water, Garbage and/or Radiation pollution from a city. The cheat takes an optional Air, Water, Garbage or Radiation parameter to control what type of pollution to remove. When run without parameters, it will clear all 4 pollution types.

The cheat is intended to remove phantom pollution caused by improperly modded lots that have been demolished. The game will recalculate the pollution values for the city tile after running the simulation for a few months.

Download: https://community.simtropolis.com/files/file/36923-clear-pollution/

Source Code: https://github.com/0xC0000054/sc4-clear-pollution

System Requirements

The plugin may work on Windows 7, but I do not have the ability to test that.

Installation

  1. Close SimCity 4.
  2. Copy SC4ClearPollution.dll into the top-level of the Plugins folder in the SimCity 4 installation directory or Documents/SimCity 4 directory.
  3. Start SimCity 4.

Troubleshooting

The plugin should write a SC4ClearPollution.log file in the same folder as the plugin.
The log contains status information for the most recent run of the plugin.

If you would like to make voluntary contributions to support me in continuing to create more content for SimCity 4, I accept donations via PayPal: https://paypal.me/0xC0000054

Thanks to the few people who have donated to me.

  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

That's amazing!!! Thanks! *:yes:
I can't test yet, but I have a question: this DLL removes car traffic pollution too?

  • Like 2

"Nenhum sucesso no mundo compensa o fracasso no lar." - "No other success can compensate for failure in the home."
Como fazer da sua família um time de sucesso! - How to make your family a successful team!
 
 

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    3 hours ago, carlosmarcelo said:

    I can't test yet, but I have a question: this DLL removes car traffic pollution too?

    Not unless the game considers that air pollution.

    • Like 2

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    14 hours ago, carlosmarcelo said:

    I have a question: this DLL removes car traffic pollution too?

    11 hours ago, Null 45 said:

    Not unless the game considers that air pollution.

    I just tested and yes, it does remove car traffic pollution. After running the cheat, I also needed to switch away from the Air Pollution data view then go back to see it all cleared.

    Keep in mind this is temporary. I then ran the slowest time and it seems the pollution data updates twice a month. My save game was paused on the 20th and then the updates came on the 4th and 20th of the following two months and it did appear like it was then back to the original amount of air pollution. (This particular city tile isn't bugged afaik.)

     

    • Like 2
    • Thanks 1

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections