jar naming in the modpacks

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

d3scr1pt0r

New Member
Jul 29, 2019
4
0
0
Hi,
I am trying to build a website where people can generate a linux script to deploy your modpacks (http://customdroplet.com/minecraftftb.php)
I see incosistencies inside the zip file , like the jar file, some files it is FTBServer-1.6.4-965.jar sometimes is ftbserver.jar

Can you standardize that ? or is there a list I can see without downloading all the modpacks just to see what is inside the zip ?

:)
 

Bibble

New Member
Jul 29, 2019
1,089
0
0
Given that the server packs usually come with ServerStart scripts (batch and bash), would it not be easier to either run those, or to parse those for the filename?
 

d3scr1pt0r

New Member
Jul 29, 2019
4
0
0
hm, my script generates this output (customizing the url and the username) :

Code:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16; sudo mkswap /swapfile; sudo swapon /swapfile
sudo apt-get update
sudo apt-get install default-jdk -y
sudo apt-get install screen -y
sudo apt-get install unzip -y
sudo mkdir minecraft
cd minecraft
wget http://www.creeperrepo.net/FTB2/modpacks%5EUltimate%5E1_1_2%5EUltimate_Server.zip -O minecraft.zip
sudo unzip minecraft.zip
sudo rm minecraft.zip
sudo rm ServerStartCustom.sh
sudo rm /etc/init.d/MinecraftStart.sh
echo "cd /root/minecraft/
screen -d -m java -Xmx1500M -Xms1500M -jar ftbserver.jar nogui" | tee -a ServerStartCustom.sh
sudo chmod u+x ServerStartCustom.sh
sudo cp /root/minecraft/ServerStartCustom.sh /etc/init.d/MinecraftStart.sh
sudo chmod u+x /etc/init.d/MinecraftStart.sh
cd /etc/init.d/
sudo update-rc.d MinecraftStart.sh defaults
echo "d3scr1pt0r" >> /root/minecraft/ops.txt
shutdown -r now

This line is the one that calls the jar file :
Code:
screen -d -m java -Xmx1500M -Xms1500M -jar ftbserver.jar nogui" | tee -a ServerStartCustom.sh