Jump to content

Command Line Interface - Join Server


WiseTime

Recommended Posts

Heya folks, first post on forum for-um 7 days to die, so hope this is correct place to post..

 

I searched in duckduckgo, I searched on this forum, I cant find instructions of the command line.

I am running a computer on my network as the server, and I want to run the client on my other computer.

As far as I understand for now, I disabled the, steam and eac and gamesparks on my client, it then wants to connect to steam on my client, or I dont have ability to multiplayer at all.

I tried to use LiteNetLib in the serverconfig.xml, but it says [NET] Disabling protocol: LiteNetLib when I run the server, and connects to, steam and gamesparks, some help on disabling these on the server would be great.

So and but, specifically, I want help to run the client, with a command line, that will directly connect to the server on my network, oh and im on linux, so for example:

 

 "7DaysToDie.x86_64 -connectserver 192.168.1.x:2456" or  "7DaysToDie.x86_64 -connectserver 192.168.1.x:2456 --nolookup"

 

There has to be some command for this? But also a page with all command lines (non-console) would be great. Or maybe it is done in some config file instead, info please.

 

ta.

Edited by WiseTime (see edit history)
Link to comment
Share on other sites

I'm not aware of a command line option to directly connect to a server, just start the client,  "Join a game" -> "Connect to IP" and enter the ip address of the server

 

Note that the option for network protocols is inverted in serverconfig.xml, so DO NOT list LiteNetLib in "ServerDisabledNetworkProtocols".

 

Also steam has to run on the client even if you use LiteNetLib, so if you start the game on the client on the command line, first start steam and keep it running in the background.

 

If you have further problems, please always post a link to a current logfile, the procedure is explained in a sticky thread in this forum section. Posting serverconfig.xml is also a good idea if you have connection problems

 

 

 

Link to comment
Share on other sites

Just make a web url shortcut. 

 

Steam Connect protocol serves this purpose just fine. 

 

steam://connect/68.41.181.46:26930

 

You can also use domain name if you own the site.

steam://connect/connect.mastersofchaosgaming.com:26910

 

And if your server has a password....

steam://connect/connect.mastersofchaosgaming.com:26910/pa$$w0Rd

 

As for disabling protocols, that's all defined in the config file, and has instructions. I only recommend disabling SteamNetworking when you have the ports forwarded properly, and LiteNetLib only for testing purposes. You will tank server network performance with LiteNetLib disabled.

 

 

Link to comment
Share on other sites

Thanks for the, speedy response and info.

 

o) "LiteNetLib"

-) I realize again that was to invert/disable, forgot, did know...was in "try anything" mode I guess..

 

o) "steam://connect/192.168.1.x:xxxxx"

-) I tried running this from terminal, "./steam://connect/192.168.1.4:26900" in the "steam/bin" directory and "./7DaysToDie.x86_64 steam://connect/192.168.1.4:26900" in the "7 Days To Die" directory , and it didn't work.

-) i did a web-search, it said something about putting it as a link on a webpage, but, then I would need to run a web browser? Maybe it works in windows as described, I dunno.

 

o) "I'm not aware of a command line option to directly connect to a server"

-) okay, fair enough, what I was beginning to believe.

-) are there some page with command lines for 7dtd, that, can be linked here, I would like to see what optimization options there are (for, client and/or server).

Edited by WiseTime (see edit history)
Link to comment
Share on other sites

o) If it works in the command line, I can make a shortcut, thereabouts:

-) if I can "one action" to join the server, then, its a lot less hassle to have, what is supposed, to be a offline game, being that, I have to start the dedicated server on the other computer, furthermore, im using a 10k map, and it takes aeons to load just by itself.

-) starting the dedicated server on the other computer, is done, in a single click and without steam and from a custom directory (can have different overhaul for each folder, that has a individual copy of the dedicated server, though, im guessing I will be instead having variations of "mods" folders, inside main folders).

 

o) question: why not just play upon the number of one of the  computers?

-) answer: parallel computing is faster under such condition as, dedicated server and client, on lan, for amd fm2+/intel 1155 level of hardwares, thereabouts, "valheim" works great under such conditions, was hoping "7DTD" would be similar circumstances.

