Comments (14)
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.
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.
Oops. I'll have to grab the project ID from the JSON I guess. I need that for downloading.
from modpackdownloader.
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.
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.
If you go to a pack and click View on Curse, it goes to a URL with the project ID usually.
from modpackdownloader.
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.
Ah, fair enough.
from modpackdownloader.
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.
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.
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.
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.
I could log an error saying the Forge version of the pack is different than the currently installed one for this instance.
from modpackdownloader.
That would work.
from modpackdownloader.
Related Issues (20)
- Fix mod updating
- Issues downloading mods if their jar files has spaces in the filename HOT 7
- unable to download pam's harvestcraft HOT 1
- Error on startup HOT 1
- [Feature Request] Argument to disable the log
- Gui: JavaFX runtime components are missing
- Resourcepacks get downloaded to the mods directory
- The latest version fails with HTTP response code: 504 HOT 2
- Couldn't download mod HOT 1
- Java 8u131 Crash? HOT 5
- All downloads getting either connection reset or time out HOT 3
- Add a way to merge multiple manifests for building Curse modpacks
- downloader does not find modpack on curse/ftb HOT 2
- Update GUI's progress bar to actually progress when downloading mods HOT 9
- External 503 causing test failures HOT 4
- Enhanced log for 3rd world countries HOT 2
- Build Information HOT 1
- Error: Error: Invalid or corrupt jarfile ModpackDownloader-gui-0.5.2.325.jar HOT 2
- Curse update broke ModpackDownloader HOT 1
- CLI crashes with NullPointerException (0.5.3) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modpackdownloader.