mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 22:25:59 +03:00
[GH-ISSUE #3287] [FEATURE] Mod Integration Valheim Server #2273
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tiberius1OOO on GitHub (Feb 19, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3287
User Story
I want the LinuxGSM script to be able to start the Unity Mod Container/Wrapper that one can use to add Mods to the server.
Link to the container:
// https://github.com/BepInEx/BepInEx //
Link to a mod that also integrates the correct version of the container
// https://github.com/nxPublic/ValheimPlus //
Basic info
Further Information
The above container is basically a standart tool to load mods into unity, this tool can be used to load a various amount of mods and integrate them into the binary via inject.
The binary loads the game server which is obviously not something linuxgsm would allow since GSM is a container in and on itself.
It would be amazing if that would be added since this would change a lot and would lift LinuxGSM apart from any free hoster and maybe more people would not only use LinuxGSM but would also learn to understand how linux works.
Further Reading
Link to the container:
// https://github.com/BepInEx/BepInEx //
Link to a mod that also integrates the correct version of the container
// https://github.com/nxPublic/ValheimPlus //
@paddywaan commented on GitHub (Feb 22, 2021):
P.S atleast for valheim, it is required to replace the core library dll's with unstripped versions in order for bepinex to run correctly. They can be acquired via: https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/ under the
corlibdirectory.After attempting to get an lgsm instance to execute ~/run_bepinex.sh, which in turn was executing its patchers and chainloaders before finally executing
valheim_server.x86_64 $@, i discovered that lgsm was unable to run the .sh directly. At this point I'm out of my depth with bash and would ideally wish for some form of official implementation by lgsm to incorporate the bepinex modloader for unity titles.@yolst commented on GitHub (Feb 22, 2021):
I would love to see this, too. For now, is there any workaround to load the bepinex mods with the steamCMD server?
@Rsslone commented on GitHub (Feb 23, 2021):
So I think I figured out what block of script needs to be amended but I'm not sure where the actual startup of the server happens, anyone know where to paste this?
@X3ph1s commented on GitHub (Feb 24, 2021):
The closest I could get it to running was by copying the contents of run_Bepinex.sh to the common.cfg in the lgsm config folder, or directing it to the bepinex.sh from there. I've gotten it to run even but no monitoring or interaction.
@Rsslone commented on GitHub (Feb 24, 2021):
Yeah it seems like the best solution I've got is to just install the unix version of bepinex that is hosted on valheim plus mod page / github and run it from their own start script.
@X3ph1s commented on GitHub (Feb 24, 2021):
The new version of V+ has a deprecated script that doesn't force executable, I'm still installing it but it looks like you can point it to the lgsm start.sh file
@paulvilla commented on GitHub (Feb 26, 2021):
I would also like it to be implemented in the lgsm script by default because it is a very good way to add mods
@Twanislas commented on GitHub (Feb 26, 2021):
Hi there !
I'm trying to do that too, to no avail, here's my progress so far, hope it helps ;)
serverfilesfolderLet me know if any other info would be useful.
Cheers, and thanks for LinuxGSM, it's awesome !
@dertexaner85 commented on GitHub (Feb 26, 2021):
I can't test right now
The only way I can think of that would make it work at the moment would be:
add line in /lgsm/config-default/config-lgsm/vhserver/vhserver.cfg
executable="<your_install_folder>/serverfiles/start_server_bepinex.sh"@Twanislas commented on GitHub (Feb 26, 2021):
Oooooh thanks a lot @dertexaner85, I wonder why I did not think about doing it this way !?
start_server_bepinex.shand replace the arguments of Valheim executable with$@so the last line looks like this :exec ./valheim_server.x86_64 $@executable="./start_server_bepinex.sh"to your your vhserver.cfg@Rsslone commented on GitHub (Feb 26, 2021):
Indeed, the above solutions work, thank you!
Just to clarify a possible error, since I don't know if that is valid or not but the script works without the
exec. I just commented out the arguments and added the modification as proposed. Example below for anyone reading.@gOOvER commented on GitHub (Feb 26, 2021):
The Valheim Server is btw Steam App ID 896660 (https://steamdb.info/app/896660/) and not 892970
@Rsslone commented on GitHub (Feb 26, 2021):
That AppID is correct, if you use 896660 the server will crash.
@paulvilla commented on GitHub (Feb 27, 2021):
I have followed the steps as you said and I can't get it to have a normal file load.
You could explain step by step how to implement it, because there is something I am doing wrong.
Thank you
@xaenerys0 commented on GitHub (Feb 27, 2021):
@paulvilla Here are the steps I took to get it to load and run correctly from a fresh install of LGSM:
Basically, the steps provided by @dertexaner85.
@paulvilla commented on GitHub (Feb 28, 2021):
@atipper I have done as you say and it seems to be fine, I have not been able to activate the client version verification in the configurations because it told me that I did not have the latest version (I do have it)
But I see the following error that at the moment nothing happens because people enter with the IP but in the search engine the server looks bad the name
I have a question, in the logs it is normal for this to appear, from what I see if it loads the mod, but I'm worried:
In logs it is normal for this to appear

this is the file below, if it seems to load but from the original game folder

Thanks for the help to all guys
@dertexaner85 commented on GitHub (Mar 1, 2021):
@paulvilla
Did you use the "valheim" version of bepinex with the unstripped Unity + Mono BCL DLLs ?
https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/
@Budman17r commented on GitHub (Mar 4, 2021):
so on centos 8 I had to do
@wakcjob commented on GitHub (Mar 4, 2021):
Adding to what @dertexaner85 said:
If your server name has a space, or spaces, in it you will need to add quotes around the $@ in your start_server_bepinex.sh
exec ./valheim_server.x86_64 "$@"@ghost commented on GitHub (Mar 4, 2021):
Where do you download UnixServer.zip?
When I download the mod from https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/, I get the folder "denikson-BepInExPack_Valheim-5.4.701", but that doesn't contain any UnixServer.zip?
@Rsslone commented on GitHub (Mar 4, 2021):
@WonderingDane
1- that's not the latest version (It just updated)
2- that's the correct files you need, simply follow the steps. You don't extract a "UnixServer.zip" you're extracting the contents of the archive to /home/vhserver/serverfiles/ ie. these files should be inside that dir https://i.imgur.com/KMKCgjK.png
@xaenerys0 commented on GitHub (Mar 4, 2021):
@WonderingDane I was referring to Valheim Plus which includes a copy of BepInEx (whether or not that is up to date I am not sure).
@h3o66 commented on GitHub (Mar 7, 2021):
I made now a inital integration for ValheimPlus, if anyone got a test server, feel free to test.
See the connected PR
@Tiberius1OOO commented on GitHub (Mar 7, 2021):
how dose this work? and how do I integrate this now? there is only the LINUX GSm doc linked and I have never used Githup before this is not helping me saddly at all and I have the feeling that if this feature request will be closed this will never get added.
@Rsslone commented on GitHub (Mar 7, 2021):
I'm only a half baked user, but what I believe is going on here is they're asking for testers to manually grab the PR (Pull Request) and test it on a test server. I'd probably recommend following our instructions above, as it might be easier to do since you're only messing around with the game server files and one config file, the PR would have you mess with your LGSM install.
I.E be patient, people are hard at work to make it happen, and look out for the feature request to close, due to being implemented.
@Tiberius1OOO commented on GitHub (Mar 8, 2021):
Ahh thank you so much. Yeah as someone how only kows a bit about programing and nothing else this was super confusing I just realized stack overflow was a thing 6 month ago.. still discovering everything. Thanks so much for clearig up that confusion ^^
@Zxurian commented on GitHub (Mar 10, 2021):
A heads up to anyone finding there way here, and for @h3o66 with the pull request. It looks like one of the recent updates for V+ is parsing the arguments on the command line, so step 3 in those instructions actually doesn't run the arguments. Just skip step 3 entirely and the
start_server_bepinex.shwill auto parse the arguments provided to it.@Batch381 commented on GitHub (Mar 11, 2021):
Anyone else getting the "incompatible version" after doing this?
@jjones18 commented on GitHub (Mar 12, 2021):
I am and i can't seem to figure out why. i tested it and it's still loading vanilla valheim. i've followed all the directions perfectly and on the main valheim plus site for unix servers.
@Caffeinedesign commented on GitHub (Mar 12, 2021):
i just installed it on my server, followed @atipper steps and made it working (i think, cause it connects and prompts for password), but have incompatible version error :(
@Caffeinedesign commented on GitHub (Mar 12, 2021):
update:
my server is
my steam client build is : 6315970
could be the problem?
@Caffeinedesign commented on GitHub (Mar 12, 2021):
i installed on server the nexusmods version of plus and it seems to work, i connect to server and it takes my plus data (i tried to set backpack weight to 500 in my client plus and i have 500 on server)
i have also set this:
; This settings add a version control check to make sure that people that try to join your game or the server you try to join has V+ installed
enforceMod=false
@Batch381 commented on GitHub (Mar 13, 2021):
I can confirm this, I have found this from somewhere else but @Caffeinedesign beat me to it here :D
changing "enforceMod" to false fixed this issue of the "Incompatible version" for me
@Tiberius1OOO commented on GitHub (Mar 13, 2021):
NO NEVER DO THAT!
never change that that means player can set up whatever they want!
this is a problem with the mod and not the game client, you guys should have read the FAQ and HOW TO INSTALL V+ because you need the same configurations what you basically did was giving your users the posibility to give themself admin rights on there server by editing the config files.
Normaly you edit the config file and copy paste these to the client and BOOM the error message is gone cuz nobody cheats now.
But this should not belong here this shoul dbelong in the valheim + discord or on the github to valheim +
@Caffeinedesign commented on GitHub (Mar 13, 2021):
For now my server is private, and probably i'll use It only for friends, and... I have set It to false in client not in server 😅
@Cave-Johnson commented on GitHub (Mar 20, 2021):
Using the previous version of
start_server_bepinex.shfrom stable 0.9 (https://github.com/valheimPlus/ValheimPlus/releases/download/0.9/UnixServer.tar.gz) still works with the updated version of the mod.Seems they have changed the way the script parses options so adding $@ doesn't work the same way as before and the server isn't loading the mod correctly
@Zxurian commented on GitHub (Mar 20, 2021):
V+ moderators just merged my pull request so with their next push it will work transparently with lgsm (which I also use) without any modification needed from the lgsm side for start parameters.
@shadowdogg commented on GitHub (Mar 20, 2021):
Can you please detail it here for the rest of us.
@Cave-Johnson commented on GitHub (Mar 20, 2021):
Yes please link here, interested to see the details!
Thanks for your work to get this supported properly
@Zxurian commented on GitHub (Mar 20, 2021):
link to PR: https://github.com/valheimPlus/ValheimPlus/pull/378
@shadowdogg commented on GitHub (Mar 21, 2021):
Works perfectly. Thanks
@valheimplayer commented on GitHub (Mar 21, 2021):
Can someone post a step-by-step summary of what to do as of now? Very much appreciated!
@zayadur commented on GitHub (May 19, 2021):
@h3o66 https://github.com/GameServerManagers/LinuxGSM/issues/3287#issuecomment-792275858
Implemented these changes and tested it. So far so good. Thank you kindly!
@github-actions[bot] commented on GitHub (Sep 27, 2022):
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.