Starbound
73 คะแนน
Anom's Outpost Overhaul - The Essential Galactic Cruise Patch
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
ขนาดไฟล์
โพสต์
อัปเดต
140.857 KB
26 เม.ย. 2021 @ 6: 50pm
16 ธ.ค. 2024 @ 3: 23pm
5 หมายเหตุการเปลี่ยนแปลง ( ดู )

สมัครสมาชิกเพื่อดาวน์โหลด
Anom's Outpost Overhaul - The Essential Galactic Cruise Patch

อยู่ใน 2 ชุดสะสม โดย AnomNom
Anom's Creations
105 รายการ
Anom's Outpost Collection
23 รายการ
คำอธิบาย


A patch for The Essential Galactic Cruise, which uses the new 2-Stop Teleshop as a base, then adds the Galactic Cruise Representative to it in the correct position.




⠀⠀⠀⠀⠀⠀





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>] } } ] ]




  • CaptainRumBarrels, for creating the original mod.

  • Redregil, for informing me that this mod was in need of a patch.