jadeite/README.md

76 lines
5.3 KiB
Markdown
Raw Permalink Normal View History

2023-12-28 12:35:29 +00:00
# Jadeite Autopatcher
### Current game support:
2024-03-02 10:13:06 +00:00
- **3rd**: glb/sea/tw/kr/jp **v7.3.0+**, cn **v7.3.0+**
2024-02-05 14:28:28 +00:00
- **SR**: os/cn **v2.0.0**\*
2023-06-08 19:33:37 +00:00
2023-10-11 17:55:48 +00:00
You can expect newer versions to work immediately after release with the same jadeite binary if the version is specified with a + above.
2023-06-05 21:23:08 +00:00
2024-01-08 16:18:51 +00:00
**Note:** you can test the experimental version-independent patching method for SR. See [#37](https://codeberg.org/mkrsym1/jadeite/issues/37).
2024-02-04 08:18:22 +00:00
**Note:** the Steam version of 3rd was reported to work, however I neither tested it nor intend to support it, so it might break at any time. Use at your own risk.
2023-12-28 12:35:29 +00:00
## Information
2023-07-07 11:14:28 +00:00
The anticheat the games use is fundamentally incompatible with Wine in multiple ways. This tool launches the game without it (`injector`) and imitates it's behaviour (`game_payload`).
2023-06-05 21:23:08 +00:00
2023-06-10 10:07:47 +00:00
**Using third-party software (such as this tool) with the games violates their Terms of Service**. Therefore, **you may receive a ban**. No bans were ever reported with 3rd, however the legacy patch for SR did cause many. **Use at your own risk and only if you understand all the possible consequences**.
**This is not a cheating tool**. Using it with Windows is not possible, and Windows support is not planned or intended in any way. However, as it does not perform any on-disk file modifications, you may reuse the same game install for Windows if you have a dual-boot setup.
2023-06-05 21:23:08 +00:00
2023-12-28 12:35:29 +00:00
## Usage
**Refer to [third-party launchers](#third-party-launchers)** for convenient usage. If you don't want to (or can't) use third-party launchers, continue reading the section below
2023-06-05 21:23:08 +00:00
2023-12-28 12:35:29 +00:00
**Wine 8.0+ is recommended**, as lower versions leak "The Wine project" as the device identifier. Not critical, but taking a precaution never hurt anyone. **DXVK is strongly recommended**
2023-06-05 21:23:08 +00:00
2023-09-11 19:30:52 +00:00
**3rd-specific**:
- **Wine 8.21+ or [Wine-GE-Proton](https://github.com/GloriousEggroll/wine-ge-custom) is required to play videos. The game may show a black screen or crash on lower versions.**
2023-09-11 19:30:52 +00:00
- You might need to [limit the number of cores available to the game](https://github.com/z0z0z/mf-install/issues/44) if your CPU has more than 8.
2023-06-05 21:23:08 +00:00
Manual usage instructions:
- Download the game you want to run
2023-08-06 16:26:02 +00:00
- Download the latest release from this repository
2023-06-05 21:23:08 +00:00
- Extract the archive (**NOT INTO THE GAME DIRECTORY! THIS IS IMPORTANT!**)
2023-08-06 16:32:29 +00:00
- Run `./block_analytics.sh` from the archive to block the games from accessing analytics servers (you might have to do a `chmod +x block_analytics.sh` first). This will require superuser privileges
2023-06-09 18:10:44 +00:00
- Run `wine jadeite.exe 'Z:\wine\path\to\game.exe'`
2023-06-05 21:23:08 +00:00
2023-12-28 12:35:29 +00:00
Detailed command line interface reference: `jadeite.exe [game path] <launcher path> <game args...>`, where:
- `game path` - Wine path to the game (required)
- `launcher path` - Wine path to the launcher process (optional, default is `C:\Windows\explorer.exe`). The launcher process will be used to start the game. You can specify the path to the official launcher here. Specifying anything other than `explorer.exe` or the official launcher is not recommended. Specify `--` to skip this argument and use the default
- `game args...` - arguments to pass to the game process (optional)
2023-06-05 21:23:08 +00:00
2023-12-28 12:35:29 +00:00
Example command: `jadeite.exe 'Z:\path\to\game.exe' -- -screen-fullscreen 1`
2023-12-28 12:35:29 +00:00
## Configuration
2023-07-07 11:14:28 +00:00
These environment variables can be used to configure the behaviour of the tool. Any value except empty string counts as set. `1` will be used in all examples.
2023-06-08 19:33:37 +00:00
**Global**:
2023-06-10 16:24:07 +00:00
- `WAIT_BEFORE_RESUME=1` - show a messagebox and wait for user input before resuming the game process. Useful on my side for debugging
2023-06-10 15:23:43 +00:00
**SR-specific**:
2024-01-08 16:18:51 +00:00
- `BREAK_CRYPTCAT=1` - use the experimental patching method. See [#37](https://codeberg.org/mkrsym1/jadeite/issues/37) for details
2023-12-28 12:35:29 +00:00
## Internals and building
To compile jadeite, you will need meson, mingw and nasm. You can probably install all three using your repository's package manager. Once all dependencies are installed, run `./build.sh` in this directory. The compiled files will be located in `./out`.
2023-06-05 21:23:08 +00:00
2023-07-27 22:51:04 +00:00
A part of the source code is witheld (`game_payload/src/core.c`). This is a forced measure to make abuse more difficult. However, a precompiled blob is provided in the repo. `build.sh` will use it automatically.
2023-06-05 21:23:08 +00:00
2023-12-28 12:35:29 +00:00
All source code except `core.c` is available in this repository. You can take look around.
## Guildelines
2023-06-05 21:23:08 +00:00
1. **Please don't share this project in public.** This might attract unnecessary attention from either the Game Company or the Anticheat Company
2. **Please don't abuse this project for cheating.** We're just trying to play the games through Wine
2023-12-28 12:35:29 +00:00
## Troubleshooting
2023-06-05 21:23:08 +00:00
Please do not report any issues with the Game to the official channels. Use the issue tracker of this repository
2023-12-28 12:35:29 +00:00
## Third-party launchers
- **Honkers Launcher** &mdash; Linux launcher for 3rd ([GitHub](https://github.com/an-anime-team/honkers-launcher) | [Codeberg](https://codeberg.org/an-anime-team/honkers-launcher))
- **The Honkers Railway Launcher** &mdash; Linux launcher for SR ([GitHub](https://github.com/an-anime-team/the-honkers-railway-launcher) | [Codeberg](https://codeberg.org/an-anime-team/the-honkers-railway-launcher))
2023-06-05 21:23:08 +00:00
2023-12-28 12:35:29 +00:00
## Credits
- **mkrsym1** &mdash; project leader, reverse engineering
- **[EternalStudentDesuKa](https://github.com/EternalStudentDesuKa)** &mdash; major help with analyzing network activity
- **[An Anime Team](https://github.com/an-anime-team)** &mdash; Honkers Launcher and The Honkers Railway Launcher
- Some others (credited in the source code)
2023-06-05 21:23:08 +00:00
License: MIT