Welcome, Guest. Please login or register.
Did you miss your activation email?
July 28, 2014, 04:11:25 AM

Pages: [1] 2
  Print  
Author Topic: saves.exe = Machinarium's simple save file tool [ for Microsoft Windows ONLY ]  (Read 43301 times)
Oldes
citizen robot
**
Posts: 16


« on: December 21, 2009, 06:59:10 PM »

Some people using Windows reported that they lost their game positions when used clean up tool's like CCleaner. The game is storing it's game states in a file which is on Windows located under %APPDATA% folder which is being cleaned by the tools like the one above (if you don't add exceptions).

Because we were asked if it's possible to provide some way how to backup (store/restore) this file, I have written this tool:
http://machinarium.net/download/saves.exe

Just copy it to directory where you have your Machinarium.exe file and run it. You will be asked if you want to store the remote game's file to local dir and or restore this file from the local dir to the place which is used by the game.


The tool is made in REBOL (which I used to program the game as well) and it's source is here:

Code:
REBOL [
title: "Machinarium save's tool"
purpose: "Stores/restores Machinarium's save file (local shared object)"
]

saves: context [
verbose: true

store: func[
"Gets Machinarium's save file and stores it in the current dir"
][
write/binary %Machinarium.sol read/binary get-machinarium.sol-file
end-message "Machinarium.sol file found and stored."
]

restore: func[
"Gets Machinarium's save file from the current dir and restores it"
][
write/binary get-machinarium.sol-file read/binary %Machinarium.sol
end-message "Machinarium.sol file found and restored."
]

get-current-dir-path: func[
"Returns absolute path to current dir without a drive letter"
/local current-dir
][
current-dir: what-dir
unless exists? current-dir/Machinarium.exe [
end-message "ERROR: Cannot find Machinarium.exe file!"
]
find/tail next current-dir #"/"
]

get-machinarium.sol-file: func[
"Returns Machinarium.sol file or quits"
/local app-dir sol-dirs sol-file
][
app-dir:  to-rebol-file get-env "APPDATA"
sol-dirs: join app-dir %/Macromedia/Flash%20Player/#SharedObjects/
foreach id read sol-dirs [
sol-file: rejoin [
sol-dirs
id
%localhost/
get-current-dir-path
%Machinarium.exe/Machinarium.sol
]
if exists? sol-file [
if verbose [
print join "^/SOL file:^/" to-local-file sol-file
]
return sol-file
]
]
end-message "ERROR: machinarium.sol file not found!"
]

end-message: func[msg][
if any [
verbose
find msg "ERROR"
][
print join "^/" msg
ask "(Press enter to continue) "
]
]

switch/default system/script/args [
;command line version:
"store"   [verbose: false store  ]    
"restore" [verbose: false restore]
][
;interactive version:
forever [
prin  "^(1B)[J" ;clears screen
print "== Machinarium's saves (local shared object) ================================="
print "=============================================================================="
print "1) store   (Gets Machinarium's save file and stores it in the current dir)"
print "2) restore (Gets Machinarium's save file from the current dir and restores it)"
print "3) quit"
print "------------------------------------------------------------------------------"
switch ask "What do you want? [1,2,3] " [
"1" [store]
"2" [restore]
"3" [quit]
]
]
]
]


If you want to run the script instead of the exe you must download REBOL interpreter which you can find at this link: http://www.rebol.com/download.html
The CORE version is enough as the script is using no visuals.
« Last Edit: March 28, 2012, 06:23:42 AM by Alex » Logged
moku1234
little rusty robot

Posts: 1


« Reply #1 on: December 22, 2009, 06:29:29 PM »

Hey... I also faced same problem!
I done a very simple thing....

1. Go to CCleaner
2. Click on "Applications"
3. Uncheck Flash Player application i.e. "Adobe Flash Player" from Multimedia Group
Now run cleaner ....
Ur saved game will not be cleaned!!
smart way.....! Wink
Logged
jad541
little rusty robot

Posts: 1


« Reply #2 on: December 25, 2009, 06:17:15 PM »

The link that you gave to "saves.exe" does not work! Would love to download the fix.  Thanks. JAD
Logged
bsodphantom
little rusty robot

Posts: 1


« Reply #3 on: January 01, 2010, 08:22:13 AM »

The original post has a typo:
machinarium.net/downloads/saves.exe should be http://machinarium.net/download/saves.exe

Singular download not plural downloads.

My compliments to the developers of this game.

ModComment: Thanks bsodphantom!  Change was made to Oldes' original post.

« Last Edit: January 02, 2010, 08:17:09 AM by ABoretz » Logged
solt87
little rusty robot

Posts: 1


« Reply #4 on: January 09, 2010, 09:55:59 PM »

 I tried to use saves.exe, but I got the following error message ("Rendszergazda" is the name of the user):

 ** Access Error: Cannot open /C/Documents and Settings/Rendszergazda/Application Data/Macromedia/Flash Player/#SharedObjects/
** Where: get-machinarium.sol-file
** Near: foreach id read sol-dirs [
    sol-file: rejoin [
        sol-dirs
        id
        %localhost/
        get-current...
** Press enter to quit...


I copied saves.exe to the folder where machinarium.exe is. Did I miss something?

edit: Problem solved. I inndeed missed something: it was Firefox's BetterPrivacy... Sorry for the "false alarm".
« Last Edit: January 10, 2010, 07:33:51 PM by solt87 » Logged
huf
little rusty robot

Posts: 1


« Reply #5 on: January 22, 2010, 08:36:22 AM »

Thanks for taking this matter seriously.

The save file works just fine. Smiley
Logged
Multik
little robot
*
Posts: 5


« Reply #6 on: September 04, 2010, 09:49:56 AM »

Great work!
All is fine. Thanx Kiss
Logged
davecrockett
little robot
*
Posts: 5


« Reply #7 on: December 13, 2010, 08:34:30 PM »

The link that you gave to "saves.exe" does not work! Would love to download the fix.  Thanks. JAD
What's a CCleaner?
Logged
librainian
little rusty robot

Posts: 1


« Reply #8 on: December 15, 2010, 10:57:24 PM »

CCleaner is a popular tool from PiriForm which can remove hidden temporary files from many default locations on Windows based computers. It has a number of other built in tools like a registry cleaner and some other handy things.
Logged
davecrockett
little robot
*
Posts: 5


« Reply #9 on: December 16, 2010, 04:32:14 PM »

OK, I moved the SOL file to the Machinarium game directory and used the savedgames tool,tested it in game and it works. But after I close the game and return to pick up where I saved it's gone.
Logged
davecrockett
little robot
*
Posts: 5


« Reply #10 on: December 17, 2010, 05:30:58 PM »

Look here: http://www.adobe.com/support/security/bulletins/apsb07-12.html
Just had the urge to check it out.
Logged
ABoretz
god of all robots
*********
Gender: Male
Posts: 666



WWW
« Reply #11 on: December 18, 2010, 07:52:50 PM »

OK, I moved the SOL file to the Machinarium game directory and used the savedgames tool,tested it in game and it works. But after I close the game and return to pick up where I saved it's gone.

By right-clicking on the screen you get to the Adobe Flash Player Settings Tabs, select the little folder icon.
"How much information can local store on your computer?" Make sure the slider is NOT set to none! At least 100 KB or more are needed!

Source: http://machinarium.net/forum/index.php/topic,463.msg2228.html#msg2228
Logged
jenso942
little robot
*
Posts: 5



« Reply #12 on: December 25, 2010, 10:37:09 PM »

Hey... I also faced same problem!
I done a very simple thing....

1. Go to CCleaner
2. Click on "Applications"
3. Uncheck Flash Player application i.e. "Adobe Flash Player" from Multimedia Group
Now run cleaner ....
Ur saved game will not be cleaned!!
smart way.....! Wink
ouuuh, thats why... i was really wondering why all my save games was deleted the other day, and then now i know its because of that im using ccleaner all the time ;S, thanks! Cheesy
Logged

I like being a "little rusty robot"
peter tron
little robot
*
Posts: 6


« Reply #13 on: March 28, 2012, 01:55:35 AM »

hi!

i'm having the same problem, but i've read through the thread.

i have vista 32
i use firefox 11.0

i have made about three save slots, and whenever i quit and go back into the game, it gives me the option to 'resume game'.

i am only on the beginning screen, but i have used the rope and magnet to retrieve my missing arm.

i decided to 'save'.

i reloaded, but it starts right back at the beginning!

is this correct?

i have downloaded the saves.exe and it resides in the same dir folder.
i have run it and typed 1, and it says:

ERROR: machinarium.sol file not found!
(Press enter to continue)

i press enter, then get this:

** Script Error: read expected source argument of type: file url object block
** Where: store
** Near: write/binary %Machinarium.sol read/binary get-machinarium.sol-file
end-message
** Press enter to quit...

i have manually searched and located the sol file since playing this, but do i leave it where it is, or move it somewhere?
the file is on my pc, but saves.exe says that it isn't.

edit update:

because i had just begun the game, i was not sure how the save function worked.
i have now worked out that you cannot save half-way through one screen!
when i reached the point where you slip on the oil and land in a room below, i saved.

i quit, went back in, loaded that last save and it worked!

so far so good!

baz.



Mod Comment: Glad you're doing okay, baz.  ( hope you don't mind, but i deleted your duplicate post... )  ~A
« Last Edit: March 28, 2012, 06:23:02 AM by Alex » Logged
evergreen
little robot
*
Posts: 2


« Reply #14 on: January 16, 2013, 04:41:13 PM »

I'm having a problem with this program.
I copied the saves.exe to "C:\Users\Username\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\K8GF2W75\localhost\Program Files (x86)\Steam\steamapps\common\Machinarium" which is where Machinarium.exe is located. Machinarium.exe is a folder though, not an executable file, and in it is the Mechanarium.sol. When I run saves.exe there, it gives me this:

What do you want? [1,2,3] 1

ERROR: machinarium.sol file not found!
(Press enter to continue)
** Script Error: read expected source argument of type: file url object block
** Where: store
** Near: write/binary %Machinarium.sol read/binary get-machinarium.sol-file
end-message
** Press enter to quit...

When I copy it into the Mechanarium.exe folder and run it I get this:

What do you want? [1,2,3] 1

ERROR: Cannot find Machinarium.exe file!
(Press enter to continue)

ERROR: machinarium.sol file not found!
(Press enter to continue)
** Script Error: read expected source argument of type: file url object block
** Where: store
** Near: write/binary %Machinarium.sol read/binary get-machinarium.sol-file
end-message
** Press enter to quit...

Now I don't know if I'm in the right place to run saves.exe in the first place, but I tried following the instructions from a different thread to get there, don't know what/if I'm doing something wrong.

Oh yea, Windows 7 64bits.
Logged
Pages: [1] 2
  Print  
 
Jump to: