[SOLVED] [Pause] Mame Save / Load

Status
Not open for further replies.

buddevil

New member
RL Member
Hello,

Sorry if this thread is antoher one....

I used Mame 0.166 and when i'am on HyperPause, load and save don't work.

Global Emulators.ini :


[MAME]
Emu_Path=Z:\Hyperspin\Emulators\MAME\mamep64.exe
Rom_Extension=7z|zip|chd|cue|a26|a52|a78|bin|caq|col|cpr|gg|gb|gba|gbc|int|rom|sms|st2|md|nes|ngc|ngp|pce|sfc|sv|vb|vec
Module=MAME.ahk
Pause_Save_State_Keys={shift down}{F7 down}{F7 up}{shift up};sleep 800;{a down}{a up}|{shift down}{F7 down}{F7 up}{shift up};sleep 800;{b down}{b up}|{shift down}{F7 down}{F7 up}{shift up};sleep 800;{c down}{c up}|{shift down}{F7 down}{F7 up}{shift up};sleep 800;{d down}{d up}
Pause_Load_State_Keys={shift down}{F7 down}{F7 up}{shift up};sleep 800;{a down}{a up}|{shift down}{F7 down}{F7 up}{shift up};sleep 800;{b down}{b up}|{shift down}{F7 down}{F7 up}{shift up};sleep 800;{c down}{c up}|{shift down}{F7 down}{F7 up}{shift up};sleep 800;{d down}{d up}

Key in Mame :



When i launch save with my keyboard (MAJ+F7) +'a' => it work
When i launch Load with my keyboard (F7) + 'a' => it work

In HyperPause, i only see the log of screenshot nothing else.

RockeLauncher logs: http://pastebin.com/83CVL1sH

RocketLauncher.ini (Mame) :

Pause_Enabled = true


RocketLauncher.ini :

HTML:
[Pause]
Pause_Key=Enter
Pause_Back_to_Menu_Bar_Key=L
Pause_Zoom_In_Key=Space
Pause_Zoom_Out_Key=N
Pause_Screenshot_Key=~PrintScreen
Pause_HiToText_Path=.\Module Extensions\HiToText.exe

Global Pause.ini :

HTML:
[General Options]
Mute_when_Loading_Pause=true
Mute_Sound=false
Disable_Pause_Menu=true
Controller_Menu_Enabled=true
ChangeDisc_Menu_Enabled=true
SaveandLoad_Menu_Enabled=true
HighScore_Menu_Enabled=true
Artwork_Menu_Enabled=true
Guides_Menu_Enabled=true
Manuals_Menu_Enabled=true
Sound_Menu_Enabled=true
Videos_Menu_Enabled=true
Statistics_Menu_Enabled=true
MovesList_Menu_Enabled=true
History_Menu_Enabled=true
Shutdown_Label_Enabled=true
Load_PDF_and_Compressed_Files_at_Pause_First_Start=false
Pdf_Dpi_Resolution=72
Enable_Mouse_Control=false
Support_Additional_Image_Files=true
Force_Resolution_Change=
Pause_Monitor=
Pause_Screen_Rotation_Angle=0
Settings_Menu_Enabled=true
PDF_Page_Layout=frompdf
PDF_Max_Height=1080
Screenshot_Extension=jpg
Screenshot_JPG_Quality=100
Pause_Use_Parent_Game_Media_Assets=true
Pause_Load_PDF_On_Label=false

[Main Menu Appearance Options]
Enable_Auto_Fit_Screen_Resolution=true
Enable_Global_Background=true
Background_Align_Image=Align to Top Left
Main_Menu_Items=Controller|Change Disc|Save State|Load State|HighScore|Artwork|Guides|Manuals|Videos|Sound|Statistics|History|Moves List|Shutdown
Enable_Clock=true
Clock_Font=Arial
Clock_Font_Size=15
Main_Bar_Text_Font=Arial
Main_Bar_Text_Font_Size=50
Main_Bar_Text_Selected_Color=ffffffff
Main_Bar_Text_Disabled_Color=44ffffff
Main_Bar_Horizontal_Distance_Between_Labels=300
Main_Bar_Height=60
Main_Bar_GradientBrush1=6f000000
Main_Bar_GradientBrush2=ff000000
Background_Brush=aa000000
Game_Info_Items=Publisher|Developer|Company|Released|Year|Systems|Genre|Perspective|GameType|Language|Score|Controls|Players|NumPlayers|Series|Esrb|Description
Game_Info_Font=Arial
Game_Info_Font_Size=15
Game_Info_Font_Color=ffffffff
Game_Info_Break_Line_Max_Text_Size=600
Game_Info_Description_Font=Arial
Game_Info_Description_Font_Size=15
Game_Info_Description_Font_Color=ffffffff
Game_Info_Description_Scrolling_Velocity=1
Use_Screenshot_As_Background=false
Mouse_Control_Overlay_Transparency=50
Bar_Vertical_Offset=0
Pause_Base_Resolution_Width=1920
Pause_Base_Resolution_Height=1080
Background_Color=ff000000

