Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: highland04 on April 21, 2012, 01:31:46 am

Title: Auto load mame save states?
Post by: highland04 on April 21, 2012, 01:31:46 am
Forgive me if this has been covered a million times, and if it is in the wrong spot.  I searched for this topic and couldn't find anything exactly like it.

Is it possible to automatically load a saved state for a game, without turning on the option to automatically save upon exit?

I want to save the games after the test, on the "insert coin" screen, then have it automatically load it from there.

I am using plain MAME.  It is on a relatively old system that supports mame better than mameui or similars.

Thanks,
highland04
Title: Re: Auto load mame save states?
Post by: highland04 on April 21, 2012, 01:46:00 am
Forgive me - I should have spent more time in this.

I figured it out.  I researched command line switches and the ini configuration file, and it's really quite easy. 
Title: Re: Auto load mame save states?
Post by: Well Fed Games on April 21, 2012, 10:01:47 am
Hmm, never thought about doing that... might have to do the same on a project sometime.
Title: Re: Auto load mame save states?
Post by: wildclay on April 21, 2012, 01:22:06 pm
Interesting topic, highland04. Glad you brought it up because I've thought about doing something similar, primarily for longer action/adventure games like the Ghost n' Goblin, Double Dragon and TMNT series. Can you share the commands? I notice you said you're using plain old MAME but have you tried this with Hyperspin or other front ends?
Title: Re: Auto load mame save states?
Post by: MTPPC on April 21, 2012, 01:23:11 pm
I researched command line switches and the ini configuration file, and it's really quite easy. 
Please share.. The point of technical forums is to help everybody who reads them. Not to just solve individual problems. Proper forum etiquette is to post the solution if you find it before anyone gives it to you.
Title: Re: Auto load mame save states?
Post by: Gray_Area on April 24, 2012, 10:54:46 pm
.......why would you not use it all the time? And how are you cueing the event?
Title: Re: Auto load mame save states?
Post by: Megaweapon on April 25, 2012, 08:46:09 am
without turning on the option to automatically save upon exit?

Wouldn't this negatively impact high score retention?
Title: Re: Auto load mame save states?
Post by: P-chan on April 25, 2012, 12:30:26 pm
without turning on the option to automatically save upon exit?

Wouldn't this negatively impact high score retention?


By definition, it would have to, unless MAME stores the hiscores in a different file/variable that isn't affected by the savestate.
Title: Re: Auto load mame save states?
Post by: eds1275 on April 25, 2012, 12:35:53 pm
I had mine set up to save upon exit and reload when you go back to it but after a while it was no fun. I do see the usefulness for those crazy long and hard games like G&G or Castlevania though. I never thought of doing it on a game-by-game basis.
Title: Re: Auto load mame save states?
Post by: codefenix on April 25, 2012, 12:38:57 pm
By definition, it would have to, unless MAME stores the hiscores in a different file/variable that isn't affected by the savestate.

I think whatever the savestate remembers always overrides anything recorded as a high score.  In this scenario, it seems as if the "factory" high scores will always persist.
Title: Re: Auto load mame save states?
Post by: ebo0763 on February 14, 2016, 02:24:00 pm
Forgive me - I should have spent more time in this.

I figured it out.  I researched command line switches and the ini configuration file, and it's really quite easy.

I was just looking for the same solution. How can we do this?
Title: Re: Auto load mame save states?
Post by: Laythe on February 14, 2016, 07:44:53 pm
When I tried it, I found some subtle internal state data to become corrupted over time.

For instance, Aliens lost sound entirely;  Xevious would lose the ability to move the ship right, and Galaga would start to glitch the positions of sprites and make collision detection errors.

That may have been ironed out in later Mame versions, or it might be something unique to my setup.  Watch out for it though, it took me a while to notice it was even happening, and then to track it down.
Title: Re: Auto load mame save states?
Post by: equlizer on February 15, 2016, 09:01:16 pm
I fought with this for quite some time and ended up using one of my buttons as a "shift" key to save and load save states.
Title: Re: Auto load mame save states?
Post by: artyfarty on February 16, 2016, 04:07:31 am
If you get UXME MAME, there is a faststart feature that skips the frames for the machine startup, which achieves what OP wanted without save states.


Sent from my iPhone using Tapatalk
Title: Re: Auto load mame save states?
Post by: big10p on February 16, 2016, 07:21:23 am
I just use a joystick and button combo to fast forward through the longer boot/test screens.