Spillvert.no Posted February 9, 2021 Share Posted February 9, 2021 (edited) 2 hours ago, markmorris1 said: 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. We won't be taking this route as we will be waiting for the commandline parameter to set the world path, but please share your results after testing Edited February 9, 2021 by Spillvert.no high latency between brain and fingers Link to comment Share on other sites More sharing options...
markmorris1 Posted February 9, 2021 Share Posted February 9, 2021 1 minute ago, Spillvert.no said: We won't be taking this route as we will be waiting for the commandline parameter to set the world path. Yeah its not the best and i dont personally like it. Having a command line option would be loads better, but i doubt they will add it now if its not already there. Seems like a common sense thing to do. Even when i wrote my own small game, the server had the ability to change data path. I'm still hopeful though. Link to comment Share on other sites More sharing options...
KnightHawk201 Posted February 10, 2021 Share Posted February 10, 2021 -savedir has been added by the devs. Link to comment Share on other sites More sharing options...
conceptr980 Posted February 10, 2021 Share Posted February 10, 2021 I saw that in their recent patch changelog today. Does anyone tested the commandline with -savedir and share it ?? -savedir $[Service.RootDirectory]\world_name or ??? Â Link to comment Share on other sites More sharing options...
XenoNFNO Posted February 10, 2021 Share Posted February 10, 2021 Anyone has a script for backing up the "worlds" folder on AfterStopped event? Whatever I've done, the script I have won't create backups folder. However, that same script, when set to "Custom Icon" event works flawlessly. Link to comment Share on other sites More sharing options...
conceptr980 Posted February 10, 2021 Share Posted February 10, 2021 (edited) I tested the new command -savedir and added it to this config and its pretty much straight forward, here it is: -nographics -batchmode -name "$[HostName]" -port $[Service.GamePort] -savedir $[Service.RootDirectory]Saved -world "![World]" -password "secret" -public ![Public] I used a folder called saved so it wont mess the game root with the saved worlds ... etc I hope that help Edited February 10, 2021 by conceptr980 1 Link to comment Share on other sites More sharing options...
Jimmy-CS Posted February 10, 2021 Share Posted February 10, 2021 (edited) 7 hours ago, conceptr980 said: I saw that in their recent patch changelog today. Does anyone tested the commandline with -savedir and share it ?? -savedir $[Service.RootDirectory]\world_name or ??? Savedir works for us, I just have it set to the game server's root path and it's been working. It throws the worlds folder right into the game server's root directory so it's easily accessed by customers. Edited February 10, 2021 by Jimmy-CS Link to comment Share on other sites More sharing options...
horton Posted February 10, 2021 Share Posted February 10, 2021 Any idea how to run multiple servers of this game without them breaking? Link to comment Share on other sites More sharing options...
Jimmy-CS Posted February 11, 2021 Share Posted February 11, 2021 2 hours ago, horton said: Any idea how to run multiple servers of this game without them breaking? Just change the port number? No issues so far using TCAdmin to launch the shell file. What issues are you having? Link to comment Share on other sites More sharing options...
horton Posted February 11, 2021 Share Posted February 11, 2021 The first server created works fine without any issues but as soon as I made the second one it goes to pid 0. the port is open and the commandline is fine so not really sure what could cause this. Link to comment Share on other sites More sharing options...
markmorris1 Posted February 11, 2021 Share Posted February 11, 2021 Yeah starting two servers for me is on a crash loop not found why yet. But whatever server i startup 2nd it crashes. Link to comment Share on other sites More sharing options...
markmorris1 Posted February 11, 2021 Share Posted February 11, 2021 So actually TCAdmin behaives very strange, Load first server no problems (regardless of which server i start first) however the 2nd server i load, will show the hostname of the 1st server in my panel, just note PORTS are different. Link to comment Share on other sites More sharing options...
markmorris1 Posted February 11, 2021 Share Posted February 11, 2021 Okay, so figured it out. PORT is HARD CODED on command line. Link to comment Share on other sites More sharing options...
LFA Posted February 11, 2021 Share Posted February 11, 2021 On 2/9/2021 at 6:09 AM, markmorris1 said: 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. Start it with a batch file. valheim_server.bat: set XDG_CONFIG_HOME=%CD%\Worlds valheim_server.exe %*  Link to comment Share on other sites More sharing options...
markmorris1 Posted February 11, 2021 Share Posted February 11, 2021 No longer needed, there is now a command line option in the latest update. -savedir "PATH" Link to comment Share on other sites More sharing options...
numpty Posted February 11, 2021 Share Posted February 11, 2021 i have ran the serve manuially but its showing 64 slots not 10 how can i fix this. i have made sure password is correct by adding 12345 123456 nd lol123 to test and still nothing same with TCAdmin loads fine shows in server lst with steam but not in game itself and steam shows 64 slots Link to comment Share on other sites More sharing options...
jungleNZ Posted February 11, 2021 Share Posted February 11, 2021 1 hour ago, numpty said: i have ran the serve manuially but its showing 64 slots not 10 how can i fix this. i have made sure password is correct by adding 12345 123456 nd lol123 to test and still nothing same with TCAdmin loads fine shows in server lst with steam but not in game itself and steam shows 64 slots I believe it is a bug their end. My servers would crash if slots set to 10, had to put max at 64, then had default at 10. This also stop the game crashing 5 mins into running (always had error that slots had been changed) Â Link to comment Share on other sites More sharing options...
numpty Posted February 11, 2021 Share Posted February 11, 2021 I believe it is a bug their end. My servers would crash if slots set to 10, had to put max at 64, then had default at 10. This also stop the game crashing 5 mins into running (always had error that slots had been changed) Â Thx will give a try. ThxSent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Jimmy-CS Posted February 12, 2021 Share Posted February 12, 2021 Can confirm, the 64 slots appearing on TCA and Steam protocols are bugs.. the servers in-game only show 10 slots. Link to comment Share on other sites More sharing options...
crunkinshoe Posted February 12, 2021 Share Posted February 12, 2021 There is no way to set the IP correct? Only runs on primary IP? Link to comment Share on other sites More sharing options...
numpty Posted February 12, 2021 Share Posted February 12, 2021 There is no way to set the IP correct? Only runs on primary IP?No there is not. Let's need to add a -ip protocol Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Spillvert.no Posted February 12, 2021 Share Posted February 12, 2021 Anyone else seeing a issue where changes to the commandline parameters on a server is not read by the server? The initial settings will be used, but if trying to change worldname / servername on a server that has gone full cycle, the server will still start with the old name and worldname. E.g You are staring a brand new server with parameters: -name "MyServer1" -world "MyServer1" Then stop the server and change the startup parameters to: -name "MyServer2" -world "MyServer2" After the server has started, it still runs the world MyServer1 (no MyServer2 world file is even created) and the name is still MyServer1 ? If running the server from a bat file, however, and make the same changes to that bat file - the changes are read every time. I fail to see the logic here. Link to comment Share on other sites More sharing options...
Smolf Posted February 12, 2021 Share Posted February 12, 2021 Hi. Can you please type the command line, and what port we can use to this?:) Link to comment Share on other sites More sharing options...
Smolf Posted February 13, 2021 Share Posted February 13, 2021 How to add log, to see whats going on with the server? Link to comment Share on other sites More sharing options...
numpty Posted February 13, 2021 Share Posted February 13, 2021 39 minutes ago, Smolf said: How to add log, to see whats going on with the server? No way as yet. As server doesn't create log file. 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