Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: FTB : Not Renaming The Server.jar #46

Open
oxygengamestudio opened this issue Dec 5, 2024 · 2 comments
Open

[Bug]: FTB : Not Renaming The Server.jar #46

oxygengamestudio opened this issue Dec 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@oxygengamestudio
Copy link

Panel Version

1.11.10

Wings Version

1.11.13

Service

Minecraft

Modified

No, I did not modify the egg

Expected Behavior

Install FTB Evolution , then launch server

Actual Behavior

The server refuses to start because it cannot find the file start-server.jar

I have analyzed my files and I notice that it has left the file with its default name : minecraft_server.1.21.1.jar

Steps To Reproduce

Search FTB Evolution 1.3.0
Launch the server

J'ai donc modifier un peu le script pour corriger le soucis en ajoutant minecraft-server.*.jar

function move_startup_files {
    # créer un lien symbolique pour forger unix_args.txt s'il existe
    if compgen -G « libraries/net/minecraftforge/forge/*/unix_args.txt » ; then
        ln -sf libraries/net/minecraftforge/forge/*/unix_args.txt unix_args.txt
    fi
    
    # créer un lien symbolique pour neoforge unix_args.txt s'il existe
    if compgen -G « libraries/net/neoforged/forge/*/unix_args.txt » ; then
        ln -sf libraries/net/neoforged/forge/*/unix_args.txt unix_args.txt
    fi
    
    # déplacer le fichier jar forge/neoforge/fabric vers start-server.jar s'il existe
    if compgen -G « forge-*.jar » ; then
        mv -f forge-*.jar start-server.jar
    elif compgen -G « fabric-*.jar » ; then
        mv -f fabric-*.jar start-server.jar
    elif compgen -G « minecraft_server.*.jar » ; then
        mv -f minecraft_server.*.jar start-server.jar
    fi
}

Install logs

None

@oxygengamestudio oxygengamestudio added the bug Something isn't working label Dec 5, 2024
@oxygengamestudio
Copy link
Author

After verification
I've just realized that it's not downloading neoforge.

I'm trying to find out why, but I'm not averse to your help.

@Jaykhanderay
Copy link

if compgen -G « minecraft_server.*.jar » ; then

mv -f minecraft_server.*.jar start-server.jar

Symbolic link for Forge

if compgen -G « libraries/net/minecraftforge/forge//unix_args.txt » ; then
ln -sf libraries/net/minecraftforge/forge/
/unix_args.txt unix_args.txt
fi

Symbolic link for NeoForge

if compgen -G « libraries/net/neoforged/forge//unix_args.txt » ; then
ln -sf libraries/net/neoforged/forge/
/unix_args.txt unix_args.txt
fi

#Renaming Other Server JARs: Additional logic ensures that forge-.jar and fabric-.jar are renamed to start-server.jar if they exist:

if compgen -G « forge-.jar » ; then
mv -f forge-
.jar start-server.jar
elif compgen -G « fabric-.jar » ; then
mv -f fabric-
.jar start-server.jar
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants