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 quicksave-file per gameconfig [SOLVED]  (Read 6965 times)

0 Members and 1 Guest are viewing this topic.

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
WinUAE quicksave-file per gameconfig [SOLVED]
« on: August 15, 2011, 05:23:21 pm »
Hello,

Im using MA in my cab.

I've read some post about ppl having their state files loaded automatically each time they load a game with MA...
I know that when a spedific savestate is loaded, all further quick save/ load action goes to that specific savestate file.

But I prefer not to load automatically but having a savestate file for each game alterable via quick save/ restore.

Is it possible to specify a savestate file (*.uss) in the game config file to tell winuae which savestate file should be used for the quick save / restore save option?

any help is much appreciated!!
« Last Edit: September 01, 2011, 04:24:51 pm by parasol »

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE ADF Savestates
« Reply #1 on: August 15, 2011, 06:52:21 pm »
From my documentation:

To 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}


You should be able to convert the above for any front-end...
 

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #2 on: August 16, 2011, 06:27:18 am »
As I wrote before its not my main goal to start a game from a saved state!!
I have mapped quick save and load to may gamepad! When I use quicksavstate eveytime it saves as default.uss. For example turrican. I want to tell winuae to use quick save/ restore with the turrican.uss file (instead of default.uss).

is that possible without have to load turrican.uss file before?

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE ADF Savestates
« Reply #3 on: August 16, 2011, 07:51:44 am »
Ah, I see. My apologies I couldn't quite see what you were after. One way I can think of would be to load the game with a 'blank' turrican.uss file (e.g. starts at the title screen), then quicksave will work. The only problem would be that the next time you play, it will load that last save.

Another suggestion might be to create a separate directory for each game and then each game could have it's own save path specified and its own default.uss. Bit of a hassle but you could do it for some of your favourites. You'd have to change the StateFiles path and save it, then load that -config.

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #4 on: August 17, 2011, 10:38:26 am »
 i ill try ur second suggestion. (and will do it for ALL my favs) :D

thx



upate: the config setup in winuae confuses a bit. When i start winuae through MA I usually load two configs. First the game config, second my host config.
By actually looking into the game config files it seems all neccessary parameters are present?!!? So why using host config?
Does host config override game configs? Can u setup something like different hostconfigs for each game?

Maybe someone can clear things up a bit or point me into the right direction?

« Last Edit: August 17, 2011, 11:32:55 am by parasol »

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE ADF Savestates
« Reply #5 on: August 19, 2011, 06:12:54 am »
It's more of a question for the WinUAE folk but AFAIK if you're not loading a save state then you should only load one config:

winuae.exe -config="configurations\wizball.uae"

I would have thought that the second config you load would override the first, can you post your command line? As you can see from mine, I only load the one config and it sets up all Amiga parameters as well as all emulator parameters (hard-drive location, key mappings, etc).

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #6 on: August 19, 2011, 11:16:40 am »
this is my MA command line:
-s use_gui=no -s gfx_fullscreen_amiga=true -config=%file -cfgparam stateflie="E:\WinUAE\savestates\%name.uss" -config=E:\WinUAE\Configurations\Host\Host.uae

