Mame 0.171 - Can't get autosave to work

MAME Gurus come to your aide to help you. Please use the search before adding a topic. This will help cut down on having multiple topics with the same subject.
Post Reply
wonderworld
New Member
New Member
Posts: 3
Joined: March 4th, 2016, 7:16 am

Mame 0.171 - Can't get autosave to work

Post by wonderworld » March 7th, 2016, 4:52 am

I am trying to get autosave to work but I just can't find out what is wrong.

- Mame 0.171
- I have "autosave 1" in my mame.ini
- I configured my "states" folder
- When exiting a game a new state appears in my state folder for the game in question
- Whenever I start or exit a game I get the message "Error: failed to open file for load operation"
- The same error message appears when starting Mame
- Manualy loading and saving states with SHIFT-F7 and F7 works just fine
- I start mame with a shell script

Code: Select all

#!/bin/bash
cd /home/ww/.mame
sdlmame -rompath /home/ww/rom/mame/ -inipath /home/ww/.mame/ini/ -state_directory /home/ww/.mame/sta/ -statename %g_state
The Mame error log shows this:

Code: Select all

ww-ww-10:49:45 ~/.mame -> cat /usr/share/sdlmame/error.log 
[:ymsnd] AY-3-8910/YM2149 using legacy output levels!
[:screen] :screen: Deprecated legacy Old Style screen configured (MCFG_SCREEN_VBLANK_TIME), please use MCFG_SCREEN_RAW_PARAMS instead.
Soft reset
[:maincpu] ':maincpu' (000424): unmapped program memory write to 50002A = 0000 & FF00
[:maincpu] ':maincpu' (00042C): unmapped program memory write to 50002C = FFFF & FF00
Failed save state attempt due to anonymous timers:
=============================================
Timer Dump: Time =     6.199999999
0x8d6baa0: en=1 temp=0 exp=    6.200000000 start=    6.180000000 per=    0.020000000 param=0 ptr=(nil) cb=sound_manager::update
0xd59e150: en=1 temp=1 exp=    6.200416666 start=    6.199999999 per=      (never)   param=0 ptr=(nil) dev=: id=4
0xcde7210: en=1 temp=0 exp=    6.201041666 start=    6.184374999 per=      (never)   param=0 ptr=(nil) dev=:screen id=2
0xcd22930: en=1 temp=0 exp=    6.202313875 start=    6.185897875 per=      (never)   param=0 ptr=(nil) dev=:ymsnd id=1
0xcd22260: en=1 temp=0 exp=    6.204131875 start=    6.186419875 per=      (never)   param=0 ptr=(nil) dev=:ymsnd id=0
0xcde6480: en=1 temp=0 exp=    6.216666666 start=    6.199999999 per=      (never)   param=0 ptr=(nil) dev=:screen id=0
0xb10d170: en=1 temp=0 exp=    9.183361499 start=    6.183361499 per=      (never)   param=0 ptr=(nil) cb=running_machine::watchdog_fired
0xa5c7910: en=1 temp=1 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) cb=(null)
0x8d869f0: en=0 temp=0 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) cb=running_machine::soft_reset
0xcde6b60: en=0 temp=0 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) dev=:screen id=1
0xce74800: en=0 temp=0 exp=      (never)   start=    2.000000000 per=      (never)   param=0 ptr=(nil) cb=running_machine::autoboot_callback
=============================================
Failed save state attempt due to anonymous timers:
=============================================
Timer Dump: Time =     6.200000000
0xd59e150: en=1 temp=1 exp=    6.200416666 start=    6.199999999 per=      (never)   param=0 ptr=(nil) dev=: id=4
0xcde7210: en=1 temp=0 exp=    6.201041666 start=    6.184374999 per=      (never)   param=0 ptr=(nil) dev=:screen id=2
0xcd22930: en=1 temp=0 exp=    6.202313875 start=    6.185897875 per=      (never)   param=0 ptr=(nil) dev=:ymsnd id=1
0xcd22260: en=1 temp=0 exp=    6.204131875 start=    6.186419875 per=      (never)   param=0 ptr=(nil) dev=:ymsnd id=0
0xcde6480: en=1 temp=0 exp=    6.216666666 start=    6.199999999 per=      (never)   param=0 ptr=(nil) dev=:screen id=0
0x8d6baa0: en=1 temp=0 exp=    6.220000000 start=    6.200000000 per=    0.020000000 param=0 ptr=(nil) cb=sound_manager::update
0xb10d170: en=1 temp=0 exp=    9.183361499 start=    6.183361499 per=      (never)   param=0 ptr=(nil) cb=running_machine::watchdog_fired
0xa5c7910: en=1 temp=1 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) cb=(null)
0x8d869f0: en=0 temp=0 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) cb=running_machine::soft_reset
0xcde6b60: en=0 temp=0 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) dev=:screen id=1
0xce74800: en=0 temp=0 exp=      (never)   start=    2.000000000 per=      (never)   param=0 ptr=(nil) cb=running_machine::autoboot_callback
=============================================
Prior to saving state:
=============================================
Timer Dump: Time =     6.200416666
0xcde7210: en=1 temp=0 exp=    6.201041666 start=    6.184374999 per=      (never)   param=0 ptr=(nil) dev=:screen id=2
0xcd22930: en=1 temp=0 exp=    6.202313875 start=    6.185897875 per=      (never)   param=0 ptr=(nil) dev=:ymsnd id=1
0xcd22260: en=1 temp=0 exp=    6.204131875 start=    6.186419875 per=      (never)   param=0 ptr=(nil) dev=:ymsnd id=0
0xcde6480: en=1 temp=0 exp=    6.216666666 start=    6.199999999 per=      (never)   param=0 ptr=(nil) dev=:screen id=0
0x8d6baa0: en=1 temp=0 exp=    6.220000000 start=    6.200000000 per=    0.020000000 param=0 ptr=(nil) cb=sound_manager::update
0xb10d170: en=1 temp=0 exp=    9.200025999 start=    6.200025999 per=      (never)   param=0 ptr=(nil) cb=running_machine::watchdog_fired
0xa5c7910: en=1 temp=1 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) cb=(null)
0x8d869f0: en=0 temp=0 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) cb=running_machine::soft_reset
0xcde6b60: en=0 temp=0 exp=      (never)   start=    0.000000000 per=      (never)   param=0 ptr=(nil) dev=:screen id=1
0xce74800: en=0 temp=0 exp=      (never)   start=    2.000000000 per=      (never)   param=0 ptr=(nil) cb=running_machine::autoboot_callback
=============================================
Any idea what might be wrong? The states seem to be saved by Mame but Mame seems to be unable to restore them. It used to work with an earlier Mame version and I really have no idea what might be wrong.

