[MOD 0.15.3] Pollution Damage 0.0.3
- featherwinglove
- Filter Inserter
- Posts: 579
- Joined: Sat Jun 25, 2016 6:14 am
- Contact:
[MOD 0.15.3] Pollution Damage 0.0.3
Terry's first ever mod. ...and first ever forum post Causes damage to players in highly polluted areas and a motivation for being environmentally friendly in peaceful mode. Made in under four hours and code is just a control.lua smaller than MIT license file. I got it working just as I like so I'm going to play with it (i.e. play Factorio with it) hence not labeled WIP. But I put it in the WIP subforum 'cus it's probably not a very elegant/efficient/polite way to code such a mod. EvoGUI highly recommended to see how much pollution is in the chunk. It's supposed to do this:
Up to 1000 pollution, no damage. For each 100 points beyond that, does 1 point of damage per second and gives a chat message. I set up configuration variables at the top of control.lua so it should be easy to change these to taste.
0.0.2: Finally updated for 0.14.21 with damage type changed to acid (so armor reduces damage), and set up only to affect online players in multiplayer games (I have not tested this, only single player.)
0.0.3: Updated for 0.15.3.
Up to 1000 pollution, no damage. For each 100 points beyond that, does 1 point of damage per second and gives a chat message. I set up configuration variables at the top of control.lua so it should be easy to change these to taste.
0.0.2: Finally updated for 0.14.21 with damage type changed to acid (so armor reduces damage), and set up only to affect online players in multiplayer games (I have not tested this, only single player.)
0.0.3: Updated for 0.15.3.
- Attachments
-
- PollutionDamage_0.0.3.zip
- New Factorio 0.15.3 version
- (1.99 KiB) Downloaded 199 times
-
- PollutionDamage_0.0.2.zip
- New Factorio 0.14.21 version
- (1.99 KiB) Downloaded 186 times
-
- PollutionDamage_0.0.1.zip
- Original Factorio 12.35 version
- (1.98 KiB) Downloaded 314 times
Last edited by featherwinglove on Sun Apr 30, 2017 3:02 am, edited 3 times in total.
Re: [MOD 0.12.35+] Pollution Damage 0.0.1
An interesting mod, but this would be the death of me. My highest pollution area is sitting around 7000.
Twitch: https://www.twitch.tv/minime943
- featherwinglove
- Filter Inserter
- Posts: 579
- Joined: Sat Jun 25, 2016 6:14 am
- Contact:
Re: [MOD 0.12.35+] Pollution Damage 0.0.1
In the game before I made this mod, I was playing as if I had it, using EvoGUI to detect and stay out of >1000PU areas. It led to some very interesting tactics, such as a walled power pole in a "clean" area that I could remove as a kill switch to power down areas that I needed to get into, generally the mines and oil fields. It lead to heavy automation of mining back ends, which is a challenge in Mojo Resource Processing (whose starting burner assembler generates 245PU/sec, vs. the burner drill's "mere" 10, it can literally kill you even without this mod because it will instantly agro every bug within four chunks, plus it's very hard on fuel. Got no choice 'cus Mojo disables hand crafting. If I treat 0.13 hand crafting the same way I treat this smoking heap of assembly machine, I should have no problem getting the new minimum hand crafting achievement.) The unfortunate downside to that game just before I made this mod ...is that one of my other (installed) mods lacked migration and I had to start over. Bummer.
Re: [MOD 0.12.35+] Pollution Damage 0.0.1
Maybe not a good fit for a productivity megabase.
5k damage/second.My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
- featherwinglove
- Filter Inserter
- Posts: 579
- Joined: Sat Jun 25, 2016 6:14 am
- Contact:
Re: [MOD 0.14.21] Pollution Damage 0.0.2
I guess I need to do a bit more than update the OP to bump the thread
- featherwinglove
- Filter Inserter
- Posts: 579
- Joined: Sat Jun 25, 2016 6:14 am
- Contact:
Re: [MOD 0.15.3] Pollution Damage 0.0.3
I'd like to key the pollution damage effect to the difficulty selection for tree damage if possible. Does anyone know how to do this? If you could point me to a mod API document page that I missed, that would be ideal.
- ZombieMooose
- Filter Inserter
- Posts: 289
- Joined: Mon Feb 09, 2015 7:23 am
- Contact:
Re: [MOD 0.15.3] Pollution Damage 0.0.3
Would you put this in the mod portal?
"men will literally learn everything about ancient Rome instead of going to therapy"
- featherwinglove
- Filter Inserter
- Posts: 579
- Joined: Sat Jun 25, 2016 6:14 am
- Contact:
Re: [MOD 0.15.3] Pollution Damage 0.0.3
I'd love to, but I can't!
- ZombieMooose
- Filter Inserter
- Posts: 289
- Joined: Mon Feb 09, 2015 7:23 am
- Contact:
Re: [MOD 0.15.3] Pollution Damage 0.0.3
That sucks, well I'll get it from here then.
It should work though since there are several mods without pictures.
It should work though since there are several mods without pictures.
"men will literally learn everything about ancient Rome instead of going to therapy"
Re: [MOD 0.15.3] Pollution Damage 0.0.3
Does the mod only damage players or will it kill the local fauna as well?
- featherwinglove
- Filter Inserter
- Posts: 579
- Joined: Sat Jun 25, 2016 6:14 am
- Contact:
Re: [MOD 0.15.3] Pollution Damage 0.0.3
No, for now it only damages players. Much of the challenge of the Badlands modpack for which it was designed (back in 0.12.35) comes from pollution attracting biters, and I need to expand quite a bit before pollution damage becomes more of a problem than alien attacks. By the time I do, the biters almost always find something to attack (usually radars or some logistics item) or be attacked by (turrets) before they get close enough to the pollution source to take any damage. So even if implemented, they would almost never take pollution damage. There's another problem: big biters and beyond (Bob's Enemies included) would last far longer in an inaccessible mining outpost than I would, and I would still be stuck watching helplessly if they got through my defenses before I cut the power to the miners.
Also, that would probably undo peaceful mode, as the moment a biter in a hive started taking damage from pollution, it is quite likely that the entire garrison would rush you. That might not happen if they fail to recognize the force the damage is coming from, but I really don't know. Besides, it makes too much sense to set the damage force properly to make sure that they do this.
Also, that would probably undo peaceful mode, as the moment a biter in a hive started taking damage from pollution, it is quite likely that the entire garrison would rush you. That might not happen if they fail to recognize the force the damage is coming from, but I really don't know. Besides, it makes too much sense to set the damage force properly to make sure that they do this.