Dedicated Server Settings

2 replies [Last post]
NettoHikari
NettoHikari's picture
User offline. Last seen 4 years 23 weeks ago. Offline
Joined: 2019-10-19
Posts: 3

Hi, guys.

I set up a dedicated server including systemd-script, etc. for my friends and family to play on, as I'd like to make some modifications to it later on, eventually.

I noticed that there are only 2 command line switches for the server:
-p [port] for port selection
-d [true|false] for dedicated server mode

I didn't look at the source code of hedgewars-server yet, but is there any way of configuring the server when running in dedicated mode, just as if you'd do when using the "administer" button when running a server locally?

Any way to set admin permissions, etc.? I couldn't find anything about that on the forums or the Wiki, besides the regular admin commands page.

Thanks in advance. Smile
- NH

unC0Rr
unC0Rr's picture
User offline. Last seen 1 year 1 week ago. Offline
Joined: 2006-11-27
Posts: 576

If you're running server compiled as non-official, you have the only option to connect from localhost to become server admin. If you're willing to patch that behavior for yourself, you can hack around lines 45 and maybe 53 in this file: http://hg.hedgewars.org/hedgewars/file/tip/gameServer/OfficialServer/DBInteraction.hs#l45 and rebuild the server binary.

NettoHikari
NettoHikari's picture
User offline. Last seen 4 years 23 weeks ago. Offline
Joined: 2019-10-19
Posts: 3

Hi, unC0Rr!

Thanks for the fast reply. I just found it myself!

Copyright © 2004-2023 Hedgewars Project. All rights reserved. [ contact ]