Unhandled Crash Simple-Entity with damaged trigger effect

Bugs that are actually features.
Sacredanarchy
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Apr 04, 2022 1:49 pm
Contact:

Unhandled Crash Simple-Entity with damaged trigger effect

Post by Sacredanarchy »

07-17-2025, 02-48-19.png
07-17-2025, 02-48-19.png (1.66 MiB) Viewed 135 times
Ok so ive created a simple-entity and gave it a damaged trigger effect

local wall_damaged_effect = {
{
type = "create-entity",
entity_name = "grenade-explosion"
},
{
type = "damage",
damage = { amount = 20, type = "explosion" }
}
}

when it was hit by a biter the crash happened
Attachments
TronLegacy-LightCycle_1.0.4.zip
this is the mod im working on I doubt you need any other mods
(17.38 MiB) Downloaded 10 times
factorio-current.log
(538.52 KiB) Downloaded 9 times
Sacredanarchy
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Apr 04, 2022 1:49 pm
Contact:

Re: Unhandled Crash Simple-Entity with damaged trigger effect

Post by Sacredanarchy »

(Update) I removed the type = "damage" entry and the crash does not happen
local wall_damaged_effect = {
{
type = "create-entity",
entity_name = "grenade-explosion"
}
}
Loewchen
Global Moderator
Global Moderator
Posts: 10247
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Unhandled Crash Simple-Entity with damaged trigger effect

Post by Loewchen »

It's a stack overflow because you damage the wall when the wall gets damaged. NaB.
Post Reply

Return to “Not a bug”