ninjabadger
Gamer
Gamer
Posts: 10
Joined: March 4th, 2016, 4:56 am

Re: Mame 0.171 - Can't get autosave to work

Post by ninjabadger » March 8th, 2016, 9:25 am

I'm sure I remember reading something about save state issues with 0.171. Are you able to test again with 0.169/0.170?

wonderworld
New Member
New Member
Posts: 3
Joined: March 4th, 2016, 7:16 am

Re: Mame 0.171 - Can't get autosave to work

Post by wonderworld » March 9th, 2016, 3:03 am

Thanks for your reply! I am using my package manager for upgrading MAME and downgrading might be complicated. I guess I'll wait for the next version. Is there an official bugtracker for MAME, where I could report my problem?
Thanks.

ninjabadger
Gamer
Gamer
Posts: 10
Joined: March 4th, 2016, 4:56 am

Re: Mame 0.171 - Can't get autosave to work

Post by ninjabadger » March 10th, 2016, 4:42 am

http://mamedev.org/

I beleive is the site you need.

User avatar
Hierophant
Site Administrator
Site Administrator
Posts: 3482
Joined: December 11th, 2008, 8:41 pm
Favorite Game: Alien vs Predator
Location: LV-426 Acheron
Contact:

Re: Mame 0.171 - Can't get autosave to work

Post by Hierophant » March 14th, 2016, 7:11 pm

MAME Testers is the site where they keep track of bugs:

http://mametesters.org/

wonderworld
New Member
New Member
Posts: 3
Joined: March 4th, 2016, 7:16 am

Re: Mame 0.171 - Can't get autosave to work

Post by wonderworld » March 15th, 2016, 6:51 am

Thanks for your help, I'll post @ mametesters. By the way - Hierophant - great nickname. Thats a boss from House of the Dead?

User avatar
Hierophant
Site Administrator
Site Administrator
Posts: 3482
Joined: December 11th, 2008, 8:41 pm
Favorite Game: Alien vs Predator
Location: LV-426 Acheron
Contact:

Re: Mame 0.171 - Can't get autosave to work

Post by Hierophant » March 17th, 2016, 3:19 am

Thanks. :hello:

I actually first became aware of the name via the Jojo's Bizarre Adventure arcade game. One of the Stands is called Hierophant Green. I didn't know what it meant at the time but just thought it sounded cool and kinda mysterious. I later realized that many of the Stand names in Jojo come straight from the Tarot.

Post Reply