Gotteshand Posted February 2, 2021 Share Posted February 2, 2021 View File Valheim 1.1 Installation Server Config Download the config Go to TCAdmin > System > Settings > Game & Voice Hosting > Game & Other Voice Servers > Import Download the Serverfiles under Settings --> Game Tools --> Steam Game Downloader --> Valheim ATTENTION: Please choose a server password with at least 5 characters Features Minimal Savefile Fix Commandline Change ToDo´s - Submitter Gotteshand Submitted 02/02/21 Category Game Configs 2 Link to comment Share on other sites More sharing options...
horton Posted February 2, 2021 Share Posted February 2, 2021 Hi, a min or two after starting the server it gives me PID 0 https://gyazo.com/9f023ce6dd3d8bff8b011a47de769938?token=00318a1149cdd2f42c9d215443753e5d Link to comment Share on other sites More sharing options...
Gotteshand Posted February 2, 2021 Author Share Posted February 2, 2021 (edited) Hmm. Have you selected the command line and entered everything My server runs without problems since 18:40 How long is your password Edited February 2, 2021 by Gotteshand Link to comment Share on other sites More sharing options...
horton Posted February 2, 2021 Share Posted February 2, 2021 Yes I have it like this to test https://gyazo.com/3f89ec2d7148a2b99c9bd8859b265949 Link to comment Share on other sites More sharing options...
Gotteshand Posted February 2, 2021 Author Share Posted February 2, 2021 (edited) 2 minutes ago, horton said: Yes I have it like this to test https://gyazo.com/3f89ec2d7148a2b99c9bd8859b265949 Use a password with minimum than 5 characters Edited February 2, 2021 by Gotteshand Link to comment Share on other sites More sharing options...
horton Posted February 2, 2021 Share Posted February 2, 2021 Sorted thank you 1 Link to comment Share on other sites More sharing options...
Gotteshand Posted February 2, 2021 Author Share Posted February 2, 2021 Just now, horton said: Sorted thank you Have Fun Link to comment Share on other sites More sharing options...
conceptr980 Posted February 6, 2021 Share Posted February 6, 2021 (edited) I think you should set the config to run as "User per service" because the one you got "TCAGame" will create all worlds for all servers under C:\Users\TCAGame\AppData\LocalLow\IronGate\Valheim and windows will rename them to world1 or world2 .. etc once it starts duplicating and the startup paramater is set to world only. I totally understand its new game and lack of commands. what im thinking as well is to set Relative User Files to something like : Relative User Files: $[Service.UserDirectory]\AppData\LocalLow\IronGate\Valheim so the user would see the worlds in file manager instead of root folder which is completely useless at the moment. Note: i didnt test this method yet more than brainstorming the scenario Maybe @LFA could be handy in this scenario. Edited February 6, 2021 by conceptr980 Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 6, 2021 Share Posted February 6, 2021 I'm having an issue with the server stopping after it has been running for about 10 minutes. The console shows it is starting correctly and I can see the server is online but then after about 10 minutes the server stops. Anyone have an idea why this might happen? 1 Link to comment Share on other sites More sharing options...
jungleNZ Posted February 6, 2021 Share Posted February 6, 2021 18 minutes ago, crunkinshoe said: I'm having an issue with the server stopping after it has been running for about 10 minutes. The console shows it is starting correctly and I can see the server is online but then after about 10 minutes the server stops. Anyone have an idea why this might happen? Is it giving slots error? (Should be notification message in tcadmin panel) If so set player slots to 64. Otherwise if no error message not sure what it is doing. Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 6, 2021 Share Posted February 6, 2021 5 minutes ago, jungleNZ said: Is it giving slots error? (Should be notification message in tcadmin panel) If so set player slots to 64. Otherwise if no error message not sure what it is doing. Ahh yep that could be it. Thanks Jungle! Link to comment Share on other sites More sharing options...
Devour9784 Posted February 7, 2021 Share Posted February 7, 2021 Developers using the appdata folder for worlds has to be one of the dumbest decisions I've seen in a while. The worlds should be in the root directory of the game server. 1 Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 8, 2021 Share Posted February 8, 2021 On 2/6/2021 at 2:17 PM, conceptr980 said: I think you should set the config to run as "User per service" because the one you got "TCAGame" will create all worlds for all servers under C:\Users\TCAGame\AppData\LocalLow\IronGate\Valheim and windows will rename them to world1 or world2 .. etc once it starts duplicating and the startup paramater is set to world only. I totally understand its new game and lack of commands. what im thinking as well is to set Relative User Files to something like : Relative User Files: $[Service.UserDirectory]\AppData\LocalLow\IronGate\Valheim so the user would see the worlds in file manager instead of root folder which is completely useless at the moment. Note: i didnt test this method yet more than brainstorming the scenario Maybe @LFA could be handy in this scenario. $[Service.UserDirectory] would point to TCAFiles\Users and not the C:\Users\TCAGame_Svcxxxx folder that is needed. I tried setting the folder as C:\Users\TCAGame_Svc$[Service.ServiceID] however TCAdmin won't save saying its not a valid path. Link to comment Share on other sites More sharing options...
LFA Posted February 8, 2021 Share Posted February 8, 2021 This script for the after created event will create a Link named Worlds in the game server's root folder. mkdir C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim icacls "C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc%ThisService_ServiceId%" /T /L /C mklink /D %ThisService_RootDirectory%Worlds C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim icacls "C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc%ThisService_ServiceId%" /T /L /C icacls "%ThisService_RootDirectory%Worlds" /setowner "TCAGame_Svc%ThisService_ServiceId%" /L You also need to add this to the master and remote's TCAdmin2\Monitor\Override.config and restart the monitor so it allows symlinks in that path. Without this you won't be able to see the files in FTP and file manager. <add key="AllowedLinkPaths" value="C:\Users\*\AppData\LocalLow\IronGate\Valheim" type="System.String,mscorlib" /> 1 Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 8, 2021 Share Posted February 8, 2021 2 hours ago, LFA said: This script for the after created event will create a Link named Worlds in the game server's root folder. mkdir C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim icacls "C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc%ThisService_ServiceId%" /T /L /C mklink /D %ThisService_RootDirectory%Worlds C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim icacls "C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc%ThisService_ServiceId%" /T /L /C icacls "%ThisService_RootDirectory%Worlds" /setowner "TCAGame_Svc%ThisService_ServiceId%" /L You also need to add this to the master and remote's TCAdmin2\Monitor\Override.config and restart the monitor so it allows symlinks in that path. Without this you won't be able to see the files in FTP and file manager. <add key="AllowedLinkPaths" value="C:\Users\*\AppData\LocalLow\IronGate\Valheim" type="System.String,mscorlib" /> One little issue. If you make the Worlds folder before starting the server, the game assigns a new folder upon startup i.e. TCAGame_Svcxxxx.WIN-ComputerName. I am assuming the mkdir is required in order to initiate the link. Could we then delete that directory at the end of the script and let the server populate the folder upon startup? Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 8, 2021 Share Posted February 8, 2021 mkdir C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim icacls "C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc%ThisService_ServiceId%" /T /L /C mklink /D %ThisService_RootDirectory%Worlds C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim icacls "C:\Users\TCAGame_Svc%ThisService_ServiceId%\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc%ThisService_ServiceId%" /T /L /C icacls "%ThisService_RootDirectory%Worlds" /setowner "TCAGame_Svc%ThisService_ServiceId%" /L rmdir /s /q C:\Users\TCAGame_Svc%ThisService_ServiceId% I just tested and the above script seems to do the trick. Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 8, 2021 Share Posted February 8, 2021 (edited) I am getting this error when trying to create a new service when using the script: Could not find a part of the path 'C:\TCAFiles\Users\Admin\3493\Worlds'. Edited February 8, 2021 by crunkinshoe Link to comment Share on other sites More sharing options...
Spillvert.no Posted February 8, 2021 Share Posted February 8, 2021 (edited) So wait. No way to override the world save path in the command line for this title? Only fix is to link from appdata to the server root dir as of right now? Edit: Checking with devs... Edited February 8, 2021 by Spillvert.no 1 Link to comment Share on other sites More sharing options...
Devour9784 Posted February 8, 2021 Share Posted February 8, 2021 1 hour ago, Spillvert.no said: So wait. No way to override the world save path in the command line for this title? Only fix is to link from appdata to the server root dir as of right now? Edit: Checking with devs... I just finished speaking with them, it looks like we're gonna end up with a command line parameter to set the local directory for worlds instead of appdata. 3 Link to comment Share on other sites More sharing options...
Spillvert.no Posted February 8, 2021 Share Posted February 8, 2021 1 hour ago, Devour9784 said: I just finished speaking with them, it looks like we're gonna end up with a command line parameter to set the local directory for worlds instead of appdata. Got the same response. Will update this thread as soon as I know more. Hope you will do the same Link to comment Share on other sites More sharing options...
LFA Posted February 9, 2021 Share Posted February 9, 2021 This updated script gets the user's real profile path in case windows adds .000 to the folder. Change the script engine to powershell. $serviceid=$ThisService.ServiceId $root=$ThisService.RootDirectory $name="TCAGame_Svc$serviceid" $sid=(New-Object System.Security.Principal.NTAccount($name)).Translate([System.Security.Principal.SecurityIdentifier]).value $profilepath = (Get-WmiObject -ComputerName . -Class win32_userprofile -filter "sid='$sid'" | Select-Object -ExpandProperty localpath) mkdir $profilepath\AppData\LocalLow\IronGate\Valheim icacls "$profilepath\AppData\LocalLow\IronGate\Valheim" /setowner "TCAGame_Svc$serviceid" /T /L /C New-Item -ItemType SymbolicLink -Path "${root}Worlds" -Target "$profilepath\AppData\LocalLow\IronGate\Valheim" icacls "$profilepath" /setowner "TCAGame_Svc$serviceid" /T /L /C icacls "${root}Worlds" /setowner "TCAGame_Svc$serviceid" /L write-host $profilepath\AppData\LocalLow\IronGate\Valheim 1 Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 9, 2021 Share Posted February 9, 2021 I'm not seeing any Worlds folder in the root with the new script. Link to comment Share on other sites More sharing options...
markmorris1 Posted February 9, 2021 Share Posted February 9, 2021 You said you spoken to dev, but just being on discord to ask the question and you can change the path. Using environment var XDG_CONFIG_HOME. Link to comment Share on other sites More sharing options...
Spillvert.no Posted February 9, 2021 Share Posted February 9, 2021 43 minutes ago, markmorris1 said: You said you spoken to dev, but just being on discord to ask the question and you can change the path. Using environment var XDG_CONFIG_HOME. I guess this only applies to Linux environments? Link to comment Share on other sites More sharing options...
markmorris1 Posted February 9, 2021 Share Posted February 9, 2021 (edited) No you can add a environment var to Windows too. A quick google, this has been confirmed to work. I will try around 6PM tonight, im at work right now. If you get it working, please share. Edited February 9, 2021 by markmorris1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now