Code Monkey home page Code Monkey logo

Comments (14)

Nincodedo avatar Nincodedo commented on June 9, 2024

https://github.com/Nincraft/ModPackDownloader/tree/feature/curse-modpack-downloader Your thoughts so far? Running the jar with the argument -updateCurseModPack and a file called modpackid with the project slug is all you need.

from modpackdownloader.

Watchful1 avatar Watchful1 commented on June 9, 2024

Getting

$ java -jar ModPackDownloader.jar -updateCurseModPack
20:35:04.112 [main] INFO  com.nincraft.modpackdownloader.ModPackDownloader:46 - No mod folder specified, defaulting to "mods"
20:35:04.152 [main] INFO  com.nincraft.modpackdownloader.manager.ModPackManager:23 - Found modpackid file with id ftb-unstable-1-9

Exception in thread "main" java.lang.NumberFormatException: For input string: "ftb"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at com.nincraft.modpackdownloader.container.CurseFile.<init>(CurseFile.java:45)
        at com.nincraft.modpackdownloader.manager.ModPackManager.updateModPack(ModPackManager.java:30)
        at com.nincraft.modpackdownloader.ModPackDownloader.main(ModPackDownloader.java:32)

Slugs don't necessarily start with, or even contain, the project ID. It changed a few months ago, so new projects usually don't have them.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

Oops. I'll have to grab the project ID from the JSON I guess. I need that for downloading.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

That pack's slug still has the project ID in it. http://mods.curse.com/modpacks/minecraft/238015-ftb-unstable-1-9

Widget too https://widget.mcf.li/modpacks/minecraft/238015-ftb-unstable-1-9.json

from modpackdownloader.

Watchful1 avatar Watchful1 commented on June 9, 2024

Hmm, interesting. It makes sense that both would resolve. So I guess it's just a question of usability. If you're just starting from here, I don't see a way to get the slug with the project ID.

Your choice, but I would recommend relying on the known api over the end user input string.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

If you go to a pack and click View on Curse, it goes to a URL with the project ID usually.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

I added a few more fixes and was able to download a FTB pack but only if you supply the ID and name. But yeah, I'm not sure how else to get the project ID with just the name.

from modpackdownloader.

Watchful1 avatar Watchful1 commented on June 9, 2024

Ah, fair enough.

from modpackdownloader.

Watchful1 avatar Watchful1 commented on June 9, 2024

Yup, that worked perfectly. I don't think it's going to update forge in MultiMC, but you would probably have to add special compatibility for that.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

I was looking into updating Forge, however it seems rather complicated. I already have downloading the installer and universal done, but there's a net.minecraftforge.json in the instance that needs to be updated so it runs with the right Forge and libraries. Not sure how to go about that yet.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

I'm gonna call this done for now. Only issue is Forge updating. I'm not sure how to go about finding all the information to update that JSON. We can open another issue if we find any problems or you'd like to suggest additional functionality.

from modpackdownloader.

Watchful1 avatar Watchful1 commented on June 9, 2024

The only other idea I can think of is somehow notifying the user when the forge version changes, so they can update it themselves in MultiMC.

from modpackdownloader.

Nincodedo avatar Nincodedo commented on June 9, 2024

I could log an error saying the Forge version of the pack is different than the currently installed one for this instance.

from modpackdownloader.

Watchful1 avatar Watchful1 commented on June 9, 2024

That would work.

from modpackdownloader.

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.