Open xadox-1st opened 3 months ago
If I remember right, the libraries folder needs to be in the world folder. This allows for each world to have a separate set of libraries disconnected from the server setup. I think a soft link in the world folder to your current setup would also work.
ln -s /opt/mscs/server/forge-1.21.1-52.0.2/libraries /opt/mscs/worlds/WORLDNAME/libraries
If this is indeed the issue, we should update the documentation. If you feel comfortable submitting a patch for the documentation, I would appreciate it.
If I remember right, the libraries folder needs to be in the world folder. This allows for each world to have a separate set of libraries disconnected from the server setup. I think a soft link in the world folder to your current setup would also work.
ln -s /opt/mscs/server/forge-1.21.1-52.0.2/libraries /opt/mscs/worlds/WORLDNAME/libraries
If this is indeed the issue, we should update the documentation. If you feel comfortable submitting a patch for the documentation, I would appreciate it.
This fixed it for me - almost identical setup, just using mscs with debian lxc on proxmox. I also had to manually add /opt/mscs/server/forge-1.21.1-52.0.8/ before every forge-1.21.1-52.0.8-shim.jar reference. I retried the sed commands/deleted the files and reinstalled, cloned backups and ran each one individually.
I ended up adding it in two places:
/opt/mscs/server/forge-1.21.1-52.0.8/run.sh
java -jar forge-1.21.1-52.0.8-shim.jar --onlyCheckJava || exit 1
to
java -jar /opt/mscs/server/forge-1.21.1-52.0.8/forge-1.21.1-52.0.8-shim.jar --onlyCheckJava || exit 1
and
/opt/mscs/server/forge-1.21.1-52.0.8/libraries/net/minecraftforge/forge/1.21.1-52.0.8/unix_args.txt
-Djava.net.preferIPv6Addresses=system -jar forge-1.21.1-52.0.8-shim.jar
to
-Djava.net.preferIPv6Addresses=system -jar /opt/mscs/server/forge-1.21.1-52.0.8/forge-1.21.1-52.0.8-shim.jar
I will try to submit a documentation patch later, unless I see this issue close.
MSCS running in an Ubuntu 22.04.4 LTS LXC on Proxmox.
After setting up forge (tried several forge releases >=1.17.1) with the manual: https://minecraftservercontrol.github.io/docs/mscs/adjusting-world-server-properties/forge
I am not able to start the forge server. Most of the forge libraries can not be found. here is an snippet from the console.out:
All of the are under "/opt/mscs/server/forge-VERSION/libraries"
cat mscs.properties:
cat ../forge-1.21.1-52.0.2/libraries/net/minecraftforge/forge/1.21.1-52.0.3/unix_args.txt
-Djava.net.preferIPv6Addresses=system -jar /opt/mscs/server/forge-1.21.1-52.0.2/forge-1.21.1-52.0.3-shim.jar
cat run.sh