Save file: Difference between revisions

From The Last Starwiki
Jump to navigation Jump to search
(Add common fixes)
(Add inventory items table)
Line 8: Line 8:
# In the directory listed above, find the <code>.space</code> file corresponding to the saved game and open it in a text editor.
# In the directory listed above, find the <code>.space</code> file corresponding to the saved game and open it in a text editor.
# Search for a line containing <code>TradePossible</code>. Set that to true.
# Search for a line containing <code>TradePossible</code>. Set that to true.
# In the TheirStock area below, update or add the line "<code>        FTLCharge            1  </code>". Spacing is important, so make sure to match it. The number can be adjusted to the preferred amount.
#: ''Note:'' There may be multiple Trade sections in the system archive save file. Make sure to use the base section that is not indented.
# In the <code>TheirStock</code> area below, update or add the desired line using the item code from the table below. Spacing is important, so make sure to match it. The number can be adjusted to the preferred amount.
# Save the changes, run the game, and load the save.
# Save the changes, run the game, and load the save.


=== Refill a fuel tank ===
=== Refill a fuel tank ===
If your ship run out of fuel, but you have a fuel [[tank]] installed:
If your ship runs out of fuel, but you have a fuel [[tank]] installed:


# Save and close the game.
# Save and close the game.
Line 20: Line 21:
# Update or add the corresponding <code>Quantity</code> line to add fuel to the tank.
# Update or add the corresponding <code>Quantity</code> line to add fuel to the tank.
# Save the changes, run the game, and load the save.
# Save the changes, run the game, and load the save.
== Items Inventory Codes ==
:::{| class="wikitable"
|+ Inventory Item Codes
|-
! ID Code !! Category !! Item
|-
| AirReprocessor || Life Support || [[Air Reprocessor]]
|-
| Airduct || Life Support || [[Airduct]]
|-
| Battery || || [[Battery]]
|-
| Cannon || || [[Weapon#Cannon|Cannon]]
|-
| DockingPort || || [[Docking Port]]
|-
| Door || || [[Door]]
|-
| DroneBay || || [[Drone Bay]]
|-
| Engine || ||
|-
| Equipment || ||
|-
| FTLDrive || ||
|-
| FuelLoader || ||
|-
| FusionReactor || ||
|-
| GatlingGun || ||
|-
| Generator || ||
|-
| HullBreach || Special || A hull breach
|-
| HyperspaceSensor || ||
|-
| HyperspaceSensorLR || ||
|-
| IceGrinder || ||
|-
| Loader || ||
|-
| MiningLaser || ||
|-
| OxygenLoader || ||
|-
| OxygenMaker || Life Support ||
|-
| PowerCoil || ||
|-
| PowerCoilCharged || ||
|-
| PowerInjector || ||
|-
| Railgun || ||
|-
| Reactor || ||
|-
| Scrubber || Life Support ||
|-
| SewageMachine || Logistics ||
|-
| SewagePipe || ||
|-
| SmallTank || ||
|-
| Smelter || ||
|-
| SpaceSuitPod || Life Support ||
|-
| Stairs || ||
|-
| Tank || ||
|-
| Thruster || ||
|-
| TinyTank || ||
|-
| WaterPurifier || Logistics ||
|}


[[Category:Game files]]
[[Category:Game files]]

Revision as of 10:13, 6 March 2023

Save files for the game are stored in %LOCALAPPDATA%\Introversion\LastStarship\saves on Windows and ~/Library/Application\ Support/LastStarship/saves on Mac. They are stored in a plaintext format and end in a .space extension.

Common modifications

Add items to the Trade screen

If you are stuck in a system with no Trade screen or the Trade screen is missing an item you need:

  1. Save and close the game.
  2. In the directory listed above, find the .space file corresponding to the saved game and open it in a text editor.
  3. Search for a line containing TradePossible. Set that to true.
    Note: There may be multiple Trade sections in the system archive save file. Make sure to use the base section that is not indented.
  4. In the TheirStock area below, update or add the desired line using the item code from the table below. Spacing is important, so make sure to match it. The number can be adjusted to the preferred amount.
  5. Save the changes, run the game, and load the save.

Refill a fuel tank

If your ship runs out of fuel, but you have a fuel tank installed:

  1. Save and close the game.
  2. In the directory listed above, find the .space file corresponding to the saved game and open it in a text editor.
  3. Search for a line containing Resource Fuel. Spacing is important.
  4. Ensure that the line belongs to a tank and that the tank belongs to the correct ship. Player-owned ships are listed as FriendlyShip type.
  5. Update or add the corresponding Quantity line to add fuel to the tank.
  6. Save the changes, run the game, and load the save.

Items Inventory Codes

Inventory Item Codes
ID Code Category Item
AirReprocessor Life Support Air Reprocessor
Airduct Life Support Airduct
Battery Battery
Cannon Cannon
DockingPort Docking Port
Door Door
DroneBay Drone Bay
Engine
Equipment
FTLDrive
FuelLoader
FusionReactor
GatlingGun
Generator
HullBreach Special A hull breach
HyperspaceSensor
HyperspaceSensorLR
IceGrinder
Loader
MiningLaser
OxygenLoader
OxygenMaker Life Support
PowerCoil
PowerCoilCharged
PowerInjector
Railgun
Reactor
Scrubber Life Support
SewageMachine Logistics
SewagePipe
SmallTank
Smelter
SpaceSuitPod Life Support
Stairs
Tank
Thruster
TinyTank
WaterPurifier Logistics