Hedgewars "dedicated" server

5 replies [Last post]
hedgenew
User offline. Last seen 14 years 37 weeks ago. Offline
Joined: 2010-02-16
Posts: 4

Hi,

i'm a crazy admin of a small wireless network ( 100 users ) and i want install an internal hedgewars dedicated server like your "Official Server". I've searched in website and google but i can't find this option.

Can i launch game in a linux server without graphics (without X) and can i configure this like the official server.

Thanks and sorry for my little english.

Smaxx
Smaxx's picture
User offline. Last seen 13 years 28 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

In CMake define the variable "WITH_SERVER" as a bool and set it to true. You should then get an executable "hedgewars-server" (requires Haskell compiler (GHC) to compile). Official server runs the same app (it's standalone and just relays connections/commands) so it doesn't require any of the other files.

But: Any reason for not playing on official server? Smile

hedgenew
User offline. Last seen 14 years 37 weeks ago. Offline
Joined: 2010-02-16
Posts: 4

Thank'you for your reply.

Quote:
But: Any reason for not playing on official server?

Because some people connected to the wifi don't have internet access and because our wans are not very fast.

nemo
nemo's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

I don't have any particular feelings on official vs own server. There are certainly reasons for running your own, such as LAN parties.

I do want to note that "fast" can be a vague term for WANs.
If your bandwidth is low, the official server will still be fine.
If your latency is high, even if your bandwidth is high, official server will be a problem.
Hedgewars uses very little bandwidth, but if your latency starts climbing over a half-second, it seems to start getting noticeable.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

hedgenew
User offline. Last seen 14 years 37 weeks ago. Offline
Joined: 2010-02-16
Posts: 4

Ok, i've compiled from source hedgewars and now i have the binary file hedgewars-server.

I'v tryed this command:

Quote:
# ./hedgewars-server --help
hedgewars-server: user error (unrecognized option `--help'
Usage: newhwserv [OPTION...]
-p PORT --port=PORT listen on PORT
-d BOOL --dedicated=BOOL start as dedicated (True or False)

thera are nothing else? Can i set password, save stats, or nothing?

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 2 days ago. Offline
Joined: 2006-11-27
Posts: 576

You can't specify password for server or collect stats. Such things are not implemented even for official server.

User login

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