we run the program first and then the game, right? but nothing happens in the game, i pressed ALT+Z to save with a custom name (like in the video) but nothing pops up. i tried pressing F5 to quicksave (after the game's autosave) but nothing happens, no chime, no save either (nothing in the _SAVEDGAMES). the program's icon is still there in the taskbar and it's active (not paused).
hello. we no longer use the ALT keys. just the new keys. you pressed F5 nothing is supposed to happen but it copied the folder to the backup folder behind the scenes. to see these saves you must press F7 to check the folder. for more options try F8 does F8 do anything ? it maybe that your current game screen is hiding the popup window behind. try to alt tab and check for any windows.
Works fine for me with Game-Update 33 and the Steam-Version -besides the "Save and Exit" Button!
(Game didnt close itself then , needs to be done manually via In-Game Menue. Not sure if thats intentionally, as somwhere in the Versions-Changelog something is stated about possible File-Corruption if doing it that Way, but then why leaving that Point/Option/Button in the Tool? -or is that just not working for me, maybe due to Update or whatev..? ) Makes wandering the Wastelands a bit more Stress-less hehe, Ty for this nice little Tool!
yep you need to set FORCE_EXIT to 1 in the "SOD2SAVE.INI" file which only appears after you have launched SOD2SAVE.exe even once. this will let the mod terminate StateOfDecay2.exe after a LOAD then it runs StateOfDecay2.exe again after that.
FORCE_EXIT - if 0, it will wait for the user to properly close the game before it can continue ( hear chimes while it waits ).
i left it there in case the game creates a better cleanup routine whenever the game is abruptly terminated. but at the time of the creation of this code, i encountered an instance where my XBOXLIVE login no longer works. had to uninstall and reinstall the game to get it working again. so i suspected it may have been corrupted when we terminated the game by force. i wouldn't recommend using FORCE_EXIT i would just manually exit after LOAD.
Didn't work for me but you can make copies of your saves anyways. Go to C:\Users\User\AppData\Local\StateOfDecay2\Saved\Steam\76561198001025558\2533274969863452\Release\v2 and make a copy of your save files.
Beforehand thank you for your mod the project is awesome for this game !
I installed the new 2.0 version and i have an issue with loading saves i get this whenever i try to load or load and quit
for example, the "savetest" folder located in "\_SOD2SAVE\_SAVEDGAMES" contain similar files that the ones located in "\APPDATA\LOCAL\STATEOFDECAY2\SAVED" the only difference is that "CONFIG" and "STEAM" are like that in "savetest" folder while they are "Config" and "Steam" like that in the local appdata saved folder ! i don't know if that an issue or it's something else that i'm doing wrong..
EDIT: when i manually replace the current save with the one i want toload it works fine ! so atm imma do that while waiting for a possible solution !
The quicksave works but the quickload give me the same error box
I Actually have the steam version but i moved the game to my ssd, here are the different paths:
Path for the game: "E:\State of Decay 2\" Path for the SOD2SAVE.exe of your mod: "E:\State of Decay 2\_SOD2SAVE\" Path for the save backups of you mod: "E:\State of Decay 2\_SOD2SAVE\_SAVEDGAMES\" Path for the saved folder containing cooked, paks, Config, Steam, etc: "C:\Users\myusername\AppData\Local\StateOfDecay2\Saved\"
The ini is as follow
I didn't have the chance to try the 2.1 as it was flagged (i don't understand why VirusTotal uses MaxSecure as it has a bad reputation of false positives)
Anyways thank you for the try, maybe it's just on my end i'd be happy to have feedback of other users if they have the same issue or is it just me ! but for the moment the mod atleast prevent me the hassle of manually doing save backups ! i only have to manually replace the saves when i want to load a specific backup !
that is soooo weird it works in my steam copy .. hmmm...
i would like to test it with you. im going to add a few message box here and there so we can narrow the issue down. im going to add additional details in the error message to tell us what it was looking for and what the folders in it are etc.. it should narrow it down if it is a case sensitive issue.
in the backup saves i have only two folders "config" and "steam" (same thing in the appdata local files) there is no "savegames" folder maybe that's the issue or is it how it's supposed to be ?
EDIT: That's actually the fix, i added an empty folder to "C:\Users\myusername\AppData\Local\StateOfDecay2\Saved\" that i named "SAVEGAMES" and redid a backup saves tests and i'm now able to load and quickload them as intended ! weirdly enough my save files were actually inside the steam folder .. ^^
OHHHH ... what the hell. my bad. i did not know some copies dont have savegames folder. i think its because of cloudsave maybe ? perhaps if you dont have cloud save it wont appear ?
AWESOME troubleshooting bro. id be sure to add it in the BUG section. its either im going to remove the CHECKING of folders before LOAD or im still going to check for the other two folders instead.\
Im sorry, dont want to offend or steal anyone, I just needed a quick solution ! Therefor I "just" posted the replacement lines, by no means the whole script...
you can edit the whole script ... i don't know the proper paths for the MS version. can you post and compile so the rest of the guys with MS copies can use them ?
OK, I have uploaded the changes, I renamed it to MultiSAVE because, now its no longer bound to be placed in the directory, where the intended executable is located (this was needed because of the UWPs folder restrictions)
Also I added some helplines to the INI, explaining that you could change the lines as you want to, use it e.g. for Project Zomboid or ANY other app. Currently it is preset for SOD2 UWP, but after first creation of the ini, you could change the path/lines as you want to
Replaced the run command with shellexecute , because its more feasible and needed for starting UWPs This means, you could just fill it with the whole filepath to your exe, or you could use powershell code to load any other script and so on...
Added auto save, intervall could be set using the ini, preset = each 5 minutes It uses the max save count, so quick saves and auto saves are sharing max saves count
Added/moved the related settings to the top of the script, so its changeable in script and/or in ini file, with ease MultiSave.exe
Edit: BUG: MultiSAVE not closing itself after terminating related app = fixed Feature: Unique AutoSave Naming
I could upload it as au2 , so every one could decompile it with ease and would have access to the source script?!
OMG this is too late i have been very busy this year. and i stopped playing and played other games instead. i just recently had a breathing room. thanks for the fixes.
STEAM version: This one is as well broken as the only other one on Nexus for this game apparently, but differently than the other one also kinda bugging my entire OS (Win10) out. I have tried a save/load test of a quicksave; while saving seems to work, the load button just keeps beeping in an endless repetition until I shut down the icon in the info bar. After that I couldn't somehow open the task manager's performance tab, windows' start bar or restart the PC with any interface action. I needed to shut it down by power-off and reboot then.
I don't know how it is working with other versions, but... well. Something weird is going on with this one, use at own risk. ~ Virus scan ect. didn't show anything obvious though, so it's a miracle to me what's causing this weirdness.
sorry for the late reply i have not played the game over a year and i have discontinued this mod.
it does not contain any risk apps or virus as someone here in the comment section have already opened it. i can also give the AU3 file here which is basically a notepad version so you can see nothing in there is suspicious.
the game may have been updated way before this mod was created and i have not looked into it yet.
"the load button just keeps beeping in an endless repetition until I shut down the icon in the info bar"
OHH pfftt i get it now. that never ending beep is there to remind you to EXIT your game as per instructions. the MOD wanted you to exit your game properly to avoid an corrupted game files if the MOD itself terminates the game for you. when you LOAD, it beeps until it finds that you have closed your game ( meaning it cant find the game anymore )
sorry i didn't get your original post months ago i was just busy. was going to renew this MOD for my brother, i might change a few things
Hello NextSUS2021, how could I help? What you will need, for the MS-Store Version, should be in the posted replacement lines?!
Spoiler:
Show
The essential parts are, where are SOD2 Saves stored; $steam_save_path = WRITEIFNOTEXIST($inipath, "Paths", "STEAM_SAVE_PATH", @LocalAppDataDir & "\Packages\Microsoft.Dayton_8wekyb3d8bbwe\SystemAppData\wgs\000901F3B094A778_E0F40100A32E42FF9D9A222473904454")
and How and what to execute for MS-Store (SOD2) apps; ShellExecute('shell:Appsfolder\Microsoft.Dayton_8wekyb3d8bbwe!Shipping')
for my needs I changed this again to:
Run('powershell -executionpolicy bypass -File "D:\Games\State of Decay 2 ReShade\SOD2ReShadeRun.ps1"') to start the game with ReShade injection, by using a very basic powershell script.
PS: I got the script by decompiling it...but I didnt post the whole script, for respect ;)
hello man thanks for the effort. it would be great to upload it as AU3 so everyone can fix it as they deem it necessary. i am not active with the game anymore because i have been busy this year. you can upload it to your mods as well.
Great tool, thank you! But I have a problem that survivors stats (noticed it on max Stamina, not sure if anything else is affected) after the load are changed.
53 comments
does F8 do anything ? it maybe that your current game screen is hiding the popup window behind. try to alt tab and check for any windows.
-besides the "Save and Exit" Button!
(Game didnt close itself then , needs to be done manually via In-Game Menue.
Not sure if thats intentionally, as somwhere in the Versions-Changelog something is stated about possible File-Corruption if doing it that Way,
but then why leaving that Point/Option/Button in the Tool? -or is that just not working for me, maybe due to Update or whatev..? )
Makes wandering the Wastelands a bit more Stress-less hehe, Ty for this nice little Tool!
-Endorsed! 😎🤙
this will let the mod terminate StateOfDecay2.exe after a LOAD then it runs StateOfDecay2.exe again after that.
FORCE_EXIT - if 0, it will wait for the user to properly close the game before it can continue ( hear chimes while it waits ).
i left it there in case the game creates a better cleanup routine whenever the game is abruptly terminated.
but at the time of the creation of this code, i encountered an instance where my XBOXLIVE login no longer works.
had to uninstall and reinstall the game to get it working again. so i suspected it may have been corrupted when we terminated the game by force.
i wouldn't recommend using FORCE_EXIT i would just manually exit after LOAD.
"...extract the files and copy the folder "_SOD2SAVE" folder into your "Sekiro Install Directory"
Where is the "Sekiro install Directory?"
i copied the same description from my Sekiro mod.
editing it now sorry
Beforehand thank you for your mod the project is awesome for this game !
I installed the new 2.0 version and i have an issue with loading saves i get this whenever i try to load or load and quit
for example, the "savetest" folder located in "\_SOD2SAVE\_SAVEDGAMES" contain similar files that the ones located in "\APPDATA\LOCAL\STATEOFDECAY2\SAVED" the only difference is that "CONFIG" and "STEAM" are like that in "savetest" folder while they are "Config" and "Steam" like that in the local appdata saved folder ! i don't know if that an issue or it's something else that i'm doing wrong..
EDIT: when i manually replace the current save with the one i want toload it works fine ! so atm imma do that while waiting for a possible solution !
that is weird. can you try using QUICKSAVE and QUICKLOAD instead ?
like QUICKSAVE then instead of SELECTIVE LOAD just use QUICKLOAD.
ALSO do you have a STEAM copy or Microsoft store ?
you maybe correct it could be a case sensitive error im going to check and see if it is.
will be back with you in a flash
i made a mistake there T_T
uploading fix now.
Thank you for your response.
The quicksave works but the quickload give me the same error box
I Actually have the steam version but i moved the game to my ssd, here are the different paths:
Path for the game: "E:\State of Decay 2\"
Path for the SOD2SAVE.exe of your mod: "E:\State of Decay 2\_SOD2SAVE\"
Path for the save backups of you mod: "E:\State of Decay 2\_SOD2SAVE\_SAVEDGAMES\"
Path for the saved folder containing cooked, paks, Config, Steam, etc: "C:\Users\myusername\AppData\Local\StateOfDecay2\Saved\"
The ini is as follow
I didn't have the chance to try the 2.1 as it was flagged (i don't understand why VirusTotal uses MaxSecure as it has a bad reputation of false positives)
Anyways thank you for the try, maybe it's just on my end i'd be happy to have feedback of other users if they have the same issue or is it just me ! but for the moment the mod atleast prevent me the hassle of manually doing save backups ! i only have to manually replace the saves when i want to load a specific backup !
i would like to test it with you. im going to add a few message box here and there so we can narrow the issue down.
im going to add additional details in the error message to tell us what it was looking for and what the folders in it are etc..
it should narrow it down if it is a case sensitive issue.
thanks very much
in the backup saves i have only two folders "config" and "steam" (same thing in the appdata local files) there is no "savegames"
folder maybe that's the issue or is it how it's supposed to be ?
EDIT: That's actually the fix, i added an empty folder to "C:\Users\myusername\AppData\Local\StateOfDecay2\Saved\" that i named "SAVEGAMES" and redid a backup saves tests and i'm now able to load and quickload them as intended ! weirdly enough my save files were actually inside the steam folder .. ^^
i think its because of cloudsave maybe ? perhaps if you dont have cloud save it wont appear ?
AWESOME troubleshooting bro. id be sure to add it in the BUG section. its either im going to remove the CHECKING of folders before LOAD or im still going to check for the other two folders instead.\
thanks very much
Please ask the author for providing the whole .au3 script
i would gladly give it but i am surprised that you have it already.
Therefor I "just" posted the replacement lines, by no means the whole script...
can you post and compile so the rest of the guys with MS copies can use them ?
Also I added some helplines to the INI, explaining that you could change the lines as you want to, use it e.g. for Project Zomboid or ANY other app. Currently it is preset for SOD2 UWP, but after first creation of the ini, you could change the path/lines as you want to
Replaced the run command with shellexecute , because its more feasible and needed for starting UWPs
This means, you could just fill it with the whole filepath to your exe, or you could use powershell code to load any other script and so on...
Added auto save, intervall could be set using the ini, preset = each 5 minutes
It uses the max save count, so quick saves and auto saves are sharing max saves count
Added/moved the related settings to the top of the script, so its changeable in script and/or in ini file, with ease
MultiSave.exe
Edit:
BUG: MultiSAVE not closing itself after terminating related app = fixed
Feature: Unique AutoSave Naming
I could upload it as au2 , so every one could decompile it with ease and would have access to the source script?!
i just recently had a breathing room.
thanks for the fixes.
This one is as well broken as the only other one on Nexus for this game apparently, but differently than the other one also kinda bugging my entire OS (Win10) out. I have tried a save/load test of a quicksave; while saving seems to work, the load button just keeps beeping in an endless repetition until I shut down the icon in the info bar. After that I couldn't somehow open the task manager's performance tab, windows' start bar or restart the PC with any interface action. I needed to shut it down by power-off and reboot then.
I don't know how it is working with other versions, but... well. Something weird is going on with this one, use at own risk. ~
Virus scan ect. didn't show anything obvious though, so it's a miracle to me what's causing this weirdness.
it does not contain any risk apps or virus as someone here in the comment section have already opened it. i can also give the AU3 file here which is basically a notepad version so you can see nothing in there is suspicious.
the game may have been updated way before this mod was created and i have not looked into it yet.
OHH pfftt i get it now. that never ending beep is there to remind you to EXIT your game as per instructions.
the MOD wanted you to exit your game properly to avoid an corrupted game files if the MOD itself terminates the game for you.
when you LOAD, it beeps until it finds that you have closed your game ( meaning it cant find the game anymore )
sorry i didn't get your original post months ago i was just busy.
was going to renew this MOD for my brother, i might change a few things
replace: Line: 6232 - Line: 6395
Start @Line 6232:
$steam_save_path = WRITEIFNOTEXIST($inipath, "Paths", "STEAM_SAVE_PATH", @UserProfileDir & "\APPDATA\LOCAL\STATEOFDECAY2\SAVED")
End @Line 6395:
EndFunc ;==>GOLOAD
Replace:
$steam_save_path = WRITEIFNOTEXIST($inipath, "Paths", "STEAM_SAVE_PATH", @LocalAppDataDir & "\Packages\Microsoft.Dayton_8wekyb3d8bbwe\SystemAppData\wgs\000901F3B094A778_E0F40100A32E42FF9D9A222473904454")
$sod2save_save_path = WRITEIFNOTEXIST($inipath, "Paths", "SOD2SAVE_SAVE_PATH", @LocalAppDataDir & "\Packages\Microsoft.Dayton_8wekyb3d8bbwe\SystemAppData\wgs\BackupSaves")
$sound_save = WRITEIFNOTEXIST($inipath, "Sounds", "SOUND_SAVE", @WindowsDir & "\media\Speech On.wav")
$sound_load = WRITEIFNOTEXIST($inipath, "Sounds", "SOUND_LOAD", @WindowsDir & "\media\Windows Balloon.wav")
$sound_exit = WRITEIFNOTEXIST($inipath, "Sounds", "SOUND_EXIT", @WindowsDir & "\media\Speech Off.wav")
$sound_properexit = WRITEIFNOTEXIST($inipath, "Sounds", "SOUND_PROPEREXIT", @WindowsDir & "\media\Notify.wav")
If Not FileExists($sod2save_save_path) Then
DirCreate($sod2save_save_path)
EndIf
Local $sod2saves_running = 0x0
Local $aprocesslist = ProcessList()
For $i = 0x1 To $aprocesslist[0x0][0x0]
If StringUpper($aprocesslist[$i][0x0]) == StringUpper($sod2save_exe) Then $sod2saves_running = $sod2saves_running + 0x1
If $sod2saves_running > 0x1 Then ExitLoop
Next
If $sod2saves_running > 0x1 Then
MsgBox(0x0, "Exiting now", "SOD2SAVE is Already running")
GOEXIT()
EndIf
Local $ipid = ProcessExists($proc_name)
If $ipid Then
$sname = _ProcessGetName($ipid)
Else
If FileExists($game_exe) Then
Else
MsgBox(0x1000, "Game Executable does not exist", "This program must be in the same folder as StateOfDecay2.exe")
GOEXIT()
EndIf
GORUNGAME()
EndIf
$timeout = 0x0
For $i = 0x1 To 0x9
Sleep($interval)
If ProcessExists($proc_name) Then
$timeout = 0x0
Else
$timeout = $timeout + 0x1
EndIf
If $timeout >= $game_timeout Then
GOEXIT()
EndIf
$i = 0x1
Next
Func GORUNGAME()
ShellExecute('shell:Appsfolder\Microsoft.Dayton_8wekyb3d8bbwe!Shipping')
; Run($game_exe)
Sleep(0x7d0)
ProcessWait($proc_name, 0x3c)
If ProcessExists($proc_name) Then
Else
MsgBox(0x0, "Error !", "Failed to run the game")
EndIf
EndFunc ;==>GORUNGAME
Func GOSAVE()
$newfoldername = "SOD_" & @YEAR & "_" & @MON & "_" & @MDAY & "_TIME_" & @HOUR & "_" & @MIN & "_" & @SEC
Local $uccess = True
If @HotKeyPressed = $input_custom_save Then
Local $tempname = InputBox("SOD2SAVE", "Valid Name", $newfoldername)
If Not @error Then
$newfoldername = $tempname
Else
$uccess = False
EndIf
EndIf
If $uccess Then
DirCopy($steam_save_path, $sod2save_save_path & "\" & $newfoldername, 0x1)
;DirCopy($steam_save_path & "\SAVEGAMES", $sod2save_save_path & "\" & $newfoldername & "\SAVEGAMES", 0x1)
;DirCopy($steam_save_path & "\STEAM", $sod2save_save_path & "\" & $newfoldername & "\STEAM", 0x1)
IniWrite($inipath, "Paths", "LAST_SAVED_FOLDER", $sod2save_save_path & "\" & $newfoldername)
DELETE_OLDEST()
SoundPlay($sound_save, 0x1)
EndIf
EndFunc ;==>GOSAVE
Func DELETE_OLDEST()
Local $afilelist = _FileListToArray($sod2save_save_path, "SOD_*", $flta_folders)
If @error = 0x1 Then
MsgBox($mb_systemmodal, "", "Path was invalid.")
Exit
EndIf
If @error = 0x4 Then
Else
Local $sortresult = _ArraySort($afilelist)
If $sortresult = 0x1 Then
If $afilelist[0x0] > $max_saves_count Then
Local $endpos = $afilelist[0x0] - $max_saves_count
For $f = 0x1 To $endpos
DirRemove($sod2save_save_path & "\" & $afilelist[$f], 0x1)
Next
EndIf
Else
MsgBox($mb_systemmodal, "", @error & " Failed to delete OLD saves.")
EndIf
EndIf
EndFunc ;==>DELETE_OLDEST
Func GOOPENFOLDER()
If WinExists("_SAVEDGAMES") Then
WinActivate("_SAVEDGAMES")
Else
Run("Explorer.exe " & $sod2save_save_path)
EndIf
EndFunc ;==>GOOPENFOLDER
Func GOLOAD()
If $status_selectingfolder = 0x0 Then
$status_selectingfolder = 0x1
Local $uccess = False
Local $ipid = ProcessExists($proc_name)
Local $hwnd = GOGETHWND($ipid)
Local $selectedfolder = ""
WinSetState($hwnd, "", @SW_MINIMIZE)
If @HotKeyPressed = $input_load Then
$selectedfolder = IniRead($inipath, "Paths", "LAST_SAVED_FOLDER", "")
Else
$selectedfolder = FileSelectFolder("Select a SAVED folder to LOAD", $sod2save_save_path, 0x0, "")
EndIf
If $selectedfolder = "" Then
Else
If FileExists($selectedfolder) Then
$foldername = StringRegExpReplace($selectedfolder & "\", "(.+?\\)*(.+?)(\\.*?(?!\\))", "$2")
If MsgBox(0x44, "", "Are you sure you want to LOAD from " & @CRLF & @CRLF & $foldername & " ?") = 0x6 Then
$uccess = True
EndIf
Else
MsgBox(0x0, "Error !", "The selected folder does not contain the SAVE FOLDERS required"
& @CRLF & "Select the folder that contains the CONFIG,SAVEGAMES, and STEAM folders"
& @CRLF & "Folder : " & $foldername)
EndIf
EndIf
If $uccess = True Then
Local $exited = False
If $force_exit = 0 Then
ProcessClose($proc_name)
Sleep(0x7d0)
ProcessWaitClose($proc_name, 0x3c)
$exited = True
Else
WinSetState($hwnd, "", @SW_RESTORE)
For $i = 0x1 To 0x3c
Sleep(0x3e8)
SoundPlay($sound_properexit, 0x1)
If Not ProcessExists($proc_name) Then
$exited = True
ExitLoop
EndIf
Next
If Not $exited Then
MsgBox(0x1000, "LOAD Failed", "Failed to close game properly. LOAD aborted")
EndIf
EndIf
If $exited Then
DirRemove($steam_save_path, 0x1)
; DirRemove($steam_save_path & "\SAVEGAMES", 0x1)
; DirRemove($steam_save_path & "\STEAM", 0x1)
DirCopy($selectedfolder, $steam_save_path)
; DirCopy($selectedfolder & "\SAVEGAMES", $steam_save_path & "\SAVEGAMES")
; DirCopy($selectedfolder & "\STEAM", $steam_save_path & "\STEAM")
IniWrite($inipath, "Paths", "LAST_SAVED_FOLDER", $selectedfolder)
SoundPlay($sound_load, 0x1)
GORUNGAME()
EndIf
Else
WinSetState($hwnd, "", @SW_RESTORE)
EndIf
$status_selectingfolder = 0x0
EndIf
EndFunc ;==>GOLOAD
how could I help?
What you will need, for the MS-Store Version, should be in the posted replacement lines?!
The essential parts are, where are SOD2 Saves stored;
$steam_save_path = WRITEIFNOTEXIST($inipath, "Paths", "STEAM_SAVE_PATH", @LocalAppDataDir & "\Packages\Microsoft.Dayton_8wekyb3d8bbwe\SystemAppData\wgs\000901F3B094A778_E0F40100A32E42FF9D9A222473904454")
and
How and what to execute for MS-Store (SOD2) apps;
ShellExecute('shell:Appsfolder\Microsoft.Dayton_8wekyb3d8bbwe!Shipping')
for my needs I changed this again to:
Run('powershell -executionpolicy bypass -File "D:\Games\State of Decay 2 ReShade\SOD2ReShadeRun.ps1"')
to start the game with ReShade injection, by using a very basic powershell script.PS:
I got the script by decompiling it...but I didnt post the whole script, for respect ;)
so everyone can fix it as they deem it necessary. i am not active with the game anymore because i have been busy this year.
you can upload it to your mods as well.
thanks and much appreciated
But I have a problem that survivors stats (noticed it on max Stamina, not sure if anything else is affected) after the load are changed.