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

3 replies [Last post]
The__Drunken__Sun
User offline. Last seen 3 years 37 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 6 weeks 2 days ago. Offline
Joined: 2010-12-25
Posts: 565
nemo
nemo's picture
User offline. Last seen 24 weeks 6 days 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 30 weeks 5 days ago. Offline
Joined: 2012-06-20
Posts: 1304

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

User login

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