hexparrot / mineos-node

node.js implementation of mineos minecraft management
GNU General Public License v3.0
330 stars 162 forks source link

FTB modpacks outdated #383

Open mattk926 opened 3 years ago

mattk926 commented 3 years ago

FTB modpacks are no longer updated on the old xml file. Can this functionality be updated for the new API to keep ftb modpacks up to date without manually installing them?

The xml is outdated for FTB modpacks: https://dist.creeper.host/FTB2/static/modpacks.xml

This is the new way for modpack listings from what I was told: https://api.modpacks.ch/public/modpack/all

Kiggerbare commented 3 years ago

Ahh, that's why I cant find the new direwolf20 pack.

You mention you can install them manually Got a link to somewhere that tells how to do that? I guess I can do it that way for now.

mattk926 commented 3 years ago

I just pulled down their "server file" which is just a script that runs and you select which modpack server to download in cli and then it downloads all the files. Then you have to run the installer .jar and then select from the web interface the forge jar that the installer creates when it runs. also want to set the java variables correctly as well.

Kiggerbare commented 3 years ago

Okay so say this is the one I want to install in MineOS.

  1. I download the server file.
  2. Put it in a random folder for itself, it runs and downloads all the files.
  3. Then it gets a little fuzzy, I got these files now image

Where did you say I should go from here?

mattk926 commented 3 years ago

I ran the installer inside the server folder you will likely want to run the start.bat manually to verify that it is working correctly. once you know the server works then in the web interface you can specify that forge.jar as the jar file to run.

image

Nio9345 commented 3 years ago

I can't seem to make it work. What I do: 1)I download the server file from FTB App, the "Linux" option. 2)I copy it on a folder that I made from within MineOS with "Create new server" 3)I open an ssh terminal to my docker image, since I use UNRaid 4)I make it executable with chmod e+x and then ./filename 5)It runs fine and downloads all the necessary files 6)MineOS still doesn't show the .jar file in its list of available jar files on my server settings

What do I do wrong?

mattk926 commented 3 years ago

I can't seem to make it work. What I do: 1)I download the server file from FTB App, the "Linux" option. 2)I copy it on a folder that I made from within MineOS with "Create new server" 3)I open an ssh terminal to my docker image, since I use UNRaid 4)I make it executable with chmod e+x and then ./filename 5)It runs fine and downloads all the necessary files 6)MineOS still doesn't show the .jar file in its list of available jar files on my server settings

What do I do wrong?

Are you running the downloader and telling it to put the files in your server folder? something like /var/games/minecraft/servers/SERVERNAME/

also you will want to make sure you run that installer as the user that owns all those files in the server so the permissions are good. if you do a ls -l and see the user:group is different then you may need to chown to the proper user:group

Kiggerbare commented 3 years ago

I also never got it working, until 10 min. ago. I think I was close at times but just never got it working. What I did was have a friend set up the server for me on his "normal" server, then export it, and I imported it into MineOS, and then it works (At least I think so like I said only 10 min. or so ago since it got it up, so still need to join it).

Edit: But thank you for the help Matt. :)

Nio9345 commented 3 years ago

I tried chmod and chown on the install file and later on the downloaded files and I still can't make the jar file appear on "change runnable jar file" list.

My folder is at /var/games/minecraft/servers/ with the name "test"

Captureddfh

mattk926 commented 3 years ago

I tried chmod and chown on the install file and later on the downloaded files and I still can't make the jar file appear on "change runnable jar file" list.

My folder is at /var/games/minecraft/servers/ with the name "test"

Captureddfh

  1. you still have folders/files which are owned by root. might want to recursively chown all of the files/folders in this test folder.
  2. I've noticed that I have to actually say log out and log in to actually have the webinterface refresh that list of .jar's available try that.
Nio9345 commented 3 years ago

Nope. still doesn't show up

Silverpikachu1 commented 3 years ago

have we found a work around for this issue? Is there even a way to manually update the XML so I don't have to manually update the server?

mattk926 commented 3 years ago

I don't believe there is a way to update the xml file as it is just hosted on the webserver. The curators aren't updating it anymore and we will need someone to update the scraping method to the new sources, unfortunately doesn't appear to be an xml file on the new source.

On Fri, Mar 5, 2021, 4:21 PM Silverpikachu1 notifications@github.com wrote:

have we found a work around for this issue? Is there even a way to manually update the XML so I don't have to manually update the server?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hexparrot/mineos-node/issues/383#issuecomment-791748753, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5RDBQGONRXKVUXUR3AG3LTCFKNHANCNFSM4VIQCUJQ .

flareofghast commented 3 years ago

I have looked at the code and the structure of the new API they’ve provided. It will be terribly inefficient to fetch the details. In my pull request I’ve separated the profiles into individual, dynamically loaded files. Which should make adding new profiles easier in the future. It might be best to include a (no)sql database for profiles and their data and the update can occur periodically in the background instead of on each load.

pyrebuilder commented 1 year ago

With the newest FTB packs, there appears to be no runnable .jar file at all. The forge installer doesn't create a universal file, it creates a bunch of other folders and the start.sh script then calls them without a runnable jar in the root server folder. This might have something to do with fixing the Log4j exploit?