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: WinUAE command line - loading savestates - SOLVED  (Read 3867 times)

0 Members and 1 Guest are viewing this topic.

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
WinUAE command line - loading savestates - SOLVED
« on: June 21, 2009, 10:12:25 pm »
Does anyone know how to load WinUAE save states from the command line?

I've seen some older posts which suggest:

-s statefile=savestates\[file].uss as the switch

and

stateflile=savestates\[file].uss

Neither works. The former because the -s switch is to overwrite the loaded uae config and there is no savestate variable defined in the config. The latter, I suspect for similar reasons ie. that WinUAE does not have a savestate variable.

EDIT: Solved. Use "-cfgparam statefile="

To load a game into the floppy drive but start from a saved state use the following command line:

winuae.exe -config="[rompath]\[name].[romext]" -cfgparam statefile="[rompath]\[name].uss"
e.g.
winuae.exe -config="configurations\wizball.uae" -cfgparam statefile="configurations\wizball.uss"

You can keep the uae and uss files in the same directory and with the same name which makes for easy MAMEWah loading:

emulator_commandline                      [emurootpath]\[emuname]\WinUAE1530\winuae.exe -config="[rompath]\[name].[romext]" -cfgparam statefile="[rompath]\[name].uss"{dosbox}{safelaunch}

I upgraded to 1.5.3.0 from the older, front-end 'hacked' version (0.8.23) which configured MAME controls (U,D,L,R & Left Ctrl) and Esc to quit because more recent versions of WinUAE allow you to customise these settings. Here are the keyboard settings from the [name].uae file:

Simply paste the lines below into your [name].uae file between input.1.mouse and input.2.joystick.0

...
;input.1.mouse.7.disabled=0
input.1.keyboard.0.button.1=SPC_QUIT.0
input.1.keyboard.0.button.2=KEY_SPACE.0
input.1.keyboard.0.button.6=MOUSE1_UP.0
input.1.keyboard.0.button.7=MOUSE1_DOWN.0
input.1.keyboard.0.button.16=KEY_F5.0
input.1.keyboard.0.button.17=KEY_RETURN.0
input.1.keyboard.0.button.19=JOY1_UP.0
input.1.keyboard.0.button.21=KEY_F3.0
input.1.keyboard.0.button.29=JOY2_FIRE_BUTTON.0
input.1.keyboard.0.button.30=JOY1_FIRE_BUTTON.0
input.1.keyboard.0.button.31=JOY1_2ND_BUTTON.0
input.1.keyboard.0.button.32=JOY1_LEFT.0
input.1.keyboard.0.button.33=JOY1_DOWN.0
input.1.keyboard.0.button.34=JOY1_RIGHT.0
input.1.keyboard.0.button.42=KEY_F2.0
input.1.keyboard.0.button.44=KEY_F3.0
input.1.keyboard.0.button.45=KEY_F4.0
input.1.keyboard.0.button.56=JOY2_2ND_BUTTON.0
input.1.keyboard.0.button.57=KEY_F1.0
input.1.keyboard.0.button.200=JOY2_UP.0
input.1.keyboard.0.button.203=JOY2_LEFT.0
input.1.keyboard.0.button.205=JOY2_RIGHT.0
input.1.keyboard.0.button.208=JOY2_DOWN.0
;input.2.joystick.0.empty=true
...

Don't forget to specify

; common
use_gui=no

in the [name].uae file as well
« Last Edit: June 22, 2009, 09:58:02 am by zorrobandito »