aws-samples / aws-gamelift-sample Goto Github PK
View Code? Open in Web Editor NEWA simple full-stack game sample using GameLift and AWS services.
License: Apache License 2.0
A simple full-stack game sample using GameLift and AWS services.
License: Apache License 2.0
I was trying to put up the Gomoku Demo. While the set up is completed, when testing the 2 player game play .... my game-match-status lambda is returning following error
[ERROR] KeyError: 'ConnectionInfo'
Traceback (most recent call last):
File "/var/task/index.py", line 25, in lambda_handler
connection_info = json.loads(match_response['Item']['ConnectionInfo'])
ConnectionInfo Key does not exist in DDB, is it expected to be there ...am I missing any step?
When deploying the CFT template, it fails due to the deprecated python version2.7.
While testing on the Oculus Quest device it was discovered that the Receive method was not buffering all bytes in some cases. The addition of the following code fixes the issue.
int bytesRead = 0;
while (bytesRead < msgSize)
{
bytesRead += stream.Read(readBuffer, bytesRead, readBuffer.Length - bytesRead);
}
public static string[] Receive(TcpClient client)
{
NetworkStream stream = client.GetStream();
var messages = new List<string>();
while (stream.DataAvailable)
{
byte[] bufferLength = new byte[4];
stream.Read(bufferLength, 0, bufferLength.Length);
int msgSize = IPAddress.NetworkToHostOrder(BitConverter.ToInt32(bufferLength, 0));
byte[] readBuffer = new Byte[msgSize];
int bytesRead = 0;
while (bytesRead < msgSize)
{
bytesRead += stream.Read(readBuffer, bytesRead, readBuffer.Length - bytesRead);
}
string msgStr = System.Text.Encoding.ASCII.GetString(readBuffer, 0, readBuffer.Length);
messages.Add(msgStr);
}
return messages.ToArray();
}
There are many unclear description that request the user to do a work depending on the environment. (like file download, or AWS CLI installation, python installation, etc.).
It can make the workshop to be disturbed by the diversity of the user environment.
Like other workshop, let's make Cloud9 as a standard workshop environment for simplicity and clearance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.