ScummVm PS2<->PC Savegames converter (with GUI)

Subforum for discussion and help with ScummVM's PlayStation 2 port

Moderator: ScummVM Team

Post Reply
andrea
Posts: 3
Joined: Wed May 06, 2009 3:48 pm
Location: Italy
Contact:

ScummVm PS2<->PC Savegames converter (with GUI)

Post by andrea »

Here we are...
Hi, I'm a great user of ScummVm ... nearly of all his port...
Yesterday I think I've met the same problem of candu...with Simon 1 on the ScummVm for PS2 (the invisible toadpole problem)...
So I've downloaded the converter from candu and easily I've resolved the problem (playing that section on the PC and then converting the save for my PS2)
But I've noticed that many ScummVm users don't know how to use a command line software...so I've programmed a new software with a fully functional GUI (or frontend) for convert ScummVm PC savegames to-and-from ScummVm PS2 savegames (no matter what ScummVm version you use).
This software is also easier to use because all you have to do is:
-insert the name of the output file (no spaces)
-click on a button (depending what you want to convert)
-choose the file to convert from the dialog and press OK
-...DONE!

Your converted save file will be in the same directory of the main program file (ScummVm_PS2-PC_savegames_converter.exe)

Usually the output file name should be:
-PS2 ScummVm savegames:
*.ucl (eg. 001.ucl, 002.ucl, 003.ucl ...)
-PC ScummVm savegames:
*.001 (eg. SAVE.001, SAVE.002, SAVE.003 ...)

The software is for Windows (95/98/Me/2000/Xp/Vista/7)

To download, copy and paste this link in your browser (don't left click on it...just: right click, copy and paste in the address bar of your browser):

http://evonture.altervista.org/ScummVm_ ... verter.exe

That's all... ;D
Bye...
Last edited by andrea on Wed May 06, 2009 9:20 pm, edited 1 time in total.
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

Erm... the savegames for PC and PS2 should be interchangeable. So I'm not quite sure what this converter does. Plus it's a dead link (gives 404)...
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

As mentioned, the PS2 and PC save games should be exactly the same. Your converter is UPX packed, has references to socket functions, and uses AutoIt libraries (a scripting system). Please, explain why this functionality is needed for a program which is supposed to convert savegames.

Sorry for being cautious here, it's just that you are fairly new here and only got 1 post, and all these coincidences look a bit strange.

I've removed the link till we get some sort of explanation as to what your program is actually doing, preferably with some source code. As it stands, it looks to be quite suspicious.
andrea
Posts: 3
Joined: Wed May 06, 2009 3:48 pm
Location: Italy
Contact:

Post by andrea »

No...no...chill out...for me the savegames are not the same...not even interchangeable...and so for the other games...you know...the scummvm for ps2 has a ucl compression for the savegames...instead of the zlib for the pc version...so my software change the compression between the files...and I assure you that it works...
Yeah...the software is UPX packed and made with AutoItv3 ....it's the language that I use...it's very powerful and fast...the UPX compression is a default in the compiler configuration...

For the download link: As I said...copy and paste the link in the address bar...due altervista you can't link a file directly from another site...
Hey...it's all ok :)

It's my first post...but from a post I've to begin :D
I'm a big fan of ScummVM...and so I wanted to help other user like me...
Again: it's all safe...
Bye! ;)

Ah...for the source code...I've based the compression library stuff on the candu software...and so the source is this:

Code: Select all

GUICreate&#40;"PS2<->PC",230,150&#41;
GUICtrlCreateLabel&#40;"ScummVm PS2<->PC savegames converter",10,5,210,20&#41;
GUICtrlCreateLabel&#40;"Created by Andrea Pignataro &#40;2009&#41;",10,130,210,20&#41;
$Button_1 = GUICtrlCreateButton &#40;"ScummVM for PS2 to ScummVM for PC",  10, 60, 210,30&#41;
$Button_2 = GUICtrlCreateButton &#40; "ScummVM for PC to ScummVM for PS2",  10, 95,210,30&#41;
$nomeuscita=GuiCtrlCreateInput&#40;"",110,30,100,20&#41;
GUICtrlCreateLabel&#40;"Output file name&#58;",20,33,90,20&#41;
GUISetState &#40;&#41;    
FileInstall&#40;"scummsave_convert.exe",@TempDir & "\scummsave_convert.exe" ,1&#41;

