PleasingFungus / Silicon-Zeroes

Issue repository for Silicon Zeroes. (Contains no actual code.)
12 stars 0 forks source link

Corrupted solution when clicking redo too fast. #100

Open n4melyc0der opened 7 years ago

n4melyc0der commented 7 years ago

When I clicked redo a bit too fast and hasty (a few times in a second) the game crashed and now my savefile for that challenge is corrupt (the game crashes when loading the file).

PS: Is there any method to recover my corrupted file?

PleasingFungus commented 7 years ago

Can you post the save file here? If you're on Windows, it'll be in [GAME INSTALL DIRECTORY]/profiles/profile0/saves/puzz-Odds.mftsv ; if on OS X, it's ~/Library/Application Support/Silicon Zeroes/profiles/profile0/saves/puzz-Odds.mftsv .

PleasingFungus commented 7 years ago

Also, do you remember what actions you were un/re-doing?

n4melyc0der commented 7 years ago

Hmm, I think I was adding/removing a few chips from the board. Something in the input-latch-equals-adder zone (lower left corner of screen).

/profiles/profile0/saves/puzz-Branch.mftsv, from where, the steam folder?

n4melyc0der commented 7 years ago

(Odds puzzle, board *)

PleasingFungus commented 7 years ago

oops, sorry, github ate the formatting. i've edited that comment; it should've read [GAME INSTALL DIRECTORY]/profiles/profile0/saves/puzz-Odds.mftsv .

You can find the game install directory from steam by right-clicking the game in your library, clicking 'properties', choosing the 'local files' tab, and then clicking 'browse local files'.

n4melyc0der commented 7 years ago

puzz-Odds.mftsv.txt

Here you go! GitHub doesn't support mftsv files, so you'll have to change the extension though.

PleasingFungus commented 7 years ago

Sure, I'll take a look in a moment. Thanks for reporting!

PleasingFungus commented 7 years ago

puzz-Odds.mftsv.txt

Try replacing your save with this - this should be un-broken. (Though there's not much in it...)

Keeping the ticket open until I debug the cause of the corruption.

n4melyc0der commented 7 years ago

Your corruption-undo tool has sure screwed the posh there, I had like 24 modules! Thankfully I was able to recover nearly-everything using the "last successful solution" button.

Anyways, thanks for the help!

PleasingFungus commented 7 years ago

The save only had those four modules in it. The crash was because it was still storing the wires to your other modules, which no longer existed.

n4melyc0der commented 7 years ago

Huh, that's werid. I'm not sure the modules ever existed in the first place. The first one looks like my auto-incrementer, but I'm not using it in the contraption.

PleasingFungus commented 7 years ago

OP's game crashed again today in a similar case, this time while mashing 'undo'. No save corruption this time.

mahpete commented 7 years ago

I think I've got a similar issue, with a repeatable save file.

I've experienced both a "Silicone Zeros.exe has stopped working" and a "ERROR: loadsucc perform" crash while holding ctrl-y and clicking the redo button, respectively.

VERSION: 1.1.1.1-gffa46c9a on windows 10, if that matters.

I don't recall what I might have been doing to start the overlap, sadly.

the interesting part of the save:

-MODULE 14 START- 1 (Number) 1040,560 NAME: Number 4 -CONFIG START- 3 1 -CONFIG END- -MODULE 14 END- -MODULE 15 START- 1 (Number) 1040,560 NAME: Number 4 -CONFIG START- 3 1 -CONFIG END- -MODULE 15 END-

the file itself:

puzz-Odds (1).mftsv.txt

(you might need to fiddle back and forth for it to crash, haven't worked out exactly how to make it happen.)

PleasingFungus commented 7 years ago

Hm. This still isn't a recipe to reproduce it, and it's also starting from a corrupt state (identical-location modules); the game is broken well before it crashes, which makes it harder to track down the actual root problem.

Still, I'll see what I can do.