Valheim Save/Load Hotkeys

Here's a handy quicksave/quickload script for those who have limited time to play and are frustrated at having to grind out those ability points every time your character dies. Note: This script is for single-player games only.

SETTING IT UP:
1. First, you'll need Autohotkey installed on your Windows 10 pc. It's a free, open-source download and probably one of the best scripting softwares available.
2. Before using the script, make sure to backup your save folder just in case you make a mistake.
3. Copy and paste the script below into a Notepad or .ahk file. If you use Notepad be sure to change the .txt file extension to .ahk. Name the file something like "Valheim Save & Load Script.
4. Edit the script wherever it says "YOURNAME" by replacing it with your computer name instead.
5. Before running the game, right-click on the file and select "run script."
That's it, you're done! Now you can play your game.

HOW TO USE
The script sets up F9 as a quicksave hotkey and F12 as a quickload hotkey. The first time you press F9 a save folder will automatically be created on your desktop. Of course, you must log out of the game before using the hotkeys, then log back in. Logging out forces the game to make a save so that you can copy it using F9.
If your character dies, log out and press F12 to restore the quicksave, then log back in.
The script also keeps a numbered, permanent copy of each quicksave in case you need to go back to an earlier save but you'll have to do that manually. (I suggest making a shortcut to the C:\Users\YOURNAME\Appdata\LocalLow\IronGate|Valheim folder.)
You can customize the hotkeys or change the paths to whatever your needs are.
Enjoy!

HERE'S THE SCRIPT:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Src = C:\Users\YOURNAME\AppData\LocalLow\IronGate\Valheim Temp = C:\Users\YOURNAME\Desktop\Valheim Saves\Quicksave\Valheim Dest = C:\Users\YOURNAME\Desktop\Valheim Saves\Valheim F9:: FileCopyDir, %Src%, %Temp%, 1 ; Overwrite to Quicksave folder FileCopyDir, %Src%, %Dest% ; Save to Permanent Saves folder without overwriting If ErrorLevel { Loop { FileCopyDir, %Src%, %Dest% %A_Index% ; stick a number on the end If ErrorLevel = 0 ; continue increasing numbers until there is no error { Break } } } Return F12:: FileDelete, C:\Users\YOURNAME\AppData\LocalLow\IronGate Sleep 1000 FileCopyDir, %Temp%, %Src%, 1 ; Load Quicksave back to game folder Return
2:13 am, September 12, 2021
meb942013 0 comments 0 likes