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

[FEATURE] Ability to specify different Valheim Plus forks #307

Open
miadadrashid opened this issue Nov 11, 2023 · 1 comment
Open

[FEATURE] Ability to specify different Valheim Plus forks #307

miadadrashid opened this issue Nov 11, 2023 · 1 comment
Labels
Feature Feature Request

Comments

@miadadrashid
Copy link

Is your feature request related to a problem? Please describe.
Yes. The current valheim plus version is broken. Grantapher has provided updates to valheim plus that works with the current version client side but this server script is still pointing to the old repo with broken files. I tried to modify the install_valheim_plus function with the new URLs but with no avail. Here is what I have so far in the script...

function install_valheim_plus() {
	clear
    echo ""
    if [ ! -f /usr/bin/unzip ]; then
    apt install unzip -y
    fi
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_CHANGING_DIR" ; tput setaf 9; 
    cd ${valheimInstallPath}/${worldname}
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_CHECKING_OLD_INSTALL" ; tput setaf 9; 
    [ -e UnixServer.zip ] && rm UnixServer.zip
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_DOWNLOADING_VALHEIM_PLUS_FROM_REPO" ; tput setaf 9; 
    curl -s https://api.github.com/repos/Grantapher/valheimPlus/releases/latest \
    | grep "browser_download_url.*UnixServerRenamed\.zip" \
    | cut -d ":" -f 2,3 | tr -d \" \
    | wget -P ${valheimInstallPath}/${worldname} -qi - 
    echo ""
    sleep 1
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_CREATING_VER_STAMP" ; tput setaf 9; 
    curl -sL https://api.github.com/repos/Grantapher/valheimPlus/releases/latest | grep '"tag_name":' | cut -d'"' -f4 > localValheimPlusVersion
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_UNPACKING_FILES" ; tput setaf 9; 
    unzip -o UnixServer.zip
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_REMOVING_OLD_BEPINEX_CONFIG" ; tput setaf 9; 
    [ ! -e start_game_bepinex.sh ] && rm start_game_bepinex.sh
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_BUILDING_NEW_BEPINEX_CONFIG" ; tput setaf 9; 
    build_start_server_bepinex_configuration_file
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_SETTING_STEAM_OWNERSHIP" ; tput setaf 9; 
    chown steam:steam -Rf /home/steam/*
    chmod +x start_server_bepinex.sh
    rm UnixServer.zip
    echo ""
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_GET_THEIR_VIKING_ON" ; tput setaf 9; 
    tput setaf 2; echo "$FUNCTION_VALHEIM_PLUS_INSTALL_LETS_GO" ; tput setaf 9; 
}

Describe the solution you'd like
Either we have an option to choose repos or that we update the njordmenu.sh with the new repo location for https://github.com/Grantapher/ValheimPlus/tree/0.9.10.0

Describe alternatives you've considered
I've tried to modify the script myself but I'm not well versed in shell scripting otherwise I would have put out a pull request myself

@miadadrashid miadadrashid added the Feature Feature Request label Nov 11, 2023
@sergey-jr
Copy link

i think its goo idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants