Ship file

From Interstellar Rift Wiki
Jump to: navigation, search

Exportable ship configuration file (*.shipz) is a FAT-deflate zip-like archive that is basically used to transfer ship blueprints between players outside of the Steam Workshop. However you can use it to process your ship with some external programs as well.

Archive structure

Currently (0.1.55d) the ship file archive contains such a list of text files:

  1. authorId - plain text file contains a steamID of the ship creator account. Ends with a line feed symbol.
  2. authorName - plain text file in theory, should contain the creator's name, but for now it contains just two new line symbols.
  3. device - JSON file describes the current state of all on-board devices and their configuration, access group lists and other stuff.
  4. displayName - plain text file contains a ship name. You can use game color codes to make it colorful, but beware - game loading screens and search filters do not get along with these too much. File ends with a line feed symbol.
  5. hash - plain text file contains a 64-byte md5-like hash of something. File ends with a line feed symbol.
  6. IRversion - plain text file contains current game version (aka "0.1.55d") when the save was taken. Ends with a line feed symbol.
  7. name - plain text file currently contains just two line feed symbols.
  8. publishedfileid - plain text file contains steamID of the Workshop item the ship file represents. For saves that have been never uploaded to the Steam Workshop it's "0". Two saves with the same "publishedfileid" will upload their content as a same workshop item, so if you want to upload several versions of the same ship to the Workshop, just export it, change "publishedfileid" to 0, import and upload as a new workshop item! File ends with a line feed symbol.
  9. ship - XML file contains a list of ship rooms, list of exterior props (type + position + color) and the history of the interior changes (so called "instructions"). However if you want to use it in order to cancel several changes of the ship interior, beware not to mess with the device file which should be edited as well.
  10. shipVersion - plain text file contains an integer number that increments each time ship is uploaded to the Workshop, so that game knows if the ship on your PC is older than the one you have online. File ends with a line feed symbol.

Ship XML

The document tree root element is CShip. It wraps two sections: Exterior and Interior.

Exterior props

Exterior section contains two flags: UseEditorModels>true and CreateDevices>true. Other two subsections are Props and UserPlacedProps (in case if there are no exterior props the're like "<Props />"). Exact difference between these two is not yet clear. These contain the same set of CExteriorProp entities. Each CExteriorProp represents a separate exterior prop. For example, ext_SolarPanel_01:


PropTypeString defines the type of the exterior prop, PaletteIndex - used color scheme (seems like you can repaint all the ship with at once using "search and replace" function), Position - its coordinates and Transform - its position (direction). Complete assignment of each Transform subfield is not yet clear.

Non-decorative exterior props list

Interior props

Interior props section has a PropManager header with same UseEditorModels and CreateDevices as in exterior section, but also has CurrentActivePalette field which corresponds to the selected color scheme you had while saving the ship in your editor.


Second subsection is a RoomManager/Rooms which contains a list of ship rooms. Each room is marked as item:

       <Name>Control hub</Name>

Here int and roomId contain the room id (the same exact number) and Name defines the room's name.

Third subsection is SavedInstructions which contains a list of so called ShipInterior_Instruction and is, basically, the history of all your interior edits. Feels like when game loads the ship file it simulates all the actions chain to "recreate" the ship. A list of known instructions:

  • ShipInterior_Instruction_ClaimTile - when you build interior room block in a build mode;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_ClaimTile">
  • ShipInterior_Instruction_UnclaimTile - when you remove such block;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_UnclaimTile">
  • ShipInterior_Instruction_AddProp - when you add an interior prop in interior editor;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_AddProp">
  • ShipInterior_Instruction_RemovePropByID - when you remove it;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_RemovePropByID">
  • ShipInterior_Instruction_ChangeActivePalette - changes the selected interior editor prop color scheme;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_ChangeActivePalette">
  • ShipInterior_Instruction_RepaintProp - paints a prop with the active color scheme, prop ID required;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_RepaintPropTypeInRoom">
  • ShipInterior_Instruction_RepaintPropTypeInRoom - the same but as if you clicked on it with Shift;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_RepaintPropTypeInRoom">
  • ShipInterior_Instruction_ChangeRoomName - renaming the room by its ID;
 <ShipInterior_Instruction xsi:type="ShipInterior_Instruction_ChangeRoomName">