Questions in Game Tech

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

[Announcement] AWS GameKit for Unreal Game Engine is now Generally Available

Today we are releasing AWS GameKit, a new solution that allows game developers to deploy and customize game backend features directly from Unreal Engine. AWS GameKit comes with AWS CloudFormation templates for each feature that follows AWS Solution Architect designs. AWS GameKit also comes with an integration code between the game backend features and Unreal Engine. AWS GameKit is for game developers looking to build AWS-powered game features directly from Unreal Engine with just a few clicks. With this release, developers have access to four game backend features: Identity and Authentication, Achievements, Game State Cloud Saving, and User Gameplay Data. AWS GameKit uses AWS CloudFormation templates to provision and connect all the necessary AWS resources together into a cohesive solution to power these features. Each feature follows the AWS well-architected framework to provide a secure, high-performing, resilient, and efficient infrastructure deployment that is fully customizable and runs in the developer's own AWS account. AWS GameKit also provides Unreal Engine Blueprints, C++ code, libraries, documentation, and sample UIs for each of the four game features. The provided AWS CloudFormation templates automatically configure cloud resources that allows game developers to programmatically apply AWS best practices with common abstractions. This leads to the rapid creation of cloud-connected game features without being an AWS expert. AWS GameKit can be used to deploy cloud-connected game backend features in 17 AWS Regions where applicable, dependent on feature requirement of available AWS primitives: US East (Ohio, N. Virginia), US West (Oregon, N. California), Canada (Central), South America (Sao Paulo), EU (Ireland, London, Paris, Frankfurt), Europe (Stockholm), Asia Pacific (Tokyo, Seoul, Mumbai, Singapore, Sydney), Middle East (Bahrain). Learn more and download AWS GameKit from the [AWS GameKit website](https://aws.amazon.com/gamekit/) or our [GitHub Repository](https://github.com/aws/aws-gamekit-unreal/releases).
0
answers
0
votes
41
views
asked 8 months ago

Client not receiving RTS message

I'm having trouble with one particular piece of code that is supposed to be sending a message to a client. Both pieces of code below are from my Realtime Server Script: ``` function onPlayerAccepted(player) { logger.info("..New player accepted: " + player.peerId); const newPlayerMessage = session.newTextGameMessage(OP_CODE_PLAYER_ACCEPTED, session.getServerId(), JSON.stringify(galaxyAndLocalPlayerState)); session.sendReliableMessage(newPlayerMessage, player.peerId); } ``` The above block within my realtime server script runs when a player is accepted, and the message is successfully received by the client (Unity). On the client side, logs show that OnDataReceived() **is called**. RTS Logs for above call: 02 Mar 2022 03:59:32,191 [INFO] (ManhuntServerScript.js) 96: ..New player accepted: 1 02 Mar 2022 03:59:32,191 [INFO] (index.js) 333: Received custom game message from sender: -1 with opCode: 100, targetPeerId: 1, targetGroupId: 0 ``` function onMessage(gameMessage) { switch (gameMessage.opCode) { case OP_CODE_TRAVEL_REQUEST: logger.info("..Travel Request Received from Peer " + gameMessage.sender + " to PlanetId: " + gameMessage.getPayloadAsText()); const travelResponseMessage = session.newTextGameMessage(OP_CODE_TRAVEL_BEGIN, session.getServerId(), JSON.stringify(playerStates)); session.sendReliableMessage(travelResponseMessage, gameMessage.sender); break; default: logger.info("..Unrecognized Op Code received: " + gameMessage.opCode); break; } } ``` The above block shows the message is being sent in the server logs, but is not received by the Unity client. I have ensured the op codes match. On the client side, logs show that OnDataReceived() **is NOT called**. RTS logs for above call: 02 Mar 2022 03:59:36,628 [INFO] (index.js) 333: Received custom game message from sender: 1 with opCode: 200, targetPeerId: -1, targetGroupId: 0 02 Mar 2022 03:59:36,628 [INFO] (ManhuntServerScript.js) 136: ..Travel Request Received from Peer 1 to PlanetId: 2 02 Mar 2022 03:59:36,629 [INFO] (index.js) 333: Received custom game message from sender: -1 with opCode: 102, targetPeerId: 1, targetGroupId: 0 --- The only thing I can think of is that possibly a realtime server can't send a message within onMessage() but that seems silly to me. Thanks in advance for any insight!
9
answers
0
votes
14
views
asked 9 months ago