NOTIFY players of a new turn ? (mail/anything ?)

Join us, meet players from all around the world, challenge the strongest top players, practice and be one of them!
Post Reply
psypol
Posts: 1
Joined: Sat May 12, 2018 3:42 pm

NOTIFY players of a new turn ? (mail/anything ?)

Post by psypol »

Hello

i'm preparing a server (on raspberry pi3) to play with friends.
i have almost everything set-up.
the last thing i would love to have is a way to notify (myself and friends) when a new turn just started and it's time to make our moves/decisions.
(new turns will be forced every ~6hours)

the only approaching option i have seen is to activate in options/"sounds" the "bell" option
also in Options/Messages to check the 3 boxes on line "Turn bell"
then look at "chat" window and there i can see "start of turn X"

Another option might be to make my debian on the raspberry pi check if a new SAVE file appeared in the save folder
this is a proof that a new turn started.
Then the trick would be with some coding (python?) to send some notification to the players (for example a mail)

Any ideas / suggestions ?
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: NOTIFY players of a new turn ? (mail/anything ?)

Post by Ignatus »

There is no way to notify from the server about a new turn except sending the "new turn" package to clients currently connected (they can have bell ringing). If you want email notification, checking savefile folder with some script looks a logial solution.
Lexxie
Veteran
Posts: 127
Joined: Fri Jun 23, 2017 4:18 pm

Re: NOTIFY players of a new turn ? (mail/anything ?)

Post by Lexxie »

There is something in there, wake from sleep sound. You can set it to play the sound when a special string is seen to come.
Lachu
Elite
Posts: 472
Joined: Sat May 04, 2013 2:19 pm

Re: NOTIFY players of a new turn ? (mail/anything ?)

Post by Lachu »

Solution is: write custom client, which will send an e-mails. I don't know how, but I thing starting point is stub client. It should connect as observer.
You could also write patch to server, but it's less secure, I think.
Post Reply