Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Auto load mame save states?  (Read 9148 times)

0 Members and 1 Guest are viewing this topic.

highland04

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:April 21, 2012, 01:46:00 am
  • I want to build my own arcade controls!
Auto load mame save states?
« 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

highland04

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:April 21, 2012, 01:46:00 am
  • I want to build my own arcade controls!
Re: Auto load mame save states?
« Reply #1 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. 

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1884
  • Last login:January 07, 2025, 04:42:47 pm
  • Delicious!
Re: Auto load mame save states?
« Reply #2 on: April 21, 2012, 10:01:47 am »
Hmm, never thought about doing that... might have to do the same on a project sometime.
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter

wildclay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:May 20, 2013, 11:07:21 pm
Re: Auto load mame save states?
« Reply #3 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?

MTPPC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 535
  • Last login:November 26, 2021, 02:25:46 pm
Re: Auto load mame save states?
« Reply #4 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.
Pinball and Video Arcade Repair in Billings, MT USA
http://pinballmd.com/

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Auto load mame save states?
« Reply #5 on: April 24, 2012, 10:54:46 pm »
.......why would you not use it all the time? And how are you cueing the event?
-Banned-

Megaweapon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:July 30, 2022, 09:58:51 pm
  • 40 Megatons of Fun
Re: Auto load mame save states?
« Reply #6 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?
Uhh, boy I don't know.  We always used to refer to him as just 'That Paper Chase Guy'...

P-chan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 167
  • Last login:April 13, 2022, 12:39:40 am
Re: Auto load mame save states?
« Reply #7 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.

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:July 21, 2025, 05:34:15 pm
  • Rock and Roll!
Re: Auto load mame save states?
« Reply #8 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.

codefenix

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:July 26, 2013, 10:53:44 am
    • My MAME Cabinet Build
Re: Auto load mame save states?
« Reply #9 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.

ebo0763

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:May 23, 2016, 12:37:58 am
Re: Auto load mame save states?
« Reply #10 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?

Laythe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 726
  • Last login:July 17, 2025, 10:34:51 am
  • "-smurfing- delivers." - Yots
    • forum.arcadecontrols.com/index.php/topic,149109.0.html
Re: Auto load mame save states?
« Reply #11 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.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Auto load mame save states?
« Reply #12 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.

artyfarty

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:July 05, 2024, 05:18:55 am
  • I want to build my own arcade controls!
Re: Auto load mame save states?
« Reply #13 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

big10p

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 698
  • Last login:May 01, 2023, 01:46:23 pm
  • Mmmm, arcade classics!
Re: Auto load mame save states?
« Reply #14 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.