STEAM GROUP
Giant Multiplayer Robot MRobot
STEAM GROUP
Giant Multiplayer Robot MRobot
24
IN-GAME
243
ONLINE
Founded
9 March, 2012
Location
United States 
gak 29 Aug, 2014 @ 7:39pm
Python library and API change requests
Hi,

I'm new to GMR and I love it. I am keen to continue using it. Thanks for making it in lieu of a PBEM mode in Civ V.

I'm working on a Python tool/library that initially includes just a command-line interface used for when I'm on Linux. The code is at https://github.com/gak/giant-multiplayer-robot-helper if you're curious. It's incomplete, but I'll be continuing development over the next few days/weeks/etc.

Anyway, I have some questions and requests for the GMR API. I hope this is the appropriate place to post questions like these.

Are you updating the API because of GMR 2.0? Will there be a new client with more features?

May I request to include the history of turns in each game? I would like this so I can predict when the next turn will be. For example, "Game #1238 Your turn in: ~5 hours" (because 2h average turn + 3h average turn, for the two players before me). This might have extra arguments, e.g. GetGamesAndPlayers?includeTurns=true&turnsPage=5 would show "page 5" of the turns list (so that your servers don't overload with a massive look-up). Alternatively have a new "GetGame" or "GetGameTurns" API call, etc.

Another request is for the API is to include the country/leader the player has chosen, in the game result player list.

This is not really a request as such, just a thought about potential third party use. API calls such as creating a game, joining a game, etc would be pretty handy for gaming leagues/ladders/competitions/etc., to automatically start a game for a prearranged set of players. I don't currently have a particular need for it in my Python library--it's just an observation.

One last thing. I do know a multitude of programming languages, and I am happy to implement these API changes on your web app code, if you don't feel the need to do it yourself, or just don't have the time for it. We can discuss those details offline of course.

Thanks,

Gerald
< >
Showing 1-2 of 2 comments
Tazzik 2 Sep, 2014 @ 2:18pm 
GMR 2.0 (Multiplayer Robot) will have a new API. The new API will be very comprehensive - in fact, the new website itself will use the new API for everything. This means that any third party client could access all of the same functionality and data that the website does.

The new API will use ASP.NET SignalR[signalr.net], which will allow us to take advantage of WebSockets and gracefully fall back on AJAX. However, this may be an issue for your particular project because, as far as I can tell, a SignalR client does not exist for Python. That being said, if any third parties are using our current GMR API, we could re-create it in Multiplayer Robot.

As for the turn history, the new API will offer the ability to get the turns for a game or user. However, if you want to use it for estimating turn completion times, the new Multiplayer Robot will actually do that server-side, using some predictive analytics. The new API will be able to give you an estimate in the form of a date range.

We're expecting to roll out the initial alpha test of Multiplayer Robot within a couple months. If you'd be interested in targeting the new API, we could probably get you in on the alpha.
gak 2 Sep, 2014 @ 3:54pm 
Hi Tazzik,

Thanks for the response. Your new API sounds very cool.

It would be great to get early access to the API, thank you. Hopefully someone (ideally not me) will make a Python SignalR client by then.
< >
Showing 1-2 of 2 comments
Per page: 1530 50