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
4 days ago
2.1
548
Factorio: Space Age Icon Space Age Mod
Manufacturing

b Incompatibility AluminiumX

14 days ago

Hi! A player reported this load error with Phosphorus 0.3.9 and my mod AluminiumX:

Error in assignID: item with name 'sodium-hydroxide' does not exist.
At ROOT.recipe.red-phosphorus-washing.ingredients[2].name

In AluminiumX, sodium-hydroxide is a fluid. In integrations/required-materials.lua, add() falls back to type "item" when no kind is passed, so washing() and the phosphine host add it with the wrong type. It only triggers when sodium hydroxide is reachable by Phosphorus processing. I reproduced it on Factorio 2.1.24 by moving my sodium hydroxide research earlier with a small test mod.

This one-line change in add() fixed the load in my local test:

recipe.ingredients[#recipe.ingredients + 1] = {type = kind or (data.raw.fluid[name] and "fluid") or "item", name = name, amount = amount}

With it, both recipes take 1 sodium hydroxide as a fluid. You may want a different amount for a fluid, so I leave the balance to you. Would you be open to adding this? Thanks!

14 days ago

I'll take a look, will fix. Thanks for reporting!

14 days ago

should be fixed in the current version

14 days ago

Thx <3

New response