While 1
    $msg = GUIGetMsg&#40;&#41;
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_1
			While 1
            $fileuscita=GuiCtrlRead&#40;$nomeuscita&#41;
			If $fileuscita = "" Or StringInStr&#40;$fileuscita," "&#41;<>0 Then
			MsgBox&#40;0,"Warning!","The output file name is not valid!"&#41;
			ExitLoop
		EndIf
		$fileingresso = FileOpenDialog&#40;"Choose the savegame file to convert...", @ScriptDir, "Tutti i file &#40;*.*&#41;", 1&#41;
		If @error Then
		ExitLoop
	EndIf
	$fileingresso=FileGetShortName&#40;$fileingresso&#41;
			Run&#40;@ComSpec & " /c " & 'scummsave_convert ' & $fileingresso & ' zlib ' & $fileuscita, @TempDir, @SW_HIDE&#41;
			ProcessWaitClose&#40;"scummsave_convert.exe"&#41;
			FileMove&#40;@TempDir & "\" & $fileuscita,@ScriptDir & "\" & $fileuscita,1&#41;
			MsgBox&#40;0,"Done!","Conversion process completed." & @CR & "File saved to&#58; " & @ScriptDir & "\" & $fileuscita&#41;
			ExitLoop
		WEnd
	Case $msg = $Button_2
		While 1
            $fileuscita=GuiCtrlRead&#40;$nomeuscita&#41;
			If $fileuscita = "" Or StringInStr&#40;$fileuscita," "&#41;<>0 Then
			MsgBox&#40;0,"Warning!","The output file name is not valid!"&#41;
			ExitLoop
		EndIf
		$fileingresso = FileOpenDialog&#40;"Choose the savegame file to convert...", @ScriptDir, "Tutti i file &#40;*.*&#41;", 1&#41;
		If @error Then
		ExitLoop
	EndIf
	$fileingresso=FileGetShortName&#40;$fileingresso&#41;
			Run&#40;@ComSpec & " /c " & 'scummsave_convert ' & $fileingresso & ' ucl ' & $fileuscita, @TempDir, @SW_HIDE&#41;
			ProcessWaitClose&#40;"scummsave_convert.exe"&#41;
			FileMove&#40;@TempDir & "\" & $fileuscita,@ScriptDir & "\" & $fileuscita,1&#41;
			MsgBox&#40;0,"Done!","Conversion process completed." & @CR & "File saved to&#58; " & @ScriptDir & "\" & $fileuscita&#41;
			ExitLoop
			WEnd
    EndSelect
Wend
...written in AutoIt v3 ...
I hope that now it's all clear :D :wink:
Last edited by andrea on Thu May 07, 2009 4:42 pm, edited 1 time in total.
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

Thanks, this clears things up :) Nice work
andrea
Posts: 3
Joined: Wed May 06, 2009 3:48 pm
Location: Italy
Contact:

Post by andrea »

Thank you! For me it's a pleasure coding ...and not only in Au3... :wink:
For any other proggy thing...now the ScummVM forum has a new code-machine :)
sunmax
Posts: 14
Joined: Sun Jul 12, 2009 10:35 pm

Post by sunmax »

Hi there!

(and ciao paisa' ;-)

Please note that since 0.13.x we are using zlib to compress
savegames on PS2, so they should be really universal now.

It would be sweet to handle both compressions so that you
can still read PS2 savegames < 0.13.x.

Maybe in the future...

Regards,
-max
Post Reply