Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Sos2 Ship Hull Plating Is Gravship Substructure

⚠️Make sure to make a save before deconstructing Ship Hull Plating⚠️ Once when I removed the plate, SOS2 did not seem to handle the removal of the roof correctly, causing the game to freeze and I had to press Esc to exit to the main menu. But after that, I tried various things but could not reproduce this problem. ✦ Mod Background ✦ [list] [*] SOS2 updated to 1.6 – time to play to my heart's content. [*] Wait, why are SOS2 Ship Hull Plating incompatible with Gravship Substructures? [*] Don't want to give up Gravship, but there's no way to fit all these plasteel components on one ship. [*] CPU0 threatens that if I open a second base (including scenarios with both an SOS2 ship core and a complete Gravship), it will detonate an Antigrain warhead and take us all down together. [*] Well, guess I have to write a patch myself… [/list] ✦ Mod Function ✦ Allows [b]SOS2 Ship Hull Plating[/b] to also function as [b]Gravship Substructure[/b]. It's just a small patch. ✦ Implementation Principle ✦ SOS2 Ship Hull Plating is unique: during construction, it is a building (ThingDef); once built, it becomes terrain (TerrainDef). After comparing with the definition of Gravship Substructure, it was found that only two simple XML patches are needed: [list] [*] Add `Substructure` to `affordances`. [*] Set `isFoundation` to `true`. [/list] This way, Ship Hull Plating can be recognized as a valid substructure. ✦ Compatibility & Notes ✦ [list] [*] [b]Mid-game Installation[/b]  ✅ [b]Completely Safe[/b] - Tested and confirmed working. [*] [b]Mid-game Removal[/b]  • [b]No Gravship equipment on ship:[/b] Theoretically safe (not tested).  • [b]Gravship equipment on ship:[/b] Unknown consequences (not tested). [*] [b]General Usage[/b]  ✅ [b]As Gravship Substructure:[/b] Tested Gravship launch – works correctly.  ✅ [b]As SOS2 Ship Hull Plating:[/b] Tested SOS2 ship launch – works correctly. [*] [b]⚠️ Major Warning: Do NOT launch as a Gravship if SOS2 ship control components are present![/b]  ⚠️ If the ship already has SOS2 control components (e.g., bridge or core), it is [b]highly discouraged[/b] to perform a Gravship launch! Otherwise, SOS2 will fail to recognize the ship during the launch, causing control components to be destroyed upon landing. Even if rebuilt, the SOS2 launch button will be missing!  ⚠️ [i](If this already happened, there is a solution: use dev mode to spawn a new SOS2 bridge/core, save and reload the game. The SOS2 launch button will reappear.)[/i]  ⚠️ [i]-> Universal Lift Structure (ULS) <- This mod seems could overpass this problem, you just need to "hide" your SOS2 buildings before Gravship launching[/i] [*] [b]⚠️ Minor Warning: Launch as a Gravship will destroy floors on ship Plating [/b]  • I tried to fix this for two hours, but only found it's beyond my ability. It seems even if I use the whole grav substructure definition as ship hull definition, this issue is still not fixed(and become even worse). I guess it's related to the ThingDef ship hull, because I used some special method to separate ThingDef ship hull and TerrainDef ship hull , and then the bare TerrainDef ship hull can carry floor while grav launching. After reading source code of SOS2, I thing it might related to CompShipCachePart.PostSpawnSetup, this method might regenerate TerrainDef ship hull while grav launching, causing floors to be destroyed [*] [b]Construction & Removal Logic[/b]  • Plating can be built on substructures (will automatically replace the substructure).  • Substructure [b]cannot[/b] be built on plating (must manually remove the plating first). This is due to the nature of plating being built as ThingDef but existing as TerrainDef.  • Plating [b]must[/b] be removed using SOS2's "Deconstruct" option. Using "Remove floor" is ineffective. Although "Remove floor" will mark the plating for deconstruction and colonists will attempt to remove it, it will have no effect. Only the "Deconstruct" option can truly remove the plating. [/list] ✦ License ✦ MIT License - You are free to use, modify, and distribute this mod. ✦ Misc ✦ Not a naive English speaker, this description is translated by DeepSeek.