[Start and Exit Screen]
Loading_Text=Loading Pause
Exiting_Text=Exiting Pause
Font=Arial
Font_Size=30
Font_Color=ff222222
Text_Margin=50

[SubMenu Appearance Options]
Additional_Text_Margin_Contour=10
Minimum_Text_Box_Width=200
Appearance_Delay_in_Milliseconds=500
Top_Right_Chamfer_Size=30
Width=1000
Height=320
Background_Brush=44000000
Label_Font=Bebas Neue
Label_Font_Size=25
Content_Font=Arial
Content_Font_Size=20
Content_Small_Font_Size=15
Help_Font=Bebas Neue
Help_Font_Size=15
Selected_Brush=cc000000
Disabled_Brush=44000000
Radius_of_Rounded_Corners=10

[SubMenu FullScreen Appearance Options]
Margin=20
Radius_of_Rounded_Corners=10
Background_Brush=88000000
Legend_Text_Brush=DD000015
Legend_Text_Font_Color=ffffffff
Legend_Text_Font_Size=15
Zoom_Steps=25
Pan_Steps=120
Full_Screen_Help_Text_Timer=2000

[SubMenu Save and Load State Appearance Options]
Vertical_Distance_Between_Labels=50
Horizontal_Margin=150
Vertical_Margin=60
Delay_to_Send_Keys=500
Set_Key_Delay=200
Enable_Save_State_Screenshot=true

[SubMenu Sound Control Appearance Options]
Single_Bar_Width=20
Single_Bar_Spacing=5
Single_Bar_Height=30
Height_Difference_Between_Bars=2
Volume_Steps=5
Selected_Color=ffffffff
Disabled_Color=44ffffff
Mute_Button_Font_Size=15
Sound_Mute_Button_Vertical_Distance=50
Space_Between_Sound_Bar_and_Sound_Bitmap=40
Sound_Distance_to_Sound_Level=10
Enable_Music_Player=true
Playlist_Extension=m3u
Music_Files_Extension=mp3|m4a|wav|mid|wma
Enable_Music_on_Pause_Startup=true
Keep_Playing_after_Exiting_Pause=false
Enable_Shuffle=true
Enable_Loop=true
External_Playlist_Path=
Space_Between_Music_Player_Buttons=50
Size_of_Music_Player_Buttons=50
Music_Player_Vertical_Distance=50
Sound_Button_Growing_Velocity=1
Music_Player_Volume_Level=100

[SubMenu Change Disc Appearance Options]
Vertical_Margin=30
Text_Distance_to_Image=20
Use_Game_Art_for_Disc_Image=true
Selected_Disc_Effect=rotate
Side_Padding=0.2
Game_Art_Disc_Artwork_Dir=Artwork1

[SubMenu HighScore Appearance Options]
Highlighted_Player_Name=GEN
Highlighted_Player_Font_Color=ff00ffff
Font_Color=ffffffff
Font_Size=15
Title_Font_Size=20
Title_Font_Color=ffffff00
Selected_Font_Color=ffff00ff
Superior_Margin=30
Full_Screen_Width=800

[SubMenu Moves List Appearance Options]
Vertical_Margin=30
Horizontal_Margin=30
Vertical_Distance_Between_Labels=50
Horizontal_Distance_Between_Labels_and_MovesList=100
Vertical_Distance_Between_Moves_Lines=40
Secondary_Font_Size=15
Vertical_Move_Image_Size=40
Full_Screen_Width=800
Horizontal_Full_Screen_Moves_Margin=200

[SubMenu Statistics Appearance Options]
Vertical_Margin=30
Horizontal_Margin=60
Table_Font_Size=15
Distance_Between_Labels_and_Table=40
Vertical_Distance_Between_Table_Lines=30
Vertical_Distance_Between_Labels=50
Title_Font_Size=20
Title_Font_Color=ffffff00
Full_Screen_Width=800

[SubMenu Guides Appearance Options]
Vertical_Margin=30
Horizontal_Margin=30
Horizontal_Distance_Between_Pages=50
Selected_Brush=33ffff00
Vertical_Distance_Between_Labels=50
Horizontal_Distance_Between_Labels_and_Pages=50
Page_Number_Font_Color=00000000
Show_Item_Labels=true

