start-5 / TiTS.JS-Save-Editor

Trials in Tainted Space Save Editor
https://start-5.github.io/TiTS.JS-Save-Editor/
MIT License
30 stars 6 forks source link

Progress removed #74

Closed BasicKarma closed 1 year ago

BasicKarma commented 1 year ago

I found this editor mid-game, so I don't know if that's related, but everytime I used the editor, all of my progress got removed like quest line, interactions and character unlocks... Screenshot (1) Screenshot (2) Like even though I'm already at Myrellion, the probe loc got reset to Mhen'ga Loen (H) - 3Hrs 48Mins, 23 Days - Myrellion, Sindathu.txt

start-5 commented 1 year ago

I see. If you can, can you also post the save before editing it if you still have it?

BasicKarma commented 1 year ago

unfortunately no, I override the original save

start-5 commented 1 year ago

What browser were you using?

BasicKarma commented 1 year ago

I was using opera gx

BasicKarma commented 1 year ago

right so i've restarted for testing, and this is the save before putting in the editor: Before edit.txt

And this is the save after putting in the editor, without changing anything at all: After edit.txt

This is the .json Save.zip

start-5 commented 1 year ago

So far here's what I got.

I haven't been able to reproduce the issue on my side. I downloaded and tried on opera gx too but no luck.

So, unfortunately, some more steps:

BasicKarma commented 1 year ago

I used window, I directly transfer the save from the game into the editor. Below is the process of me exporting the save, transferring it to the editor, and import it into the game. (I have used the browser version in this vid):

https://user-images.githubusercontent.com/128219192/230753136-d7e24a8e-25fa-40bd-b526-1fbfcc315f97.mp4

start-5 commented 1 year ago

That video was incredibly helpful, thank you.

I think the issue is the editor not being able to handle multiple saves on top of another. I briefly mention this here but didn't do a good job at explaining better. Essentially, when you load a save on the editor when another is already loaded, it currently will not fully reset its state and will use some of the same properties the last save had. In your case it is (probably) using the old save's flags and replacing the ones of the save you just dragged.

I never got around to fixing the issue and kinda just forgot it existed tbh.

Just to confirm this is the issue, can you do the same test of loading the undedited file but without any save loaded in the editor? Just refresh the editor page or open a new tab.

BasicKarma commented 1 year ago

It is the case it seems. I was able to reload the save with the flags intact. And to retest the problem, I load another save into the editor and indeed the old flags have replaced the new flags. Not loading saves on top of each other also solve the duplicate perks issues, as an additional note.

start-5 commented 1 year ago

Cool, working on a fix now.

Not loading saves on top of each other also solve the duplicate perks issues, as an additional note.

That makes sense in hindsight.

start-5 commented 1 year ago

Found some time to work on this, loading saves on top of each other should work now