Jump to content

Dedicated Server Quick Setup Guide - Linux


Recommended Posts

34 minutes ago, bizziboi said:

That's normal, there is no 64 bit version. You probably had to install the libs because the system didn't have the 32 bit versions available.

Right, didnt notice :386, do you see anything strange in log, is there anything else I can check?

Link to comment
Share on other sites

On 26.11.2019 at 11:26 PM, bizziboi said:

Hmmmm, I'll do some asking around to see if anyone has better ideas than me.

Do you happen to know other people running Debian 9?

Well, we change the server. So I got another question.
Is this config alright? I can go into cave and when I leave, I have message "connecting", then "loading" and puff - application doesn't answer. I need to close the window with the game and just log into game again. 


 

MASTER ------------------------
cluster.ini:
[NETWORK]
cluster_name =  ...
cluster_description = ...
cluster_intention = cooperative
cluster_password = ...

[GAMEPLAY]
max_players = 6
pause_when_empty = true

[SHARD]
shard_enabled = true

--
server.ini:
[NETWORK]
server_port = 10999


[SHARD]
is_master = true
bind_ip = 0.0.0.0
master_ip = overworld
cluster_key = random-secret-key
name = overworld


[ACCOUNT]
encode_user_path = true


CAVES -------------------------
cluster.ini:
[NETWORK]
cluster_name =  ...
cluster_description = ...
cluster_password = ...

[SHARD]
shard_enabled = true

--
server.ini:
[NETWORK]
server_port = 11000


[SHARD]
is_master = false
bind_ip = 0.0.0.0
master_ip = overworld
cluster_key = random-secret-key
name = underworld
id = 2935298355


[ACCOUNT]
encode_user_path = true

 

 

 

 Log from master after  leaveing cave

[22:16:43]: ValidateGameSessionToken <token> for <3664271436496857343>
[22:16:43]: Client authenticated: (KU_DcBDQF5Y) myszuwa
[22:16:43]: [Steam] Authenticated host '76561198191558527'
[22:16:43]: [Shard] Completed incoming migration #8 for (KU_DcBDQF5Y)
[22:16:43]: [Shard] Completed migration #8 for player (KU_DcBDQF5Y)
[22:16:43]: [Shard] Writing save location file for (KU_DcBDQF5Y)
[22:16:54]: Resuming user: session/18D86F1AB08B6B8B/A7HMCB6MHSB2/0000000005
[22:16:54]: Could not find anim build FROMNUM
[22:16:54]: Player will spawn close to portal #7
[22:16:54]: Spawning player at: [Load] (518.55, 0.00, -159.72)

Link to comment
Share on other sites

hi:

thanks for this passage. after all the commands i got this :

Sim paused

 Registering slave in China lobby

and i can not found my server in filter of DST

could you give me some help,very thanks 

 

 

OK very thanks. have fixed. it is just ok

Edited by the_thermal
Link to comment
Share on other sites

Hello @SAMULLL, welcome to the forums. Usually the worldgenoverride.lua doesn't take effect because the world has already been generated prior to adding worldgenoverride.lua changes. For them to take affect, you should reset the world so it can go through the world generation phase again AFTER you've made your changes for the worldgenoverride.lua file.

 

Link to comment
Share on other sites

On 4/8/2020 at 9:58 PM, Dannyan said:

Anyone know how do I set the script to start up on linux initialization?

Run sudo crontab -e and add a line

@reboot /your_script.sh

Please note, that it will be run as root.

  • Thanks 1
Link to comment
Share on other sites

On 4/13/2020 at 6:21 AM, Momus said:

Run sudo crontab -e and add a line


@reboot /your_script.sh

Please note, that it will be run as root.

It worked! \o/

Thank you so much. :D

Edited by Dannyan
Link to comment
Share on other sites

  • Developer
13 hours ago, shengjp said:

i cant register a lobby in China (IP:49.235.253.217),it always register in Sing lobby even EU  ,what decide which lobby i should be in

The game pings Klei servers located all over the world and whichever one has the best ping time is the one you register on.

  • Thanks 1
Link to comment
Share on other sites

Firstly,thank you for your reply . but i still cant solve my problem. So do you have servers in China (Hongkong or Taiwan),if you have ,how can i register China lobby compulsively .

I just stuck in this step showing the pic.

 

region pic.png

Link to comment
Share on other sites

  • Developer
33 minutes ago, shengjp said:

Firstly,thank you for your reply . but i still cant solve my problem. So do you have servers in China (Hongkong or Taiwan),if you have ,how can i register China lobby compulsively .

There's no hard boundaries to the regions, it doesn't matter what lobby you register on. Chinese users will download the Chinese lobby first, but if they stay in the lobby screen they will eventually load every server in the entire world (in order of how close they are). So it doesn't really matter what lobby you register against. That said, if you're registering against the US lobby regularly it probably means you're using a VPN that makes all your traffic come from the US. That's going to slow down your gameplay experience.

18 minutes ago, seya233 said:

I am a wegame user, can I build my dedicated linux server through a wegame account? I read the guide, but it seems be only for Steam.

Yes, wegame has instructions for hosting dedicated servers... somewhere. I'm afraid I don't remember the exact URL. https://accounts.klei.com will give you everything you need from the Klei side, but wegame has a special requirement of a dedicated server hosting certificate from wegame itself IIRC.

  • Thanks 1
Link to comment
Share on other sites

1 hour ago, nome said:

There's no hard boundaries to the regions, it doesn't matter what lobby you register on. Chinese users will download the Chinese lobby first, but if they stay in the lobby screen they will eventually load every server in the entire world (in order of how close they are). So it doesn't really matter what lobby you register against. That said, if you're registering against the US lobby regularly it probably means you're using a VPN that makes all your traffic come from the US. That's going to slow down your gameplay experience.

