SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Factorio

Space Age Prototypes Library

_By _CodeGreen

KILLED BY 2.1 :( A library for using Space Age prototypes without requiring the Space Age mod to be present. DLC only.

Description

2.1 Killed this mod

Since you can no longer use relative filepaths for graphics or audio, half of the point of this library is now defunct. To get it working again, I'd have to either duplicate every asset in space age and be forced to pack them into like 10 different asset mods, or I'd have to somehow undo every change space age makes to the game with code which is a tedious and arduous process. I'm currently seeing if there's a way to make it so mods can read files from the /data directory without having those mods enabled, but for now this library is on life support for the time being.


This mod provides a table, data.sap, which is a mirror of what the data.raw would look like if space age was enabled. You can deepcopy the prototypes and make changes, or simply data:extend{} the prototype directly. Remember that some prototypes involve other prototypes, like items having a place_result for entities.

All graphics and sound paths have been pre-modified to use the graphics/sounds from the space age mod folder using relative filepaths, meaning this mod doesn't include any of the graphics/sounds themselves.

Tip: If you're using LuaLS, you can put this at the top of your data file to make warnings about data.sap go away.

---@diagnostic disable-next-line: unknown-cast-variable
---@cast data.sap data.raw

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.