STEAM GROUP
Giant Multiplayer Robot MRobot
STEAM GROUP
Giant Multiplayer Robot MRobot
8
IN-GAME
154
ONLINE
Founded
9 March, 2012
Location
United States 
bleissem 12 Jun, 2014 @ 1:02pm
source ? can I contribute ?
Hello everyone,
Since Civilisation V is avaiable for Linux ( Debian, Ubuntu ) I would like to see the GMR Client running at Linux too.
I would like to ask if I can contribute to your software.
So I would like to develop a little Mono based Linux Client for the GMR and put that code under a opensource licence. So is the source for the windows based client avaiable or is there an sdk etc. avaiable to dig into the api / web calls ?
Regards
Alex B.
< >
Showing 1-7 of 7 comments
Rillithain 12 Jun, 2014 @ 1:57pm 
Civ 5 is available for linux now? I know there has been lots of people asking for it, but I didn't think it happened? Or do you mean it runs in linux via wine?
Rillithain 12 Jun, 2014 @ 2:03pm 
ok - i just read that now about it.. cool! (as for your question, will have to defer to NullMaster and Tazzik).
NullMaster 12 Jun, 2014 @ 2:40pm 
We do plan to open source the desktop client later this year, however it will be the newly re-written desktop client for Multiplayer Robot 2.0.

In the meantime we've documented our current web API for people like yourself interested in writing a desktop client. You can find that here: http://multiplayerrobot.com/About/Api

Let us know if you have any questions about it!
bleissem 18 Jun, 2014 @ 4:45pm 
Hello NullMaster,
thanks for your answer.
Just started to play around at
https://yagmrc.codeplex.com/
I have a question about the API at
http://multiplayerrobot.com/About/Api
GetLatestSaveFileBytes:
Is there an encoding that needs to be aware of (base64) or is it just downloading the byte array ?
Regards
Alex B.
NullMaster 19 Jun, 2014 @ 9:22am 
It is just downloading the byte array. You can check the Content-size header of the HTTP response to get its length.
bleissem 1 Aug, 2014 @ 5:05pm 
Hello NullMaster,

I think downloading works (for me) now.
I still have a problem when I try to upload a game.
(The current turn is me.)
Here is a little code snippet that demonstrates my problem.(.Net 4.5)

using System;
using System.IO;
using System.Net;
using System.Text;


FileInfo savedFile = new FileInfo(@"c:\andsoon.Civ5Save"); // use the correct file
string myauthKey = "myAuthkey"; // use the correct authKey
string myturnId = "myturnID"; // use the correct turnID

using (WebClient wc = new WebClient())
{

byte[] response = wc.UploadFile(new Uri("http://multiplayerrobot.com/api/Diplomacy/SubmitTurn?authKey="+myauthKey+"&turnId="+myturnId), "POST", savedFile.FullName);

string str = Encoding.UTF8.GetString(response);

}

The result from uploading the file this way is always: "{"ResultType":0,"PointsEarned":0}".
That means that there is an error reported by the webserver.

When I investigate the traffic with a tool, I was able to see that the .Net Webclient clas itself adds a
Content-Length to the header:
"
POST http://multiplayerrobot.com/api/Diplomacy/SubmitTurn?authKey=XXXXXXX&amp;turnId=XXXXX HTTP/1.1
Content-Type: multipart/form-data; boundary=---------------------8d17c0520950906
Host: multiplayerrobot.com
Content-Length: 462125
Expect: 100-continue
...
"

My question would be, can you reproduce that behaviour with the WebClient class ?
Do you suggest using a different way of uploading a file ?

Regards
Alex B.
bleissem 27 Sep, 2014 @ 12:16am 
Hello everyone,
I released a beta 1 under
https://yagmrc.codeplex.com/
Thanks again for all your hints regarding the api.
Regards Alex B.
< >
Showing 1-7 of 7 comments
Per page: 1530 50