[PR #3938] [MERGED] Launcher: copy ATLauncher instances into Java instances #5303

Closed
opened 2026-11-03 05:11:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3938
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/issue-3915-atlauncher-import


📝 Commits (2)

  • 9a8455d Launcher: copy ATLauncher instances into Java instances
  • 4f76341 Launcher: read ATLauncher instances from observed instance.json files, not its source

📊 Changes

2 files changed (+158 additions, -2 deletions)

View changed files

📝 launcher/src/other_launchers.rs (+93 -2)
📝 launcher/src/other_launchers/tests.rs (+65 -0)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Part of #3915 (ATLauncher import); closes #3937.

ATLauncher instances (an instance.json at the root of each instance folder) are now found by the scan of default folders and by in_folder (root, its instances folder, or one instance folder), and copy into Java instances with their loader like Prism ones.

Provenance (clean-room). No ATLauncher source code is used. An earlier revision cited ATLauncher's Instance.java; that dependency is removed and the parsing rewritten from the sources below (the first commit is superseded by the second). The ATLauncher wiki does not describe the instance files, so the mapping rests on observed real files plus the wiki's pack documentation:

  • Instance folder = game folder, with instance.json at its root; id = Minecraft version; launcher.name = name; launcher.loaderVersion.type / .version = loader. Observed in four instance.json files that players committed to public repositories, each beside config/, saves/ etc. (types seen: Forge, NeoForge; versions like 47.3.12, 21.1.219):
    1,
    2,
    3,
    4.
  • Fabric / Quilt types: not seen in any real instance.json; taken from the loader types listed at https://wiki.atlauncher.com/pack-admin/xml/loaders/ (pack format, not instance.json). Matching is case-insensitive; any other type, or no loaderVersion, copies the instance without a loader.
  • instances folder name: the ServerPackCreator README shows ATLauncher/instances/<name> (https://github.com/Griefed/ServerPackCreator/blob/HEAD/README.md, ATLauncher example); matched in any capitalisation.
  • All other fields are ignored.

Tested: in launcher/, cargo fmt --check, cargo clippy --lib --tests -- -D warnings and cargo test --lib other_launchers pass, with tests on synthetic folders holding only the fields above. Not tested: against a real ATLauncher install (no Fabric/Quilt sample found), the GUI, or tools/pr_ready.py/harnesses.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3938 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-3915-atlauncher-import` --- ### 📝 Commits (2) - [`9a8455d`](https://github.com/horizon-rust/horizon/commit/9a8455d017d24fc053a89ee57c41a214ab807fd8) Launcher: copy ATLauncher instances into Java instances - [`4f76341`](https://github.com/horizon-rust/horizon/commit/4f76341bdda39537a82742dbcfc15d916fee332e) Launcher: read ATLauncher instances from observed instance.json files, not its source ### 📊 Changes **2 files changed** (+158 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/other_launchers.rs` (+93 -2) 📝 `launcher/src/other_launchers/tests.rs` (+65 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Part of #3915 (ATLauncher import); closes #3937. ATLauncher instances (an `instance.json` at the root of each instance folder) are now found by the scan of default folders and by `in_folder` (root, its `instances` folder, or one instance folder), and copy into Java instances with their loader like Prism ones. **Provenance (clean-room).** No ATLauncher source code is used. An earlier revision cited ATLauncher's `Instance.java`; that dependency is removed and the parsing rewritten from the sources below (the first commit is superseded by the second). The ATLauncher wiki does not describe the instance files, so the mapping rests on observed real files plus the wiki's pack documentation: - Instance folder = game folder, with `instance.json` at its root; `id` = Minecraft version; `launcher.name` = name; `launcher.loaderVersion.type` / `.version` = loader. Observed in four `instance.json` files that players committed to public repositories, each beside `config/`, `saves/` etc. (types seen: `Forge`, `NeoForge`; versions like `47.3.12`, `21.1.219`): [1](https://github.com/Benbentwo-Games/CLIENT-CustomModPack/blob/bff0b3c48fdd7c585396e13b11acd69368c81792/instance.json), [2](https://github.com/Zencal/cobbleverse-neoforge-zen/blob/8f305f0769a5ff30a8cc000f6b7ed2fec1d9415f/instance.json), [3](https://github.com/Shadowdragon019/The-Break-Engineer-Modpack/blob/a1593b1f3fd03beb9b9c2fde7b803e2442744aec/instance.json), [4](https://github.com/Phremic/Gobbomon-Forge/blob/851cec5b6e379c32a271be9f75d0fa032c46bbf1/1%20-%20Instance%20Core/instance.json). - `Fabric` / `Quilt` types: **not seen in any real `instance.json`**; taken from the loader types listed at https://wiki.atlauncher.com/pack-admin/xml/loaders/ (pack format, not `instance.json`). Matching is case-insensitive; any other type, or no `loaderVersion`, copies the instance without a loader. - `instances` folder name: the ServerPackCreator README shows `ATLauncher/instances/<name>` (https://github.com/Griefed/ServerPackCreator/blob/HEAD/README.md, ATLauncher example); matched in any capitalisation. - All other fields are ignored. Tested: in `launcher/`, `cargo fmt --check`, `cargo clippy --lib --tests -- -D warnings` and `cargo test --lib other_launchers` pass, with tests on synthetic folders holding only the fields above. Not tested: against a real ATLauncher install (no Fabric/Quilt sample found), the GUI, or `tools/pr_ready.py`/harnesses. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5303
No description provided.