Is it possible to set up an account system on a private server?
Sat, 2019-09-21 19:27
For example, on official server, registered players can rejoin games they have left. Is that possible on a private server?
For example, on official server, registered players can rejoin games they have left. Is that possible on a private server?
Yes.
My themes / Theme Editor / Code contributions /
Dank
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
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.