Yes, wegame has instructions for hosting dedicated servers... somewhere. I'm afraid I don't remember the exact URL. https://accounts.klei.com will give you everything you need from the Klei side, but wegame has a special requirement of a dedicated server hosting certificate from wegame itself IIRC.

Thank you for reply! I went back to check the Wegame instructions of hosting dedicated servers. Wegame do give the instruction for window, but the instruction for Linux it provides is just a link to this topic. I think that Wegame may not provide a way to build own servers in Linux system.

 

Considering the GFW( the great fire wall) in china Internet, which sometimes slows the interconnection between china and other countries,there is a unstable internet issue when china Steam users are playing the together game.

Edited by seya233
Link to comment
Share on other sites

Configured the server according to the manual. There is a problem with the region - the server is registered in the US region, despite the fact that the server is physically located in Ukraine, that the EU or RU region, but not the US.
The most amazing thing is that I do not see my server in the list despite the fact that ping to it is only 16 ms, unlike other servers from the list.
Can I block other regions on the server through a firewall to fix the bug with the definition of the region?

Link to comment
Share on other sites

Caves:  [00:00:48]: [Shard] Slave LUA is now ready!
Caves:  [00:00:48]: Sim paused
Master: [00:00:54]: Registering master server in US lobby
Caves:  [00:05:49]: Registering slave in US lobby
 

my vps is located in Shanghai, China. This seems really takes a long time to register.

Link to comment
Share on other sites

1 hour ago, InoriS said:

Caves:  [00:00:48]: [Shard] Slave LUA is now ready!
Caves:  [00:00:48]: Sim paused
Master: [00:00:54]: Registering master server in US lobby
Caves:  [00:05:49]: Registering slave in US lobby
 

my vps is located in Shanghai, China. This seems really takes a long time to register.

Caves:  [00:00:47]: Validating portal[7] <-> 1[7] (active)
Caves:  [00:00:47]: Validating portal[8] <-> 1[8] (active)
Caves:  [00:00:47]: Validating portal[9] <-> 1[9] (active)
Caves:  [00:00:47]: Validating portal[10] <-> 1[10] (active)
Caves:  [00:00:48]: [Shard] Slave LUA is now ready!
Caves:  [00:00:48]: Sim paused
Master: [00:00:54]: Registering master server in US lobby
sCaves:  [00:05:49]: Registering slave in US lobby
Caves:  [00:10:49]: Registering slave in US lobby
Caves:  [00:15:49]: Registering slave in US lobby
Caves:  [00:20:49]: Registering slave in US lobby
Caves:  [00:25:49]: Registering slave in US lobby
Caves:  [00:30:08]: [200] Account Communication Success (6)
Caves:  [00:30:08]: Received (KU_PP5FpBdK) from TokenPurpose
Master: [00:30:08]: [200] Account Communication Success (6)
Master: [00:30:08]: Received (KU_PP5FpBdK) from TokenPurpose
Caves:  [00:30:49]: Registering slave in US lobby
Caves:  [00:35:49]: Registering slave in US lobby
Caves:  [00:40:49]: Registering slave in US lobby
Caves:  [00:45:49]: Registering slave in US lobby
Caves:  [00:50:49]: Registering slave in US lobby
Caves:  [00:55:49]: Registering slave in US lobby
Caves:  [01:00:08]: [200] Account Communication Success (6)
Caves:  [01:00:08]: Received (KU_PP5FpBdK) from TokenPurpose
Master: [01:00:08]: [200] Account Communication Success (6)
Master: [01:00:08]: Received (KU_PP5FpBdK) from TokenPurpose
Caves:  [01:00:49]: Registering slave in US lobby
Caves:  [01:05:49]: Registering slave in US lobby
Caves:  [01:10:49]: Registering slave in US lobby
Caves:  [01:15:49]: Registering slave in US lobby

 

And it is still registering after one hour

Link to comment
Share on other sites

On 6/28/2020 at 5:22 PM, InoriS said:

Caves:  [00:00:48]: [Shard] Slave LUA is now ready!
Caves:  [00:00:48]: Sim paused
Master: [00:00:54]: Registering master server in US lobby
Caves:  [00:05:49]: Registering slave in US lobby
 

my vps is located in Shanghai, China. This seems really takes a long time to register.

I also have this problem, My cloud-server is located in HangZhou, China, but  when I launch my server, A message--"Registering secondary shard in US lobby" was printed. Then I try to search my room in game (Steam), but I can't get it. So I restart my server, this time I get a message--"Registering secondary shard in Sing lobby", and I can find my room normally. It seems the register lobby does not affects anything  in this post, but I do not think so.

Link to comment
Share on other sites

7 hours ago, loyamaqu said:

I also have this problem, My cloud-server is located in HangZhou, China, but  when I launch my server, A message--"Registering secondary shard in US lobby" was printed. Then I try to search my room in game (Steam), but I can't get it. So I restart my server, this time I get a message--"Registering secondary shard in Sing lobby", and I can find my room normally. It seems the register lobby does not affects anything  in this post, but I do not think so.

Before I thought it was the registration lobby that affected the search results. It is not correct. I solve the problem by modify my hosts file which pointed to the Klei server IP.

Link to comment
Share on other sites

I tried running the dedicated server on Amazon EC2. I allowed inbound tcp/udp on 10889 (as configured in cluster.ini) and I can see it in the lists but can't connect to it. Opening all ports (inbound and outbound) makes it work but I wanted to have a bit of control over the open ports. What am I missing?

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
 Share

×
  • Create New...