I thought its necessary to also save a host config as the gui suggests but it wont load the statefiles that way.  (%name = config name without extension AND %file = configs' full path... for non-MA users!)

« Last Edit: August 19, 2011, 11:18:22 am by parasol »

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE ADF Savestates
« Reply #7 on: August 19, 2011, 11:19:48 am »
Hopefully iy's just a typo in your post or you're going to kick yourself but check

"stateflie"

should be

"statefile"

and all the initial switches can be set in your host.uae file, so you could strip those away too.

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #8 on: August 19, 2011, 03:09:42 pm »
hell yeah !!!  :angry: Thx for ponting that out  :cheers:


It seems I do have to load my hostconfig. My controller layout wont work properly without it. I checked some gameconfigs and noticed they contain the default input layout.   While other host specific content seems to be there as my video output matches my prefered settings...



In my case it seems I do have to create different hostconfigs for all gameconfigs with identical names. And load them together through command line.

ALso when I make hostspecific changes in the gui and then safe gamesname.uae under the hardware tab, those changes wont be safed.

How did u achieve to have all necessary information in one gamesname.uae?
« Last Edit: August 19, 2011, 07:40:30 pm by parasol »

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #9 on: August 20, 2011, 12:18:39 pm »
Ok, I'm totally satisfied with two configs per game (game and host). That gives me the freedom to use any input layout I want with any game. ;D Works like a charm!


Nonetheless I wanna try to set up different "default.uss" for each config. I ve put all favs in different folders (as zorrobandito suggested) and updated the paths. What command do I have to set into the configs to specifiy the default save paths? I dont find a save variable in the configs that I could work with?!



« Last Edit: August 20, 2011, 12:25:36 pm by parasol »

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE ADF Savestates
« Reply #10 on: August 21, 2011, 06:56:02 am »
OK, this is tricky to explain but WinUAE has an unintuitive Load / Save config option that doesn't always save to the currently loaded file and means you need to regularly reselect the file you want each time you perform another save. Fact is, you can save all settings to the one config file. Here's how I (consciously) very carefully do it:

1. I *Load* the configuration I have already made.
2. I make the changes to my settings.
3. Going back to the Configurations menu, I highlight the configuration from the list and then press *Save*.

You can test if it worked by loading another file, then load your new file.

I'm sorry if it doesn't make sense...

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #11 on: August 21, 2011, 08:31:20 pm »
think I got what u mean.. and it works with one config now!!

1. loading hardware/gamesname.uae
2. loading host/gamesname.uae
3. saving under the "configurations" tab

I have to say I tried that method before but it didnt work. musst have mixed sth up...


Do you have any more hints how to set up custom quicksave paths? I'm quite stuck on that..


zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE ADF Savestates
« Reply #12 on: August 23, 2011, 10:03:42 am »
After testing my idea it doesn't work. You can't specify different paths per config, only per emulator. Sorry to get your hopes up :cry:

The only way you could do it would be to create a separate bundle, with a unique instance of WinUAE.exe and the appropriate paths for the State Files e.g. T:\Emulators\Amiga\WinUAE2200\Configurations\Paradroid90\

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #13 on: August 23, 2011, 02:36:44 pm »
yes, sth like that came to my mind too. Maybe I could do that. After all every game has its own folder now. :P 

thx for helping me out

parasol

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 22, 2022, 04:39:31 pm
Re: WinUAE ADF Savestates
« Reply #14 on: September 01, 2011, 11:50:38 am »
Ok!
Thx to the developer of WinUAE Toni Wilen, its now possible to change the default savestate name (default.uss) via config command!

Im pasting the information from the English Amiga Board WinUAE-PublicBeta-Thread:


WinUAE 2.3.3 Beta 6:

- added "statefile_name" configuration file entry, sets default statefile name (normally "default.uss")
- fixed jittery raw mouse movement
- resolution autoswitch should now work correctly, no more strange centering without autoscale.
- analog stick mapped as a mouse had wrong and unstable speed
- rarely used configuration entries were only supposed to be written if they had non-default value. re-saving configuration will reduce size of most config files. Older bug.
- "Integer scaling" visible in GUI (AF specific feature originally), selects biggest integer scaling ratio that still fits on screen
- "VSync (new)" renamed to "Low latency VSync"
- Input panel configuration #1-#3 can be renamed by manually editing config file (input.x.name=name)
- GUI allows FPU in cycle exact modes. Not much point but if you really want to enable it..

http://www.winuae.net/files/b/winuae_2330b6.zip


syntax: statefile_name=gamename.uss


This allows anyone who is using Amiga Emulation with multiple configs in his cab, to easily integrate seamless quicksave & quickload action.  :D



« Last Edit: September 01, 2011, 11:55:51 am by parasol »

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: WinUAE quicksave-file per gameconfig [SOLVED]
« Reply #15 on: October 13, 2011, 10:07:55 am »
Parasol, not sure if you suggested it to the WinUAE team but if you did - good job! I hadn't really considered what to do about state files so your questions and solution has prompted me to get it done!

Thanks.