aws-samples / amazon-gamelift-unity

A multi-player game sample (server and client), developed with the Unity game engine, illustrating basic integration with Amazon GameLift. View the sample source code or build the project and experiment with game server deployment on the Amazon GameLift service.
Apache License 2.0
82 stars 22 forks source link

Can't work in gamelift mode #9

Closed thanksfromleo closed 4 years ago

thanksfromleo commented 4 years ago

Hello, AWS gamelift Team. I am a new gamelifter to study how to use gamelift tech in my real-time fps game project. After following the doc step by step, LOCAL MODE worked, and then try connect aws gamelift server, there get stuck and detail attached.

1、My OS is Windows 10 Home Edition, it contains .net frame 4.5 yet, but when i run the build.bat, it prompt a message tell me here need .net framework 4.5 dev pack, how can i get it, i googled but no result. (pic 1)

2、So i edit the "/DeployTool/DeployTool.csproj", modify v4.5 to 4.5.1, install .net framework 4.5.1 dev pack, reset my Unity install path, cool LOCAL MODE worked.

3、I create a new IAM user, grant it the "gamelift client" and "gamelift server" permission policies, deploy gamelift to aws server, download the credentials.csv to my local machine, run rc to start Unity project, it encounter a fatal error and can't proceed any more.

fatal to start aws client

Some screen shot may give you more imformation, thank you very much!

net45notfound (pic 1)

IAM user (iam user and permissions policies)

gamelift-client gamelift-server

credentials alias

(for convenient test, i hard code the keys in code)

aws server

alanmur commented 4 years ago

Hello Leo!

I am sorry to hear that you have encountered a problem. I will work with you to resolve as quickly as possible.

This looks like a possible duplicate of #8. This has not been merged as the fix has not been verified independently.

I have made some modifications to the way that credentials are handled in the project. Please go to https://github.com/aws-samples/amazon-gamelift-unity/tree/credfix and there you will find a branch (credfix) that I believe will fix your problem. How to use:

Get the credfix branch, which will change three files. [Note that the standalone player log may have moved location.]

Build the client as discussed in the instructions.

Run the client with rc --credentials to load the credentials.

Attach the Player.log file for me to look at. Also it should work for you! Let me know, and if we are good I will merge the changes.

alanmur commented 4 years ago

Hello! Did the suggested solution work for you?

thanksfromleo commented 4 years ago

Hello~ Sorry for late here. Very thanks for your detailed reply, for some reason, we choose another solution to implement our game. Gamelift is amazing for modern game develop, i will keep attention to it and expect it become better and better in the feature!

------------------ 原始邮件 ------------------ 发件人: "Al Murray"<notifications@github.com>; 发送时间: 2020年4月17日(星期五) 凌晨1:00 收件人: "aws-samples/amazon-gamelift-unity"<amazon-gamelift-unity@noreply.github.com>; 抄送: "Leo"<thanksfromleo@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [aws-samples/amazon-gamelift-unity] Can't work in gamelift mode (#9)

Hello! Did the suggested solution work for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.