[SubMenu History Appearance Options]
Vertical_Margin=30
Horizontal_Margin=30
Horizontal_Distance_Between_Pages=50
Selected_Brush=33ffff00
Vertical_Distance_Between_Labels=50
Horizontal_Distance_Between_Labels_and_Pages=50
Page_Number_Font_Color=00000000

[SubMenu Manuals Appearance Options]
Vertical_Margin=30
Horizontal_Margin=30
Horizontal_Distance_Between_Pages=50
Selected_Brush=33ffff00
Vertical_Distance_Between_Labels=50
Horizontal_Distance_Between_Labels_and_Pages=50
Page_Number_Font_Color=00000000
Show_Item_Labels=true

[SubMenu Controller Appearance Options]
Vertical_Margin=30
Horizontal_Margin=30
Horizontal_Distance_Between_Pages=50
Selected_Brush=33ffff00
Vertical_Distance_Between_Labels=50
Horizontal_Distance_Between_Labels_and_Pages=50
Page_Number_Font_Color=00000000
Controller_Banner_Height=40
Vertical_Distance_Between_Buttons=80
Vertical_Distance_Between_Banners=30
Horizontal_Distance_Between_Controller_Banner_Elements=40
Selected_Controller_Banner_Displacement=20
Show_Item_Labels=true

[SubMenu Artwork Appearance Options]
Vertical_Margin=30
Horizontal_Margin=30
Horizontal_Distance_Between_Pages=50
Selected_Brush=33ffff00
Vertical_Distance_Between_Labels=50
Horizontal_Distance_Between_Labels_and_Pages=50
Page_Number_Font_Color=00000000
Artwork_1_Label=Artwork 1
Artwork_2_Label=Game Box Art
Artwork_3_Label=Cartridge
Artwork_4_Label=Flyers
Show_Item_Labels=true

[SubMenu Videos Appearance Options]
Supported_Videos=avi|wmv|mp4
Enable_Hyperspin_Videos=true
Vertical_Margin=30
Horizontal_Margin=30
Vertical_Distance_Between_Labels=50
Enable_Loop=true
Video_Seconds_to_Jump_in_Rewind_and_Fast_Forward_Buttons=5
Video_Button_Growing_Velocity=1
Size_of_Video_Player_Buttons=45
Space_Between_Video_Player_Buttons=15
Space_Between_Label_and_Video_Player_Buttons=30
Video_Player_Volume_Level=100

[SubMenu Settings Appearance Options]
Vertical_Distance_Between_Labels=75
Horizontal_Margin=200
Vertical_Margin=90
Option_Font_Size=22

If you have any idea ...

Thanks you for Help

Bests regards
 

brolly

Administrator
Developer
Re: [HyperPause] Mame Save / Load

You need a directinput enabled build of MAME for this to work.
 

buddevil

New member
RL Member
Re: [HyperPause] Mame Save / Load

I use now Mame 0.166 with direct input, key for save and load are same in the descripition.
On pause, when i launch "Save State", the windows with "Select position to save to" stay on screen, i wait 20 secs and nothing
When i launch "Load State", the same windows appears "Select position to save to" ???

any idea please ?

thanks a lot for your help
 

abique

