sorry im new to this stuff but the script i downloaded does not look like the picture you sent and i was wondering how do we put the script in auto hot key i get error at line 1 line text: ?#UseHook
If you Right-click -> Edit the file, it should look like the text file in the image. What is different about the file you are seeing? Is there a question mark before #UseHook in the script as I can see in your post? There shouldn't be. The script was tested with the latest version of Autohotkey, 1.1.33.10, installed with the default options (Unicode 64-bit). What version of Windows are you using? In Notepad, if you click File -> Save As, is the default encoding UTF-8?
You can try removing the first line in the script, #UseHook. It isn't necessarily required.
It seems that the save function is working if the folders are being copied, but that the load function is not. Be sure that you have modified the folder paths near the bottom of the script as well, this section:
The script is edited correctly i think. This is what it looks like
?#UseHook Source = C:\Users\xxxxxxx\AppData\Local\Sifu\Saved\SaveGames\1638\ Destination = C:\Users\xxxxxxx\AppData\Local\Sifu\Saved\SaveGames\1638.bak f5:: FileCopyDir, C:\Users\xxxxxxx\AppData\Local\Sifu\Saved\SaveGames\1638\, C:\Users\xxxxxxx\AppData\Local\Sifu\Saved\SaveGames\1638.copy\ , 1 Start: FileCopyDir, %Source%, %Destination% { If ErrorLevel ;There will be an errorlevel if the destination file exists { Loop ; in which case { FileCopyDir, %Source%,%Destination%_%A_Index% ; stick a number on the end If ErrorLevel = 0 ; continue with increasing numbers until there is no error { Break } } } } TrayTip , Save, Done !, 5 ;show for 5 seconds Return f8:: FileCopyDir, %Source%, %Destination% { If ErrorLevel ;There will be an errorlevel if the destination file exists { Loop ; in which case { FileCopyDir, %Source%,%Destination%_%A_Index% ; stick a number on the end If ErrorLevel = 0 ; continue with increasing numbers until there is no error { Break } } } } FileCopyDir, C:\Users\xxxxxxx\AppData\Local\Sifu\Saved\SaveGames\1638.copy\, C:\Users\xxxxxxx\AppData\Local\Sifu\Saved\SaveGames\1638\ , 1 TrayTip , Reload, Done !, 5 ;show for 5 seconds return
I misread your issue the first time. It seems like the first time you saved with F5, the 1638.copy folder was successfully saved. Then, after progressing in the game and pressing F5 again to save periodically, you exited the game and hit the F8 key to load, and it loaded the first save that you did with the F5 key instead of the latest save. Is that correct?
So it appears that the first F5 save worked, and subsequent saves did not. I don't know what could cause this. Try checking the "Date Modified" of the files in 1638.copy\ folder after pressing F5 (the files, not the folder itself). Some of the files within the folder should have an updated timestamp each time the game is saved with F5, as long as the game itself performed a new save beforehand. Then, after exiting the game, check the timestamp of the files in the 1638\ folder. The files should be older than the files in the 1638.copy\ folder. After pressing F8, the timestamp of the files in the 1638\ folder should match those in the 1638.copy\ folder. This should help you figure out where things are going wrong.
You can also try Right Click -> Properties on your "SaveGames" folder. Uncheck "Read-Only" if it is checked, and apply it to all subfolders and files (the script works fine for me without doing this, but worth a try). In the Security tab, make sure your username has Full Control of the folder.
Just tried it again, and it does not work. Each time I press F5 only one time and it creat the folders which you can see above. It seems like it does not even save.
As you can see the last time it saved was yesterday when I played normally. And every save in each folder has the same timestamp which you see above.
When i uncheck the Read-Only Box (it was checked) and save that option it is still checked when I reopen the properties with right click. But it seems like i can read/write https://gyazo.com/ef2473ac39a8471ca8ab10c9390d47cf
And yes I'm admin on my laptop and only have that 1 user.
14 comments
Where would I add close sifu and relaunch it on this script if you don't mind helping me? I'm not really good at it, thanks
You can try removing the first line in the script, #UseHook. It isn't necessarily required.
FileCopyDir, C:\Users\PC User\AppData\Local\Sifu\Saved\SaveGames\1638.copy\, C:\Users\PC User\AppData\Local\Sifu\Saved\SaveGames\1638\ , 1
TrayTip , Reload, Done !, 5 ;show for 5 seconds
return
i replaced my username with xxxxxx
So it appears that the first F5 save worked, and subsequent saves did not. I don't know what could cause this. Try checking the "Date Modified" of the files in 1638.copy\ folder after pressing F5 (the files, not the folder itself). Some of the files within the folder should have an updated timestamp each time the game is saved with F5, as long as the game itself performed a new save beforehand. Then, after exiting the game, check the timestamp of the files in the 1638\ folder. The files should be older than the files in the 1638.copy\ folder. After pressing F8, the timestamp of the files in the 1638\ folder should match those in the 1638.copy\ folder. This should help you figure out where things are going wrong.
You can also try Right Click -> Properties on your "SaveGames" folder. Uncheck "Read-Only" if it is checked, and apply it to all subfolders and files (the script works fine for me without doing this, but worth a try). In the Security tab, make sure your username has Full Control of the folder.
Just tried it again, and it does not work. Each time I press F5 only one time and it creat the folders which you can see above. It seems like it does not even save.
https://gyazo.com/7c4adaad00180ac79874cb468844f3bd
https://gyazo.com/8a4462c5cc04799ca8fcae01e5572718
As you can see the last time it saved was yesterday when I played normally. And every save in each folder has the same timestamp which you see above.
When i uncheck the Read-Only Box (it was checked) and save that option it is still checked when I reopen the properties with right click. But it seems like i can read/write https://gyazo.com/ef2473ac39a8471ca8ab10c9390d47cf
And yes I'm admin on my laptop and only have that 1 user.