Starbound

Starbound

52 ratings
Anom's Outpost Overhaul - Restored Staves Patch
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
143.412 KB
5 May, 2021 @ 4:27pm
16 Dec, 2024 @ 5:43pm
2 Change Notes ( view )

Subscribe to download
Anom's Outpost Overhaul - Restored Staves Patch

In 2 collections by AnomNom
Anom's Creations
115 items
Anom's Outpost Overhaul: The Complete Collection
28 items
Description


A patch for Restored Staves, which moves the merchant to a position that's compatible with the new outpost.




⠀⠀⠀⠀⠀⠀





Almost all patches for Anom's Outpost Overhaul follow the same formula. After checking which universe flag the dungeon has been added to, we do what I like to call a Test Iteration patch. This is a type of test patch where you test each value of an array for the one you are looking for, then replace it if you find it. Since array orders can change depending on load order, this is incredibly useful for not breaking other mods. Below is an example of one.

[ [ // Test 1 { "op": "test", "path": "/<UNIVERSE-FLAG>/actions/0/dungeonId", "value": "<DUNGEON-FROM-MOD>" }, { "op": "replace", "path": "/<UNIVERSE-FLAG>/actions/0", "value": { "type": "placeDungeon", "dungeonId": "<DUNGEON-FROM-MOD>", "targetInstance": "outpost", "targetPosition": [<X-COORDINATE>, <Y-COORDINATE>] } } ], [ // Test 2 { "op": "test", "path": "/<UNIVERSE-FLAG>/actions/1/dungeonId", "value": "<DUNGEON-FROM-MOD>" }, { "op": "replace", "path": "/<UNIVERSE-FLAG>/actions/1", "value": { "type": "placeDungeon", "dungeonId": "<DUNGEON-FROM-MOD>", "targetInstance": "outpost", "targetPosition": [<X-COORDINATE>, <Y-COORDINATE>] } } ], [ // Test 3 { "op": "test", "path": "/<UNIVERSE-FLAG>/actions/2/dungeonId", "value": "<DUNGEON-FROM-MOD>" }, { "op": "replace", "path": "/<UNIVERSE-FLAG>/actions/2", "value": { "type": "placeDungeon", "dungeonId": "<DUNGEON-FROM-MOD>", "targetInstance": "outpost", "targetPosition": [<X-COORDINATE>, <Y-COORDINATE>] } } ] ]




  • Azulaloi for creating the original mod.

  • Raiizy for informing me that this mod needed a patch.
4 Comments
Kinsect 9 May, 2024 @ 9:39pm 
do we still need this if we have Betabound?
GR13FER.lua 25 Apr, 2022 @ 5:11pm 
same here holy crap, I had to reread that a couple times bhhaha
yukondiggy 10 May, 2021 @ 9:19pm 
for a split second I read it as "restored slaves" and was curious about the Starbound Slave Labour mod
Ewok116 5 May, 2021 @ 11:07pm 
NIce one love it too