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

3 replies [Last post]
The__Drunken__Sun
User offline. Last seen 2 years 50 weeks 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
KoBeWi's picture
User offline. Last seen 3 days 8 hours ago. Offline
Joined: 2010-12-25
Posts: 564
nemo
nemo's picture
User offline. Last seen 5 hours 5 min ago. Offline
Joined: 2009-01-28
Posts: 1861

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 4 days 9 hours ago. Offline
Joined: 2012-06-20
Posts: 1301

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

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