浏览代码

Merge branch 'ExportGameLiftPackageWindowsFolder' into LYN-18918_GameLiftIdleTimerTerminateSession

Gene Walters 2 年之前
父节点
当前提交
43c8d339e7
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      MPSGameLift/Documentation/GameLift.md
  2. 3 3
      MPSGameLift/Scripts/export_gamelift_server_package.py

+ 1 - 1
MPSGameLift/Documentation/GameLift.md

@@ -196,7 +196,7 @@ Record BuildId for the next step. Example: **build-1a23bc4d-456e-78fg-h9i0-jk1l2
 After running this command it'll take about an hour for the fleet to activate. Check the status on the GameLift dashboard. 
 After running this command it'll take about an hour for the fleet to activate. Check the status on the GameLift dashboard. 
 
 
 ```sh
 ```sh
-aws gamelift create-fleet --region us-west-2 --name GameLiftO3DTest2016 --ec2-instance-type c5.large --fleet-type ON_DEMAND --build-id <BuildId> --runtime-configuration "GameSessionActivationTimeoutSeconds=300, MaxConcurrentGameSessionActivations=2, ServerProcesses=[{LaunchPath=C:\game\MultiplayerSample.ServerLauncher.exe, Parameters= --rhi=null -sys_PakPriority=2 -NullRenderer -sv_terminateOnPlayerExit=true -bg_ConnectToAssetProcessor=0 --sv_gameLiftEnabled=true --sv_dedicated_host_onstartup=false --console-command-file=launch_server.cfg, ConcurrentExecutions=1}]" --ec2-inbound-permissions "FromPort=33450,ToPort=34449,IpRange=0.0.0.0/0,Protocol=UDP"
+aws gamelift create-fleet --region <Region> --name GameLiftO3DTest2016 --ec2-instance-type c5.large --fleet-type ON_DEMAND --build-id <BuildId> --runtime-configuration "GameSessionActivationTimeoutSeconds=300, ServerProcesses=[{LaunchPath=C:\game\MultiplayerSample.ServerLauncher.exe, Parameters= --rhi=null -sys_PakPriority=2 -NullRenderer -sv_terminateOnPlayerExit=true -bg_ConnectToAssetProcessor=0 --sv_gameLiftEnabled=true --sv_dedicated_host_onstartup=false --console-command-file=launch_server.cfg, ConcurrentExecutions=1}]" --ec2-inbound-permissions "FromPort=33450,ToPort=34449,IpRange=0.0.0.0/0,Protocol=UDP"
 ```
 ```
 ---
 ---
 **NOTE**
 **NOTE**

+ 3 - 3
MPSGameLift/Scripts/export_gamelift_server_package.py

@@ -11,8 +11,8 @@ Enables the project for AWS Gamelift and creates a Windows server package which
 To use this script pass it into o3de.bat's export-project command: 
 To use this script pass it into o3de.bat's export-project command: 
 <path-to-o3de-engine>\scripts\o3de.bat export-project -es <path-to-multiplayer-sample>\MPSGameLift\Scripts\export_gamelift_server_package.py -ll INFO
 <path-to-o3de-engine>\scripts\o3de.bat export-project -es <path-to-multiplayer-sample>\MPSGameLift\Scripts\export_gamelift_server_package.py -ll INFO
 A folder named GameLiftPackageWindows containing the server will be created. 
 A folder named GameLiftPackageWindows containing the server will be created. 
-Test the server locally and upload the server package to GameLift. 
-    'aws gamelift upload-build --server-sdk-version 5.0.0 --operating-system WINDOWS_2016 --build-root .\GameLiftPackageWindows\ --name MultiplayerSample --build-version v1.0 --region us-west-2'
+After this script runs, test the server locally and upload the server package to GameLift. 
+    'example: aws gamelift upload-build --server-sdk-version 5.0.0 --operating-system WINDOWS_2016 --build-root .\GameLiftPackageWindows\ --name MultiplayerSample --build-version v1.0 --region us-west-2'
 """
 """
 
 
 import os
 import os
@@ -214,4 +214,4 @@ for file_name in os.listdir(gems_files_dir):
 
 
 o3de_logger.info("Export Successful!\n"
 o3de_logger.info("Export Successful!\n"
                  "Test the server locally and upload the server package to GameLift.\n"
                  "Test the server locally and upload the server package to GameLift.\n"
-                 f"aws gamelift upload-build --server-sdk-version 5.0.0 --operating-system WINDOWS_2016 --build-root .\GameLiftPackageWindows\ --name {project_name} --build-version v1.0 --region us-west-2")
+                 f"Example: aws gamelift upload-build --server-sdk-version 5.0.0 --operating-system WINDOWS_2016 --build-root .\GameLiftPackageWindows\ --name {project_name} --build-version v1.0 --region us-west-2")