Skip to content

Commit 7edb271

Browse files
WitchybunAlbrekka
authored andcommitted
Undertale: Change Save Data Folder Location (ArchipelagoMW#1966)
Co-authored-by: Witchybun <[email protected]>
1 parent d46ef09 commit 7edb271

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

UndertaleClient.py

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def _cmd_patch(self):
3232
self.ctx.patch_game()
3333
self.output("Patched.")
3434

35+
def _cmd_savepath(self, directory: str):
36+
"""Redirect to proper save data folder. (Use before connecting!)"""
37+
if isinstance(self.ctx, UndertaleContext):
38+
UndertaleContext.save_game_folder = directory
39+
self.output("Changed to the following directory: " + directory)
40+
3541
@mark_raw
3642
def _cmd_auto_patch(self, steaminstall: typing.Optional[str] = None):
3743
"""Patch the game automatically."""

worlds/undertale/docs/undertale_en.md

+20
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ by opening the Undertale directory through Steam), it will then make an Undertal
1313
Archipelago install location. That contains the version of Undertale you will use for Archipelago. (You will need to
1414
redo this step when updating Archipelago.)
1515

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

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

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

32+
**Linux Users**: When you start the client, it is likely that the save data path is incorrect, and how the game
33+
is played depends on where the save data folder is located.
34+
35+
*On Steam (via Proton)*: This assumes the game is in a Steam Library folder. Right-click Undertale, go to Manage ->
36+
Browse Local Files. Move back to the steamapps folder, open compatdata/391540 (391540 is the "magic number" for
37+
Undertale in Steam and can be confirmed by visiting its store page and looking at the URL). Save data from here is at
38+
/pfx/drive_c/users/steamuser/AppData/Local/UNDERTALE.
39+
40+
*Through WINE directly*: This depends on the prefix used. If it is default, then the save data is located at
41+
/home/USERNAME/.wine/drive_c/users/USERNAME/AppData/Local/UNDERTALE.
42+
43+
Once the save data folder is located, run the /savepath command to redirect the client to the correct save data folder
44+
before connecting.
45+
2646
### Play the game
2747

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

0 commit comments

Comments
 (0)