[Request] A clean nuclear explosion site

This is the place to request new mods or give ideas about what could be done.
Post Reply
coppercoil
Filter Inserter
Filter Inserter
Posts: 472
Joined: Tue Jun 26, 2018 10:14 am
Contact:

[Request] A clean nuclear explosion site

Post by coppercoil »

Would it be possible to make a mod so atomic explosion would not leave a sheep shit on the map?
SheepShit.jpg
SheepShit.jpg (133.51 KiB) Viewed 1977 times
I just don't like that shit :(
A crater is ok.

User avatar
NotRexButCaesar
Smart Inserter
Smart Inserter
Posts: 1121
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: [Request] A clean nuclear explosion site

Post by NotRexButCaesar »

I’m pretty sure that there is already a mod for this
—Crevez, chiens, si vous n'étes pas contents!

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] A clean nuclear explosion site

Post by darkfrei »

coppercoil wrote:
Mon Dec 21, 2020 6:24 pm
Would it be possible to make a mod so atomic explosion would not leave a sheep shit on the map?

SheepShit.jpg

I just don't like that shit :(
A crater is ok.
Mod code (add it to the data.lua):

Code: Select all

data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects[8] = nil
To delete exist scorch marks:
viewtopic.php?p=524347#p524347

coppercoil
Filter Inserter
Filter Inserter
Posts: 472
Joined: Tue Jun 26, 2018 10:14 am
Contact:

Re: [Request] A clean nuclear explosion site

Post by coppercoil »

darkfrei wrote:
Mon Dec 21, 2020 8:15 pm
Mod code (add it to the data.lua):
Does not work:
moderr.jpg
moderr.jpg (42.53 KiB) Viewed 1903 times

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] A clean nuclear explosion site

Post by darkfrei »

Code: Select all

table.remove (data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects, 8)
or

Code: Select all

data.raw.corpse["huge-scorchmark"].time_before_removed = 30*60

coppercoil
Filter Inserter
Filter Inserter
Posts: 472
Joined: Tue Jun 26, 2018 10:14 am
Contact:

Re: [Request] A clean nuclear explosion site

Post by coppercoil »

darkfrei wrote:
Tue Dec 22, 2020 9:46 pm
Both lines gives no effect. Have you tested them?

BicycleEater
Fast Inserter
Fast Inserter
Posts: 153
Joined: Sun Jul 26, 2020 4:05 pm
Contact:

Re: [Request] A clean nuclear explosion site

Post by BicycleEater »

Your code assumes that the crater is the one making the effect, it is actually the ground tile changes, so the code should be:

Code: Select all

table.remove (data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects, 11)
table.remove (data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects, 0)
The first one removes the ring of decoratives around the edge, the second removes the tile change. This should also work from the map.

Post Reply

Return to “Ideas and Requests For Mods”