mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-24 22:03:26 -07:00
* Round 1 of code review updates, the easy stuff. * Factor options checking away from region/rule creation. * Code review updates round 2, more complex stuff. * Code review updates round 3: the mental health annihilator * Code review updates part 4: redemption. * More code review feedback, simplifying code, etc.
10 KiB
10 KiB
Jak And Daxter (ArchipelaGOAL) Setup Guide
Required Software
- A legally purchased copy of Jak And Daxter: The Precursor Legacy.
- The OpenGOAL Mod Launcher
- The Jak and Daxter .APWORLD package
At this time, this method of setup works on Windows only, but Linux support is a strong likelihood in the near future. (OpenGOAL itself supports Linux, and the mod launcher is runnable with Python.)
Preparations
- Dump your copy of the game as an ISO file to your PC.
- Install the Mod Launcher.
- If you are prompted by the Mod Launcher at any time during setup, provide the path to your ISO file.
Installation
OpenGOAL Mod Launcher
- Run the Mod Launcher and click
ArchipelaGOALin the mod list. - Click
Installand wait for it to complete.- If you have yet to be prompted for the ISO, click
Re-Extractand provide the path to your ISO file.
- If you have yet to be prompted for the ISO, click
- Click
Recompile. This may take between 30-60 seconds. It should run to 100% completion. If it does not, see the Troubleshooting section. - Click
View Folder.- In the new file explorer window, take note of the current path. It should contain
gk.exeandgoalc.exe.
- In the new file explorer window, take note of the current path. It should contain
- Verify that the mod launcher copied the extracted ISO files to the mod directory:
%appdata%/OpenGOAL-Mods/archipelagoal/iso_dataand%appdata%/OpenGOAL-Mods/_iso_datashould have all the same files; if they don't, copy those files over manually.- And then
Recompileif you needed to copy the files over.
- DO NOT PLAY AN ARCHIPELAGO GAME THROUGH THE MOD LAUNCHER. It will run in retail mode, which is incompatible with Archipelago. We need it to run in debug mode (see below).
Archipelago Launcher
- Copy the
jakanddaxter.apworldfile into yourArchipelago/custom_worldsdirectory.- Reminder: the default installation location for Archipelago is
C:\ProgramData\Archipelago.
- Reminder: the default installation location for Archipelago is
- Run the Archipelago Launcher.
- From the left-most list, click
Generate Template Options. - Select
Jak and Daxter The Precursor Legacy.yaml. - In the text file that opens, enter the name you want and remember it for later.
- Save this file in
Archipelago/players. You can now close the file. - Back in the Archipelago Launcher, click
Open host.yaml. - In the text file that opens, search for
jakanddaxter_options.- You should see the block of YAML below. If you do not see it, you will need to add it.
- If the default path does not contain
gk.exeandgoalc.exe, you will need to provide the path you noted earlier. MAKE SURE YOU CHANGE ALL BACKSLASHES\TO FORWARD SLASHES/.
jakanddaxter_options:
# Path to folder containing the ArchipelaGOAL mod executables (gk.exe and goalc.exe).
# Ensure this path contains forward slashes (/) only.
root_directory: "%appdata%/OpenGOAL-Mods/archipelagoal"
- Back in the Launcher, from the left-most list, click
Generate. A window will appear to generate your seed and close itself. - If you plan to host the game yourself, from the left-most list, click
Host.- When asked to select your multiworld seed, navigate to
Archipelago/outputand select the zip file containing the seed you just generated. - You can sort by Date Modified to make it easy to find.
- When asked to select your multiworld seed, navigate to
Updates and New Releases
OpenGOAL Mod Launcher
- Run the Mod Launcher and click
ArchipelaGOALin the mod list. - Click
Launchto download and install any new updates that have been released. - You can verify your version once you reach the title screen menu by navigating to
Options > Game Options > Miscellaneous > Speedrunner Mode. - Turn on
Speedrunner Modeand exit the menu. You should see the installed version number in the bottom left corner. Then turnSpeedrunner Modeback off. - Once you've verified your version, you can close the game. Remember, this is just for downloading updates. DO NOT PLAY AN ARCHIPELAGO GAME THROUGH THE MOD LAUNCHER.
Archipelago Launcher
- Copy the latest
jakanddaxter.apworldfile into yourArchipelago/custom_worldsdirectory.
Starting a Game
New Game
- Run the Archipelago Launcher.
- From the right-most list, find and click
Jak and Daxter Client. - 4 new windows should appear:
- A powershell window will open to run the OpenGOAL compiler. It should take about 30 seconds to compile the game.
- As before, it should run to 100% completion, and you should hear a musical cue to indicate it is done. If it does not run to 100%, or you do not hear the musical cue, see the Troubleshooting section.
- Another powershell window will open to run the game.
- The game window itself will launch, and Jak will be standing outside Samos's Hut.
- Finally, the Archipelago text client will open.
- You should see several messages appear after the compiler has run to 100% completion. If you see
The REPL is ready!andThe Memory Reader is ready!then that should indicate a successful startup. - The game should then load in the title screen.
- You should see several messages appear after the compiler has run to 100% completion. If you see
- A powershell window will open to run the OpenGOAL compiler. It should take about 30 seconds to compile the game.
- You can minimize the 2 powershell windows, BUT DO NOT CLOSE THEM. They are required for Archipelago and the game to communicate with each other.
- Use the text client to connect to the Archipelago server while on the title screen. This will communicate your current settings to the game.
- Start a new game in the title screen, and play through the cutscenes.
- Once you reach Geyser Rock, you can start the game!
- You can leave Geyser Rock immediately if you so choose - just step on the warp gate button.
Returning / Async Game
- The same steps as New Game apply, with some exceptions:
- Connect to the Archipelago server BEFORE you load your save file. This is to allow AP to give the game your current settings and all the items you had previously.
- THESE SETTINGS AFFECT LOADING AND SAVING OF SAVE FILES, SO IT IS IMPORTANT TO DO THIS FIRST.
- Then, instead of choosing
New Gamein the title menu, chooseLoad Game, then choose the save file CORRESPONDING TO YOUR CURRENT ARCHIPELAGO CONNECTION.
Troubleshooting
Installation Failure
- If you encounter errors during extraction or compilation of the game when using the Mod Launcher, you may see errors like this:
-- Compilation Error! --
Input file iso_data/jak1/MUS/TWEAKVAL.MUS does not exist.
- If this occurs, you may need to copy the extracted data to the mod folder manually.
- From a location like this:
%appdata%/OpenGOAL-Mods/_iso_data - To a location like this:
%appdata%/OpenGOAL-Mods/archipelagoal/iso_data - Then try clicking
Recompilein the Mod Launcher (ensure you have selected the right mod first!)
- From a location like this:
Game Failure
- If at any point the text client says
The <gk/goalc> process has died, you will need to restart the appropriate application:- Open a new powershell window.
- Navigating to the directory containing
gk.exeandgoalc.exeviacd. - Run the command corresponding to the dead process:
.\gk.exe --game jak1 -- -v -boot -fakeiso -debug.\goalc.exe --game jak1
- Then enter the following commands into the text client to reconnect everything to the game.
/repl connect/memr connect
- Once these are done, you can enter
/repl statusand/memr statusto verify.
- If the game freezes by replaying the same two frames over and over, but the music still runs in the background, you may have accidentally interacted with the powershell windows in the background - they halt the game if you:scroll up in them, highlight text in them, etc.
- To unfreeze the game, scroll to the very bottom of the log output and right click. That will release powershell from your control and allow the game to continue.
- It is recommended to keep these windows minimized and out of your way.
- If the client cannot open a REPL connection to the game, you may need to ensure you are not hosting anything on ports 8181 and 8112.
Special PAL Instructions
PAL versions of the game seem to require additional troubleshooting/setup in order to work properly. Below are some instructions that may help.
- If you have
-- Compilation Error! --after pressingRecompileor Launching the ArchipelaGOAL mod. Try this:- Remove these folders if you have them:
%appdata%/OpenGOAL-Mods/iso_data%appdata%/OpenGOAL-Mods/archipelagoal/iso_data%appdata%/OpenGOAL-Mods/archipelagoal/data/iso_data
- Place Jak1 ISO in:
%appdata%/OpenGOAL-Mods/archipelagoalrename it toJakAndDaxter.iso - Type "CMD" in Windows search, Right click Command Prompt, and pick "Run as Administrator"
- Run:
cd %appdata%\OpenGOAL-Mods\archipelagoal - Then run:
extractor.exe --extract --extract-path .\data\iso_data "JakAndDaxter.iso"- (Command should end by saying
Uses Decompiler Config Version - ntsc_v1or... - pal)
- (Command should end by saying
- Rename:
%appdata%\OpenGOAL-Mods\archipelagoal\data\iso_data\jak1tojak1_pal* - Run next:
decompiler.exe data\decompiler\config\jak1\jak1_config.jsonc --version "pal" data\iso_data data\decompiler_out*- *For NTSCv1 (USA Black Label) keep the folder as
jak1, and use command:decompiler.exe data\decompiler\config\jak1\jak1_config.jsonc --version "ntsc_v1" data\iso_data data\decompiler_out
- *For NTSCv1 (USA Black Label) keep the folder as
- Rename:
%appdata%\OpenGOAL-Mods\archipelagoal\data\iso_data\jak1_paltojak1 - Rename:
%appdata%\OpenGOAL-Mods\archipelagoal\data\decompiler_out\jak1_paltojak1
- Remove these folders if you have them:
- You have to do this last bit in two different terminal (2 powershell). First, from one terminal, launch the compiler:
cd %appdata%\OpenGOAL-Mods\archipelagoal.\goalc.exe --user-auto --game jak1- From the compiler (in the same terminal):
(mi) - This should compile the game. Note that the parentheses are important.
- Don't close this first terminal, you will need it at the end.
- Then, from the second terminal (powershell), execute the game:
cd %appdata%\OpenGOAL-Mods\archipelagoal.\gk.exe -v --game jak1 -- -boot -fakeiso -debug
- Finally, from the first terminal still in the Goalc compiler, connect to the game:
(lt)
Known Issues
- The game needs to boot in debug mode in order to allow the repl to connect to it. We disable debug mode once we connect to the AP server.
- The powershell windows cannot be run as background processes due to how the repl works, so the best we can do is minimize them.
- Orbsanity checks may show up out of order in the text client.
- Large item releases may take up to several minutes for the game to process them all.