Netpaly statsave [message #6901] |
Mon, 17 July 2023 00:36 |
|
Will be nice add folder for "netplay statsaves" and should be automatic load when we connect to serever. This is in Fightcade or Duckstation and is very helpful.
[Updated on: Mon, 17 July 2023 01:46]
|
|
Re: Netpaly statsave [message #6908 is a reply to message #6901 ] |
Mon, 17 July 2023 23:21 |
|
If you open mednafen from a batch file / terminal script, you can set the autosave option to 1 to automatically load a state when opening mednafen, then when the emulator closes, replace the .mca save state with a backup of the original netplay save state (just name it like .mcb or something).
This is what I did for the DRA netplay pack for a long time.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
she/her
Use my mednafen servers? Contact me! https://discord.gg/ngZuC9c8Wr
Play Digimon Rumble Arena: https://discord.gg/wg5j5Np
|
|
Re: Netpaly statsave [message #6911 is a reply to message #6901 ] |
Tue, 18 July 2023 09:16 |
|
This is very simple and nice option. Should be in normal config
|
|
Re: Netpaly statsave [message #6913 is a reply to message #6911 ] |
Tue, 18 July 2023 11:57 |
|
Source code is available, if you'd like to implement it yourself. Commenting out the part of the autosave code that saves the .mca state is actually really easy, just comment out the line with this in it, from drivers/main.cpp
if(MDFN_GetSettingB("autosave") && !autosave_load_error)
MDFNI_SaveState(NULL, "mca", NULL, NULL, NULL);
Then it'll load the automatic save, but never save over it, doing what you're looking for without a batch script.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
she/her
Use my mednafen servers? Contact me! https://discord.gg/ngZuC9c8Wr
Play Digimon Rumble Arena: https://discord.gg/wg5j5Np
|
|
Re: Netpaly statsave [message #6918 is a reply to message #6901 ] |
Tue, 18 July 2023 12:55 |
|
This is not my point I know script can do it but should be folder for this and you can send savestate to friends and tell them copy it to folder like in duckstation. It is easy explain them what and where.
|
|