launcher cant download .JAR for custom version
See original GitHub issueit happens because custom versions use inheritsFrom, so need to read original version and merge with custom.
My solution that works:
change handler.js, line 106, getVersion:
return new Promise(resolve => {
const versionJsonPath = this.options.overrides.versionJson ||
path.join(this.options.directory, `${this.options.version.number}.json`)
if (fs.existsSync(versionJsonPath)) {
let version = JSON.parse(fs.readFileSync(versionJsonPath))
if (version.inheritsFrom != null) {//my solution
this.options.overrides.versionJson = undefined;
this.getVersion(version.inheritsFrom).then((parentt) => {
this.version = {...version, ...parentt };
return resolve(this.version);
});
} else {
this.version = version;
return resolve(version);
}
}
also need to set this.options.overrides.versionJson to custom version instead original version number, tho it is possible to do in configs.
that will make library launch forge and fabric without any problems!
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
[MCL-20504] Launcher fails to download jar for json version ...
The launcher is trying to download the 1.17. 1 jar from https://s3.amazonaws.com/Minecraft.Download/versions/1.17.1/1.17.1.jar, that seems to ...
Read more >How To Use Custom Jars In The New Launcher - Java Edition ...
1. Create a new profile · 2. Download/Start Minecraft · 3. Go to the Local Version Editor · 4. Right click anywhere, ·...
Read more >[HELP REQUEST] Can't create custom versions to use in the ...
Download the Forge Installer for the version you want. 2. Run the jar and select the "Client" option. It should create a new...
Read more >minecraft cannot download versions and libraries - Arqade
This is likely your launcher is out of date and is trying to get files from locations they are no longer at or...
Read more >How to Install a Custom JAR (Custom Server Type) - Shockbyte
jar , X being the required Java version). Make sure that it is in lowercase, otherwise, it will not load properly. Custom JAR;...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I apologize for the late response, I was dealing with finals. For now, use the technic version json (which is right under where you got this one) since that one is properly formatted. I’ll go ahead and add this to my todo list on version json formats to support
as you may see it has only libs required by fabric, no downloads. inheritsFrom probably says to use 1.18.2 as some kind of dependency. merging fabric-loader and vanilla jsons solve that problem