2 min read
Noita backup and restore save game
Noita is a game like no other. An action roguelike where every pixel is simulated. It is best known for its steep learning curve. A simple play through takes around 2 hours. But to actually get there will take you up to a 100 hours. Yes, I already spent lot of time on this game.
My gaming machine is a SteamDeck. This game as many games do now, runs on Linux. There is also a multiplayer mod called Entangeld Worlds. I usually play with my brother.
As mentioned a run can take a few hours to fail (seldom succeed). The game has only 1 save slot. When playing the multiplayer mod you have to start a new game which is a major nuisance. Especially, if you are on a good run. To help my out and make a tiny contribution to the game I created this script to backup and restore the save state:
#!/bin/bash
backup-restore-noita(){
NOITA_GAME_DIR="$HOME/.steam/steam/steamapps/compatdata/881100/pfx/drive_c/users/steamuser/AppData/LocalLow/Nolla_Games_Noita"
SOURCE_DIR="$NOITA_GAME_DIR/save00"
SINGLE_DIR="$NOITA_GAME_DIR/save_singleplayer"
MULTI_DIR="$NOITA_GAME_DIR/save_multiplayer"
echo "Noita Save Manager"
echo "1. Backup save00 to Singleplayer"
echo "2. Backup save00 to Multiplayer"
echo "3. Restore from Singleplayer"
echo "4. Restore from Multiplayer"
read -p "Select option: " choice
case $choice in
1) cp -r "$SOURCE_DIR"/* "$SINGLE_DIR"/ ;;
2) cp -r "$SOURCE_DIR"/* "$MULTI_DIR"/ ;;
3) cp -r "$SINGLE_DIR"/* "$SOURCE_DIR"/ ;;
4) cp -r "$MULTI_DIR"/* "$SOURCE_DIR"/ ;;
*) echo "Invalid option" ;;
esac
echo "Operation complete."
}
backup-restore-noita
It is very simple and only adds 1 save slot on purpose.
Category: gameTags: 100daystooffload , game , roguelike , bash , script
Edit Page / Show Statistic