Skip to content

Commit

Permalink
Undertale: Change Save Data Folder Location (ArchipelagoMW#1966)
Browse files Browse the repository at this point in the history
Co-authored-by: Witchybun <[email protected]>
  • Loading branch information
2 people authored and kl3cks7r committed Aug 11, 2023
1 parent f4f3fe1 commit d8570a4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UndertaleClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def _cmd_patch(self):
self.ctx.patch_game()
self.output("Patched.")

def _cmd_savepath(self, directory: str):
"""Redirect to proper save data folder. (Use before connecting!)"""
if isinstance(self.ctx, UndertaleContext):
UndertaleContext.save_game_folder = directory
self.output("Changed to the following directory: " + directory)

@mark_raw
def _cmd_auto_patch(self, steaminstall: typing.Optional[str] = None):
"""Patch the game automatically."""
Expand Down
20 changes: 20 additions & 0 deletions worlds/undertale/docs/undertale_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ by opening the Undertale directory through Steam), it will then make an Undertal
Archipelago install location. That contains the version of Undertale you will use for Archipelago. (You will need to
redo this step when updating Archipelago.)

**Linux Users**: This guide is mostly similar; however, when Undertale is installed on Steam, it defaults to a Linux
supported variant; this randomizer only supports the Windows version. To fix this, right-click the game in Steam, go to
Properties -> Compatibility, and check "Force the use of a specific Steam Play compatibility tool". This
downloads the Windows version instead. If the play button is greyed out in Steam, be sure to go to
Settings -> Compatibility and toggle "Enable Steam Play for all other titles".

### Connect to the MultiServer

Make sure both Undertale and its client are running. (Undertale will ask for a saveslot, it can be 1 through 99, none
Expand All @@ -23,6 +29,20 @@ In the top text box of the client, type the

The client will then ask for the slot name, input that in the text box at the bottom of the client.

**Linux Users**: When you start the client, it is likely that the save data path is incorrect, and how the game
is played depends on where the save data folder is located.

*On Steam (via Proton)*: This assumes the game is in a Steam Library folder. Right-click Undertale, go to Manage ->
Browse Local Files. Move back to the steamapps folder, open compatdata/391540 (391540 is the "magic number" for
Undertale in Steam and can be confirmed by visiting its store page and looking at the URL). Save data from here is at
/pfx/drive_c/users/steamuser/AppData/Local/UNDERTALE.

*Through WINE directly*: This depends on the prefix used. If it is default, then the save data is located at
/home/USERNAME/.wine/drive_c/users/USERNAME/AppData/Local/UNDERTALE.

Once the save data folder is located, run the /savepath command to redirect the client to the correct save data folder
before connecting.

### Play the game

When the console tells you that you have joined the room, you're all set. Congratulations on successfully joining a
Expand Down

0 comments on commit d8570a4

Please sign in to comment.