[Version:TiTS-backer-0.9.007-win] error:cannot read properties of undefined (reading 'locations')

Bone

New Member
Jun 12, 2022
3
0
33
Cant use the converter. I get this error with both new and modified saves. "error:cannot read properties of undefined (reading 'locations')"
 

Animefan666

Well-Known Member
Sep 6, 2020
783
303
This is the same problem that Chroma's save had.
For some reason the convertor isn't adding some save's locationStorage to the file.

You can fix it by adding:

to the end of the file and it will then load correctly.
But, whatever was in any location storage (either in ship, nursery, or Queen Tavira's storage) will be lost.
I've done and tested it on your save file.
 
  • Like
Reactions: Bone

OrangeBurner

Well-Known Member
Mar 13, 2022
305
72
I think I know what's happening.
After some testing with converting some save files the only ones which actually come up with this location error are saves which don't have anything in their ship storage.

E.g. If the save has nothing in the ship storage before converting it will crash.
I think this is because since there is nothing in storage then the convertor doesn't create the 'locationStorage' part of the save.

How to fix:
  • Go back to TiTS 0.8.160.
  • Add any item in your ship storage.
  • Then save and convert that file.
  • It should now work in the JS version
Or:
  • Open the save file up in an editor (VS code or Notepad++).
  • Add:
"locationStorage": {
"classInstance": "LocationStorage",
"neverSerialize": false,
"version": 2,
"locations": {}
}
To the end of the save file (but before the final } ).
And it should load.
 
  • Like
Reactions: Bone

Bone

New Member
Jun 12, 2022
3
0
33
Adding an item to the ships inventory worked! Much appreciated!

P.s - it seems to skip the tutorial section at first 24 if there is where you modify the save. (it droped me of at the tavros hanger)
 
Last edited: