Phosphorus


White phosphorus ignites when it waits. Use it right away, burn the surplus for heat, or make it safe as red phosphorus. Requires Space Age to be owned (spoiling), not enabled. Integrates with Brevven's BZ mods.

Content
3 days ago
2.1
211
Factorio: Space Age Icon Space Age Mod
Manufacturing

b Crash while Testing

3 days ago

When using /editor this mod crashed the game.
I am running a bunch of planet mods with K2SO and all your ore mods.
I am unable to replicate the error, I used the following commands:
/editor (twice for confirmation)
/c game.planets["gleba"].create_surface()
/c game.player.teleport({0, 0}, "gleba")

I've never been able to do a non-recoverable error besides breaking determinism, this was singleplayer.
Is this a (known) bug in your mod?

Error message:
Notice
The mod Phosphorus (0.3.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event phosphorus :: on_built_entity (ID 6)
Lualnventory API call when Lualnventory was invalid.
stack traceback:
[C]: in function ' len'
phosphorus /runtime/marker.lua:38: in function 'on_player_built'
phosphorus /control.lua:282: in function < phosphorus __ /control.lua:281>

3 days ago

I'll take a look. have not seen this crash but will investigate

3 days ago

Ok I found it. was an old fashioned bug that could occur in some rare cases based on inventory state. Should be fixed in new version

3 days ago

thanks for the quick reply and fix, 10/10

New response