Skip to content

LoaderProfileJson does not parse "arguments" object format, missing arguments.jvm and arguments.game #5

@X12101XX

Description

@X12101XX

what happened

LoaderProfileJson only parses the legacy flat "gameArguments" format and does not handle the modern "arguments" object format. Loader profiles for Forge 1.17+ use: arguments : {"game": [...], "jvm": [...]}

But the parser only checks gamearguments: [...]

this cause two issues:

  1. "arguments.jvm" (e.g. --add-opens flags required for Java 17+) are silently dropped, causing Forge to crash on Java 17+ with IllegaAccessError
  2. "arguments.game" is also sliently dropped if the profile dosen't include the legacy "gameArguments" fallback.

steps to reproduce

  1. Create a Forge 1.20.1 ( need 1.17+) instance ( Forge)
  2. Set Java 17+ (Of course, need a correct java version to launch game)
  3. Launch - Forge crashes with module access error

rmcl version

0.3.0

operating system

Linux

additional context

(This issue was written with AI assistance for English translation.)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions