The bad thing is, you can be online (like now for me) but can0't play, beacuse you are just checking MD games and go offline in 2 min.
Yeah, I'm trying to see if there's any way to detect that sort of situation. Right now, I'm just having it delete the game (if it hasn't started yet) if either player has been seemingly offline for over 15 minutes. (WarLight doesn't give me any finer data or I'd set a much lower threshold).
This is behind a lot of wasted games and inefficiency (especially with wait time) right now, because I have to go through and find out who's actually interested. Maybe once an opt-in system is in place and people know about the games before they get invited, this might be a little bit easier to work with.
Another issue is that I'm currently not tracking game creation time- so if one people is busy (but still online/active in other games) and doesn't do anything for a while, their opponent is stuck without a replacement game until one of them goes offline. I can fix that trivially in the next test iteration though.
(Thanks for the feedback!)
Normally that would be the job of the game host, right? Is it possible with the API to designate one of the players as host/creator, so they could manage this themselves? Just a thought.
Sadly, no. It's just the creator (me) who's going to have to be host- which won't work unless I'm available to manually supervise the game.
The Warlight API is ludicriously limiting when it comes to actually doing things with the game. It's decent for reading (some) games but that's really about it. Pretty disappointing.
Edited 12/10/2015 07:54:20