Fixed Can't load my save i dont know why

Issue is marked as fixed.
Status
Not open for further replies.

Chaoswulf86

New Member
Oct 15, 2015
2
0
So I can't seem to load my save It keeps saying that there's an error could someone please help
 

Attachments

  • Screenshot_20240901-214638_Trials in Tainted Space.jpg
    Screenshot_20240901-214638_Trials in Tainted Space.jpg
    314.7 KB · Views: 9
  • Clara (H) - 0Hrs 18Mins, 2225 Days - Clydesdale K7, Liberteria.json
    996.3 KB · Views: 5
Aug 26, 2024
24
3
The last 250ish characters got duplicated somehow. Here's a fixed save.
 

Attachments

  • Clara (H) - 0Hrs 18Mins, 2225 Days - Clydesdale K7, Liberteria.json
    996.1 KB · Views: 4

Jacques00

Administrator
Moderator
Aug 26, 2015
5,140
1,270
So is this issue resolved? If so, I'll go ahead and move this to the fixed section.
 

Theron

Well-Known Member
Nov 8, 2018
3,632
1,379
44
There was another report some time ago that turned out to be duplicate text in the save file. Deleting the extra solved that one, too.

So, we passed happenstance and are into coincidence, but it is not yet enemy action.
Without more data, it might not be possible to track down the cause.
 

Wafflesnake

Well-Known Member
Nov 4, 2023
372
110
23
i've also fixed at least one save in discord with a similar issue. i still have one such save that i've attached.
 

Attachments

  • 6Rv3Qvv corrupt.json
    648.7 KB · Views: 4
Last edited:

Jacques00

Administrator
Moderator
Aug 26, 2015
5,140
1,270
Okay, I will pass this onto the team to decipher what is going on.
 
Aug 26, 2024
24
3
It's not duplicated data, it seems to be old data.
from OP:
"orgasms":1989 in the valid JSON
vs
"orgasms":1951 in the extra data

and from the save Wafflesnake attached:
"orgasms":10 in the valid JSON
vs
"orgasms":9 in the extra data
 
Last edited:

Bweezy

New Member
Sep 5, 2024
1
0
25
Hiya! I'm having the same problem. Can you help me fix? Thanks
 

Attachments

  • Leia (F) - 19Hrs 2Mins, 4 Days - Mhen’ga, Ara Ara.json
    739.7 KB · Views: 5
Aug 26, 2024
24
3
All of the broken files I've seen so far have had an in-game time that is different from the time in the file name, indicating a prior save was overwritten. The most recent file in this thread appears to have two different sets of garbage data, which implies whatever is happening would be repeatable with the right steps. My hypothesis is something along the lines of:

Save to file -> shrink save size -> save to file with same name -> OS doesn't recognize the overwrite and doesn't delete the existing file (how??) -> save download writes to the beginning of the file, leaving garbage data from the old save at the end.

I've tried to replicate this on Windows with no luck. Maybe it happens on a different OS?
 
Aug 26, 2024
24
3
It's an Android problem.

Procedure is exactly what I thought it was. Save to file, shrink save file (I just sold items), save to file, touch the existing save file to change the name to match, choose to overwrite, Android only writes what it has and leaves everything after that.

What the fuck? In what universe is that a reasonable way to handle overwrites?

Here's a StackOverflow question on how to fix it, although this might be upstream of TiTS.

On the bright side this just gave me the answer to an occasional complaint I get on one of my own apps. Didn't expect that when looking at a bug in a porn game, so thanks I guess?
 

Gedan

BUTTS BUTTS BUTTS
Staff member
Aug 26, 2015
8,008,924
8,008,325
It's an Android problem.

Procedure is exactly what I thought it was. Save to file, shrink save file (I just sold items), save to file, touch the existing save file to change the name to match, choose to overwrite, Android only writes what it has and leaves everything after that.

What the fuck? In what universe is that a reasonable way to handle overwrites?

Here's a StackOverflow question on how to fix it, although this might be upstream of TiTS.

On the bright side this just gave me the answer to an occasional complaint I get on one of my own apps. Didn't expect that when looking at a bug in a porn game, so thanks I guess?

This is basically one of the standard file open read/write modes, specifically "r+". R predominantly exists for reading, but + also enables writing. The main difference between r+ and w is where it positions the file cursor initially - because r+ is for primarily reading, the cursor will be at the start of the file. If you write, you write from that point, whereas something like w would first truncate the file to 0 length, or a/a+ where the cursor is at the end of the existing file.

Androids openFileDescriptor call uses some of these same modes, and the plugin we're using (imo correctly) uses "w", but crucially there's this in the documentation on the android side API:

Please note the exact implementation of these may differ for each Provider implementation - for example, "w" may or may not truncate.

I'm not completely up to date with current android shit, but I THINK the provider is a system component, essentially meaning different device brands can provide system libraries that treat these mode indicators different. So basically, "fuck you, guess." There is a specific additional mode that should always truncate (wt/rwt), but the issue is we use a plugin for cordova to provide the dialog functionality, which now means I need to fork, modify, push this somewhere, and then figure out how to get cordova to cooperate with it.
 

Gedan

BUTTS BUTTS BUTTS
Staff member
Aug 26, 2015
8,008,924
8,008,325
Okay I did some science and now hopefully the underlying plugin should use the correct file access modes. This should be fixed in the next build.
 
Status
Not open for further replies.