Jump to content

Rales99

Members
  • Posts

    44
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Rales99

  1. Hello, I am currently undergoing VKPlay moderation. I was asked to change the authorization in the game to the API of the site. That is, the player creates an account on VKPlay and is already authorized to enter the game. How can I do this? Here is a guide from VKPlay To begin playing a client-based game, the user must create or register an existing account on the game site, log into the VK Play GameCenter with this account, download the game, and click Play. VK Play GameCenter will launch the game client with the following command line parameters: game_client.exe --sz_pers_id=[uid] --sz_token=[OTP hash] The names of the parameters --sz_pers_id= and --sz_token= can be modified at the game developers' request. The game client is responsible for transferring the parameters received from VK Play GameCenter to the game's server. The game server must then verify the parameters via the server-to-server protocol described below. Game server protocol description The game server and GAS communicate via HTTP. Calling a method to verify authorization must be done only once by the game server. The second and subsequent calls with the same hash parameter will cause an error. GET, https://vkplay.ru/app/[GMRID]/gas?uid=[int uid]&hash=[string hash]&ip=[string ip]&sign=[md5 sign] Main parameters: https:/vkplay.ru/app/[GMRID] - the URL to which requests are sent [GMRID] - the unique game identifier (which can be found in the developer dashboard in the "System Properties" tab.) <uid> - the ID of the user, received from "VK Play Game Center"; <uid> - the OTP hash received from "VK Play Game Center"; <ip> - the user's IPv4 address, in the format 'xxx.xxx.xxx.xxx'; sign - a unique digital signature. Calculation of the signature must include all POST parameters passed by the request as well as the appid=[GMRID] parameter. More about calculating signatures. Help calculating signatures is available from the signature calculator. The server sends a response in JSON format with utf-8 encoding. If the request is processed successfully, the following response will be returned: { "status": "ok" } Possible errors include: // Incorrect signature {"status": "error", "errcode": 0, "errmsg": "gas_invalid_sign"} // User not found {"status": "error", "errcode": 0, "errmsg": "gas_invalid_user"} // Invalid hash parameter {"status": "error", "errcode": 10, "errmsg": "gas_otp_error"} // Access is restricted to whitelist {"status": "error", "errcode": 20, "errmsg": "gas_whitelist_error"} // Access is restricted to whitelist {"status": "error", "errcode": 30, "errmsg": "gas_whitelist_uid_error"} // User is banned {"status": "error", "errcode": 40, "errmsg": "Time of ban from '' to ''"} // User has not paid for this game (for P2P games) {"status": "error", "errcode": 50, "errmsg": "gas_no_payment"} Interaction Scheme Objects: "GameCenter" - the VK Play Game Center client, which the user uses to download the game; "GAS" - Game Authorization Service - the Platform's authorization system. 1. The user sign in to the "GameCenter". 2. "GameCenter" obtains a one-time token (OTP hash) for the user's ID from VK Play. 3. "GameCenter" sends the ID/OTP hash to the game client. 4. The game client sends the ID/OTP hash to the game server. 5. The game server sends the ID/OTP hash to the system (GAS). 6. GAS verifies the OTP hash, checks the user's status (whether banned or not), registers the user's login, and returns a response containing the user's ID and authentication status. Depending on the response code received, the game server instructs the game client to either let the user into the game or to inform the user of the error that has occurred. An example game client and game server implementation authorization via VK Play GameCenter can be found in this archive.
  2. Thank you very much! However, now everything is completely different.
  3. A little bit about the schedule in Sealed Gate. There is nothing public yet.
  4. Rales99

    Camera

    I don't understand what it says. The translator refuses to translate.
  5. Rales99

    Camera

    I want to bring the camera closer to the character at x3 Sorry for bad English. I translate from Russian
  6. Rales99

    Camera

    Which open source file is responsible for the camera range?
  7. After closing putty, the server is closed. How do I fix this problem?
  8. Всё отлично работает!
  9. Rales99

    Zoom

    How do I change the camera range ?
  10. Thank you so much, I completely forgot about it.
  11. How to make the back (назад) button open an authorization window. Now she opens the main menu
  12. Выглядит довольно неплохо
  13. I am trying to add a registration button to the login window 1. I finished 2 private readonly 2. After i added 3. And after I added void When you click on the "register" button, the client closes. error logs: Полный код LoginWindow
  14. There is no way to add a button through configs. This is done through the code itself.
  15. How do I add the create account button in the authorization menu ?
  16. How to make expand tab available?
  17. If I have patches installed and I upgrade interesct to a new version, will I need to install patches on a new one?
  18. Is it possible to implement registration through wordpress? Maybe someone already did a guide on this topic, but I did not find it. [I translate from Russian through an online translator] Original: Есть ли возможность реализовать регистрацию через wordpress ? Возможно уже кто-то делал гайд на эту тему, но я не нашёл.
  19. Can be more?
  20. Is it possible to implement automatic screen scaling? I need the interface elements to fit under the screen. Something like this:
×
×
  • Create New...