Coder Social home page Coder Social logo

Forge support about portablemc HOT 14 CLOSED

mindstorm38 avatar mindstorm38 commented on May 29, 2024
Forge support

from portablemc.

Comments (14)

GoodDay360 avatar GoodDay360 commented on May 29, 2024 4

Hey man, I got something for you: https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json.
I found this link a year ago while I try to make a server on Google Cloud. I just realized that in this link there is a way for you to get Forge_Version Id.
So just requests installer like this: "https://maven.minecraftforge.net/net/minecraftforge/forge/{MCVER}-{FORGEVER}/forge-{MCVER}-{FORGEVER}-installer.jar"

That's it! 😎
And also can you make the way forge installed it use mods folder inside the version instead of inside ./minecraft/mods?
#Bring Back the Planned label.

from portablemc.

GoodDay360 avatar GoodDay360 commented on May 29, 2024 1

Their discord server should help. For optifine I also get A.P.I from their discord server

from portablemc.

Umatriz avatar Umatriz commented on May 29, 2024 1

@mindstorm38 Big thanks!

from portablemc.

gl91306 avatar gl91306 commented on May 29, 2024

forge works, you just need to install forge via the jar on forges website, and run that forge installs version id.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

I know that forge works but the point is that forge seems not to provide a web (REST) API that provides these download links. That said, a solution might be to find a non official API or to store (or guess) all links for all versions of forge.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

For now, this seems complicated to make this happen. The following screenshot was made from the public channel tech-support on the official Forge discord server.

image

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

I've a complementary solution to this problem, I just found another interesting maven file.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

It's not that simple 😢

Installer procedures have changed a lot of time in the past, and each of these installers doesn't provide a CLI argument to install the client (quite obvious regarding their choice of not allowing automation of the installation). To fix that, I need to make a small wrapper in Java which will hook itself into the installer and run the right code. And I will need one wrapper for each installation procedure. And old versions used to be loaded by original ModLoader!

Another method would be to read the "install_profile.json" file, but this file has also changed a lot of times over the past, and various "post-processing" calls need to be executed.

For now, I'm working on the Java wrapper.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

Update: I finished writing the wrapper, and it currently provides a unified interface to install forge up to Minecraft 1.6 (I haven't tested further). 🎉🎉

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

Already working for latest versions, I've some issue launching 1.11 and older versions because of some syntax error in generated version metadata files and class not found exceptions.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

It's now possible to launch a version from 1.7.10 to 1.18.2! Some modifications were made to the launcher itself because it wasn't implementing rights algorithms for libraries resolution.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

First release of this addon is released today! Please test it and give me feedbacks in issues or discussions.

from portablemc.

Umatriz avatar Umatriz commented on May 29, 2024

I'm also developing launcher in Rust. As I can see now you dont have any java wrappers. How do you installing it?
I'll be so grateful if you will explain how does it really works. Cause now I'm stuck with forge/neoforge installing.

from portablemc.

mindstorm38 avatar mindstorm38 commented on May 29, 2024

@Umatriz The forge installation is quite complicated, but I found over time that it's simpler to install it without actually running the Java installer. So in the current state, the launcher parses the JAR and acts depending on what found in it (because there is multiple version of the installer). Everything is implemented in https://github.com/mindstorm38/portablemc/blob/master/portablemc/forge.py

from portablemc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.