Cannot load converted Flash file to Java

Square

Member
Aug 6, 2019
17
0
32
I have been unable to load this converted file from the last Flash version into the latest Java version on my Mac. The Flash version was unable to convert it from tits to json itself with the in-game option, so I changed the file myself by altering the file name from .tits to .json. When I try to load the file, I am told "Error: JSON.parse: unexpected character at line 2 column 1 of the JSON data".
 

Attachments

  • Gela - 2742 days.json
    420 KB · Views: 2

Beldona

Member
Apr 4, 2022
16
0
37
That is not a JSON file. It looks like it didn't convert at all. Try loading the .tits save into the flash version, and use the Export button instead.
 

Square

Member
Aug 6, 2019
17
0
32
Now it gives me a different error. Error: Unable to find classInstance with name undefined. I still can't load the file to play.
 

Attachments

  • Gela - 2742 days.json
    825.1 KB · Views: 2
Last edited:

Square

Member
Aug 6, 2019
17
0
32
That is not a JSON file. It looks like it didn't convert at all. Try loading the .tits save into the flash version, and use the Export button instead.

Now it gives me a different error. Error: Unable to find classInstance with name undefined. I still can't load the file to play.
 

Attachments

  • Gela - 2742 days.json
    825.1 KB · Views: 5

Beldona

Member
Apr 4, 2022
16
0
37
Interesting. This is a proper JSON file, but for some reason the load routine faults when reaching the "nursery" entry in "location storage"
Somehow the Nursery entry has a field
"classInstnace": "CategorizedItemStorage",
It took a really long time to figure out that it says classInst N A C E not classInst A N C E

Fixing that typo allows the file to load.
If you've modified the file that's probably the cause, if not, it seems like a pretty weird bug that the devs may want to...
probably make a check for in the JS version, since continually rereleasing the flash version when they're trying to move away from it seems like a step backward.

The full JSON path key, for dev reference, is
"locationStorage": {
"locations": {
"ShipStorage": {
"classInstance": "CategorizedItemStorage",
"neverSerialize": false,
"storage": [{...}],
"locationKey": "ShipStorage"
},
"nursery": {
"neverSerialize": false,
"storage": [],
"classInstnace": "CategorizedItemStorage",
"locationKey": "nursery"
}
},
 

Square

Member
Aug 6, 2019
17
0
32
Interesting. This is a proper JSON file, but for some reason the load routine faults when reaching the "nursery" entry in "location storage"
Somehow the Nursery entry has a field

It took a really long time to figure out that it says classInst N A C E not classInst A N C E

Fixing that typo allows the file to load.
If you've modified the file that's probably the cause, if not, it seems like a pretty weird bug that the devs may want to...
probably make a check for in the JS version, since continually rereleasing the flash version when they're trying to move away from it seems like a step backward.

The full JSON path key, for dev reference, is
How do I fix and save it? I opened the file in Firefox, got the dropdowns to where the typo is, used Right Click Inspect on it, Righ Click Edit as HTML, fixed the typo, then don't know what to do to make the correct spelling stick.