Author Topic: MasterServer2 questions...  (Read 19022 times)


  • Not-a-newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
MasterServer2 questions...
« on: August 05, 2014, 08:41:17 AM »
Hello everyone.

I'm trying to using RakNet to track my game servers with the MasterServer2, but after some coding i have 2 questions about the service...

First.. i'm trying to limit the DELETE command with a password using the __updatePW ( the documentation says "This password is used for POST, PUT, and DELETE operations." ), but is not working, the request with a incorrect password is still deleting the published game... here is my code in use

To post :
Code: [Select]
RakString rspost = RakString::FormatForPOST(
RakString("text/plain; charset=UTF-8"),
RakString("{'__gameId': 'myGame','__clientReqId': '%s','__timeoutSec': '60','__rowPW': '%s','__updatePW': '%s','sname': '%s','port': '%i'}", serverid, pass, pass, servername, port));

To delete :
Code: [Select]
RakString rsRequest = RakString::FormatForDELETE(
RakString(MASTER_SERVER_ADDRESS "/testServer?__gameId=myGame&__rowId=%i&__updatePW=%s", rowID, pass));

Is simple and works fine... but the DELETE request is always successfully executed even with the wrong password.

And my second question is about how to get a custom __gameId... is there a cost?... if someone can guide me will be great.

Thanks in advance.