Stuckez12 Radiation


Uranium and nuclear items are now deadly to YOU, the player. Fight back with absorption gear, radiation suits, and walls while even biters evolve into acid-spewing, radioactive tanks. Customize the radiation, tame the chaos, and turn your factory into a radioactive nightmare.

Tweaks
2 months ago
2.0
292
Environment

g Issue with !skins mod

9 days ago
(updated 9 days ago)

Hello! Got weird behaviour with !skins mod (https://mods.factorio.com/mod/skins-factored)
When character dies, no radiation applies to player. May be a problem in !skins mod, I also wrote to Penguin_Spy: https://mods.factorio.com/mod/skins-factored/discussion/69decc39fc322df9fef104bf

5 days ago

Thanks for the report. I had a look into what would cause this and it would seem that if a mod "spawns" in a player, the factorio API to detect when a character respawns/created does not catch this.
Other mod examples of this occuring would be space exploration as they have their own system to respawn the player.

Example code from skins mod causing the player to not be registered: -

local new_character = old_character.surface.create_entity{
name = new_prototype_name,
position = position,
force = old_character.force
}

It is also not possible for other mod devs to fix this issue such as the skins mod since they cannot do the detection of a player functionality and send it to me as well (no mod api on my side and also a big pain for them to integrate with me).

I have an idea on how to fix this and will do when I have the time.
Until the next update with the bug being fixed, the alternate solution I can suggest is to run "/radiation_add_self" each time a new character is created (respawned). Tis an inconvenience but the best I can offer as of now until fixed.

4 days ago

Great! Thank you for investigation, your mod is one of the few on the mod portal that actually implements radiation and do it in a right (imho) way. Will wait for an update!

/radiation_add_self - will do, I do not mind run one command xd, it is good that at least this workaround for now is possible

New response