New member
RL Member
Hello there,
unfortunately I've the same issue.
I'm using MAMEUIFX 0.171 x64 Hi Score+No Nag+Direct Input and RocketLauncher in the latest version.
Saving and loading states by pressing Shift+F7 / F7 out of Mame works perfectly. By pressing Shift+F7 Mame asks for a position to save the state. When I press the "a" key the file "a.sta" will be created in Mame's sta folder.
When I do that from Pause nothing happens. Pause closes without asking for a position to save the state. But Pause displays a timestamp what says that a state has been created, but when I look into Mame's sta folder there's nothing in it. Trying to load the state is the same. After selecting the save state and pressing enter Pause closes without loading a saved state.
I tried to change the keys in Mame and in Global Emulators.ini, played around with different delay times, but nothing helped. I also tried different Mame versions all with direct input. Even statistics are enabled in RL UI.
The log file puts out that the command was sent to the emulator, but it seems that Mame does not receive it.:
Code:
15:22:33:438 | MD |     INFO  | +2964  | SaveState KeySelected {shift down}{F7 down}{F7 up}{shift up} sent to the emulator
15:22:33:538 | MD |     INFO  | +93    | Pause Closed
15:22:39:297 | MD |     INFO  | +5757  | Pause Started: current rom: 1944, current system Name: MAME
15:22:39:674 | MD |     INFO  | +374   | Finished Loading Pause
15:22:39:920 | MD |     INFO  | +250   | Loaded SaveState SubMenu
15:22:42:402 | MD |     INFO  | +2480  | Loaded Main Menu Bar. Current Main Menu Label: Save State
15:22:42:549 | MD |     INFO  | +156   | Loaded SaveState SubMenu
15:22:42:869 | MD |     INFO  | +312   | Loaded Main Menu Bar. Current Main Menu Label: Load State
15:22:43:993 | MD |     INFO  | +1123  | Loaded LoadState SubMenu
15:22:44:693 | MD |     INFO  | +702   | Loaded Main Menu Bar. Current Main Menu Label: Load State
15:22:44:815 | MD |     INFO  | +125   | Loaded LoadState SubMenu
15:22:47:826 | MD |     INFO  | +3011  | Closing Pause
15:22:50:246 | MD |     INFO  | +2418  | LoadState KeySelected {F7 down}{F7 up} sent to the emulator
15:22:50:251 | MD |     INFO  | +0     | Pause Closed
15:22:54:573 | MD |     INFO  | +4321  | Pause Started: current rom: 1944, current system Name: MAME
15:22:55:131 | MD |     INFO  | +562   | Finished Loading Pause
15:22:55:268 | MD |     INFO  | +140   | Loaded LoadState SubMenu
15:23:02:765 | MD |     INFO  | +7504  | Closing Pause
15:23:05:060 | MD |     INFO  | +2293  | LoadState KeySelected {F7 down}{F7 up} sent to the emulator
15:23:05:065 | MD |     INFO  | +0     | Pause Closed

Any help would be appreciated!!
 

abique

New member
RL Member
Ok, finally I got things to work, but it was a bit tricky!
1)
First of all I found a typing error in the Mame section in Rocket Launcher's "Global Emulators.ini"
Next to "Pause_Save_State_Keys" and "Pause_Load_State_Keys" you can define several slots to save and load states. The first slot will be saved with letter "a", the second with letter "b" and so on. So the commands for the second slot must be {b down}{b up} and NOT {a down}{b up} or {a down}{c up} and so on.
Next I had to replace ";sleep 800;" with "{800}" otherwise Pause will not show more than one slot and everything next from ";" will not be sent to the emulator!
So here are the corrected lines:
Code:
Pause_Save_State_Keys={shift down}{F7 down}{F7 up}{shift up}{800}{a down}{a up}|{shift down}{F7 down}{F7 up}{shift up}{800}{b down}{b up}|{shift down}{F7 down}{F7 up}{shift up}{800}{c down}{c up}|{shift down}{F7 down}{F7 up}{shift up}{800}{d down}{d up}|{shift down}{F7 down}{F7 up}{shift up}{800}{e down}{e up}|{shift down}{F7 down}{F7 up}{shift up}{800}{f down}{f up}|{shift down}{F7 down}{F7 up}{shift up}{800}{g down}{g up}|{shift down}{F7 down}{F7 up}{shift up}{800}{h down}{h up}|{shift down}{F7 down}{F7 up}{shift up}{800}{i down}{i up}|{shift down}{F7 down}{F7 up}{shift up}{800}{j down}{j up}
Pause_Load_State_Keys={F7 down}{F7 up}{800}{a down}{a up}|{F7 down}{F7 up}{800}{b down}{b up}|{F7 down}{F7 up}{800}{c down}{c up}|{F7 down}{F7 up}{800}{d down}{d up}|{F7 down}{F7 up}{800}{e down}{e up}|{F7 down}{F7 up}{800}{f down}{f up}|{F7 down}{F7 up}{800}{g down}{g up}|{F7 down}{F7 up}{800}{h down}{h up}|{F7 down}{F7 up}{800}{i down}{i up}|{F7 down}{F7 up}{800}{j down}{j up}

2)
Then I found out that my Mame version wasn't able to receive Direct Input commands although the file name "MAME 0.166 x64 Hi Score+No Nag+Direct Input" suggests it.
So I decided to compile my own Mame version and downloaded the excellent Mame compiler "Mame Compiler 64" from Headsoft. But although I put a tick at "Force Direct Input" my compiled version still didn't support it! I think I found a bug here :hmmmm:
My solution was to edit "input.cpp" in "src/osd/windows" and changed "#define FORCE_DIRECTINPUT" from 0 to 1 and compiled again.

And then it was finally done!

I hope this helps anybody and my suggestion is to mark this thread as SOLVED :cheers: !!
 

m4me

New member
Just wanted to say thank you so much for this information! I was having the exact same problems and using a pre-compiled no-nag, direct input mame.

Just tested the compiled version with the input.cpp fix plus your pause keys and it's all working great. You are a life saver.
 
Status
Not open for further replies.
Top