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

3 replies [Last post]
The__Drunken__Sun
User offline. Last seen 9 hours 41 min ago. Offline
Joined: 2019-09-21
Posts: 4

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

KoBeWi
KoBeWi's picture
User offline. Last seen 1 day 16 hours ago. Offline
Joined: 2010-12-25
Posts: 504
nemo
nemo's picture
User offline. Last seen 9 hours 32 min ago. Offline
Joined: 2009-01-28
Posts: 1735

To elaborate a bit, you pretty much just need to replicate what:
https://hg.hedgewars.org/hedgewars/file/tip/gameServer/OfficialServer

does.

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
Wuzzy's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 2012-06-20
Posts: 1103

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-2017 Hedgewars Project. All rights reserved. [ contact ]