Jump to content

Loading a save from MacOS results in "Couldnt get trait"


freezak
  • Branch: Live Branch Version: Windows Pending

When loading a save created on MacOS, Windows client crashes:

[10:29:29.327] [1] [INFO] Loading save file: C:\Users\freez\Documents\Klei\OxygenNotIncluded\save_files/DNV II.sav
 headerVersion:1, buildVersion:372041, headerSize:359, IsCompressed:True
[10:29:29.327] [1] [INFO] GameInfo: numberOfCycles:116, numberOfDuplicants:8, baseName:DNV II, isAutoSave:False, originalSaveName:/Users/josefstehlik/Library/Application Support/unity.Klei.Oxygen Not Included/save_files/DNV II.sav, saveVersion:7.12
[10:29:29.696] [1] [INFO] Generating a world with the traits: traits/MetalRich, traits/GeoActive
[10:29:29.699] [1] [WARNING] 
--- Error loading save ---
Couldnt get trait [traits/MetalRich]
  at ProcGen.SettingsCache.GetCachedTrait (System.String name) [0x00000] in <filename unknown>:0 
  at ProcGen.WorldGenSettings..ctor (System.String worldName, System.Collections.Generic.List`1 traits) [0x00000] in <filename unknown>:0 
  at ProcGenGame.WorldGen..ctor (System.String worldName, System.Collections.Generic.List`1 chosenTraits) [0x00000] in <filename unknown>:0 
  at SaveLoader.Load (IReader reader) [0x00000] in <filename unknown>:0 
  at SaveLoader.Load (System.String filename) [0x00000] in <filename unknown>:0 
[10:29:29.708] [1] [INFO] Couldn't load [C:\Users\freez\Documents\Klei\OxygenNotIncluded\save_files/DNV II.sav]
[10:29:29.709] [1] [INFO] Attempting to start a new game with current world gen
[10:29:30.019] [1] [INFO] Generating a world with the traits: traits\GeoActive, traits\MetalRich

Looking through the save file and one that I just created on Windows, the difference seems to be caused by each platform using their default slash character.

MacOS save using foreslash:

"worldTraits":["traits/MetalRich","traits/GeoActive"]

Windows save using escaped backslash:

"worldTraits":["traits\\GeoActive","traits\\MetalRich"]

DNV II.sav


Steps to Reproduce
Create a new game on MacOS (and assuming Linux as well) that has any traits (I've used Tools Not Included seed finder) Save the game Transfer it to Windows Load it in Windows client



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...