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
21 days ago
2.0
329
Environment

g Issue with !skins mod

a month ago
(updated a month 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

28 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.

27 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

21 days ago
(updated 21 days ago)

Released V1.1.1 which should now address this bug.
I used Space Exploration as my testing mod as it has its own custom respawn mechanics and I had also experienced the same issue with my most recent playthrough of the mod as well.

The fix should now propagate through to all mods that have their own respawn mechanics (including the skins mod).
If you do run into any issues with this new release don't hesitate to let me know!

New response