Starbound mod that prevents food from rotting and makes it (along with other consumables) stackable up to 20.
Pull requests with support for other mods are welcome. Read Technical Details to get an idea how to do that semi-automatically.
Always backup
path/to/Starbound/storage
directory before (un)installing (any) mod(s).
Download latest version here and place it inside /path/to/Starbound/mods
.
Removing the mod will bring stack sizes back to normal. Extra items will be lost so make sure to unstack them before proceeding.
No incompatibilities found, make sure to open an issue if you find one.
Compatible: NeoVanAlemania's Improved Food Descriptions
Compatible: Niffe's More Canned Food
Compatible: Pixelflame's Project Ancient Cosmos
Patch files were generated automatically using a few (linux) commands:
-
Head to the game directory:
$ cd /path/to/Starbound/
-
Create
_template.consumable.patch
file with following contents:[ [ { "op": "test", "path": "/maxStack" }, { "op": "replace", "path": "/maxStack", "value": 20 } ], [ { "op": "test", "path": "/maxStack", "inverse": true }, { "op": "add", "path": "/maxStack", "value": 20 } ] ]
-
Unpack Starbound assets:
$ ./linux/asset_unpacker "./assets/packed.pak" "./_starbound_assets"
-
Create
_starbound_consumables
directory:$ mkdir -p "./_starbound_consumables"
-
Copy all
*.consumable
files tostarbound_consumables
directory:$ find "./_starbound_assets" -name "*.consumable" -print -exec cp --parents "{}" "./_starbound_consumables" \;
-
Rename all
*.consumable
files to*.consumable.patch
:$ find "./_starbound_consumables" -name "*.consumable" -exec mv "{}" "{}.patch" \;
-
Override all
*.consumable.patch
files with contents of./_template.consumable.patch
file:$ find "./_starbound_consumables" -name "*.consumable.patch" -exec cp "./_template.consumable.patch" "{}" \;
-
(Optional) Copy files to mod repository and clean up workspace:
$ cp -Ri "./_starbound_consumables/_starbound_assets/items" "/path/to/open_food_mechanics/" $ rm -R "./_starbound_assets/" "./_starbound_consumables/" "./_template.consumable.patch"