Edited by WiseTime (see edit history)
Link to comment
Share on other sites

5 hours ago, WiseTime said:

o) If it works in the command line, I can make a shortcut, thereabouts:

-) if I can "one action" to join the server, then, its a lot less hassle to have, what is supposed, to be a offline game, being that, I have to start the dedicated server on the other computer, furthermore, im using a 10k map, and it takes aeons to load just by itself.

-) starting the dedicated server on the other computer, is done, in a single click and without steam and from a custom directory (can have different overhaul for each folder, that has a individual copy of the dedicated server, though, im guessing I will be instead having variations of "mods" folders, inside main folders).

You can make a desktop shortcut for the steam connect link. Any client arguments you need can be added in the Steam client. Using a 10k map shouldn't be an issue, or take forever to load if your hardware is up to snuff. 

 

What you're trying to achieve with the overhaul mods in different folders though, probably not possible even with adding them to Steam. You're just going to have to live with manually joining the servers on those clients.

5 hours ago, WiseTime said:

o) question: why not just play upon the number of one of the  computers?

-) answer: parallel computing is faster under such condition as, dedicated server and client, on lan, for amd fm2+/intel 1155 level of hardwares, thereabouts, "valheim" works great under such conditions, was hoping "7DTD" would be similar circumstances.

It's still not entirely clear what you're stating here. parallel computing would be using multiple PC's CPU's to run the server and split the resources into smaller chunks for processing.  AMD FM2+ barely scrapes the bottom-end for what is required to run this client. It is not really sufficient for a dedicated server.  LGA 1155 is much better in terms of meeting required specs, but will lag a bit with major overhauls if you don't have one of the top-end i7 chipsets. As far as I am aware, Parallel computing does not exist for either of those platforms natively on the consumer market. In the latter it would exist in the Xeon server lineup, but at least 2/3rds of those chips do not meet min spec.

 

If your server is taking exceptionally long to load, it's likely that is a result of being pretty far below spec.  Maybe you could be a little more detailed on what your hardware setup is, and what you are hoping to accomplish.  Based on what you've said so far, it sounds like you're trying to use two underpowered PC's to share the load of the client because neither meet the required hardware specifications to play the game.

Link to comment
Share on other sites

o) SylenThunder stated "You can make a desktop shortcut for the steam connect link"

-) Do you mean on, linux or windows, because my client is on "Ubuntu", I tried this advice already, yes steam is installed correctly, as far as I know doesnt work, even ran it from the "steam/bin" folder.

 

o) SylenThunder stated "you're trying to use two underpowered PC's to share the load of the client because neither meet the required hardware specifications to play the game".

-) I would call what im doing a form of "Parallel Computing", as, its not "Parallel Processing" and its not "Multiple Clients" and it is "Local" where the computers are next to each other, 2 computers in "Parallel", these are connected through short wires on a router, though if you said its "Server and Client", I'd say thats, true also and probably the more correct terminology.

-) If we are stating the term "Parallel Computing", to be only applicable to a "xeon" setup, then, I can also say the "Requirements", FYI my client pc does match the requirements, that are stated upon steam, as they are not very specific at all, and state, "64 bit" and "3.0 Ghz Quad Core CPU or faster" with "12GB ram", but, as for needing 4GB of ram on the graphics card...why? why? Where is the, tool to resize them or 1k/2k mods available. power usage and bus load and extra heat, just for bling i dont notice 90% of the time. A, unpacker-batch recursive texture resize-repacker version of a tool, would be a great tool to add into the "launcher".

 

o) SylenThunder stated "overhaul mods in different folders though, probably not possible".

-) It is, I done it now, maybe you didnt understand what im saying, "Mods1" "Mods2" etc or something more descriptive, creating variations of mods folders in the main dirs, then renaming them back to "Mods" to be active. The advantage being no neccessity for the rest of the data.

 

o) WiseTime stated "was hoping 7DTD would be the same".

-) Game is running pretty smooth now on this "Client and Server" setup, that is, now I got the textures on half, I was having the linux texture size bug, but managed to get round it, and posted how in the relating thread.

Edited by WiseTime (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...