Is it possible to set up an account system on a private server?

3 replies [Last post]
User offline. Last seen 27 weeks 1 day ago. Offline
Joined: 2019-09-21
Posts: 6

For example, on official server, registered players can rejoin games they have left. Is that possible on a private server?

KoBeWi's picture
User offline. Last seen 6 days 5 hours ago. Offline
Joined: 2010-12-25
Posts: 548
nemo's picture
User offline. Last seen 3 days 9 hours ago. Offline
Joined: 2009-01-28
Posts: 1846

To elaborate a bit, you pretty much just need to replicate what:


It might also be sufficient to force isRegistered in Utils.hs to always be true, but I haven't tested that.

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

Wuzzy's picture
User offline. Last seen 8 weeks 5 days ago. Offline
Joined: 2012-06-20
Posts: 1264

The short answer is: Yes.
The long answer is: Yes, but it's going to be painful. Just compiling the server won't be enough.

You need to compile the server with the OFFICIAL_SERVER flag.

Note that compiling a server with the OFFICIAL_SERVER flag and making it actually work is quite tricky. First, the easy part is getting a few additional dependencies (more Haskell libs basically).

But you also need to add a file called “hedgewars-server.ini” in the working directory of the server. I still don't know its exact syntax yet.

And finally, unC0Rr told me you also need to set up a MySQL database.

unC0Rr knows more about this. Maybe talk to us in the chat.

Hi, I am a Hedgewars developer. Smile I accept personal donations in bitcoin. Heart 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

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