Browse Source

Fixed the gamelift json menu spawnables. some how it was serialized using a ui canvas reference that didn't actually exist

Signed-off-by: Gene Walters <[email protected]>
Gene Walters 2 years ago
parent
commit
cdd56de7e1

+ 1 - 1
MPSGameLift/Prefabs/GameLiftConnectJsonMenu.prefab

@@ -106,7 +106,7 @@
                     "m_template": {
                     "m_template": {
                         "$type": "UiCanvasAssetRefComponent",
                         "$type": "UiCanvasAssetRefComponent",
                         "CanvasAssetRef": {
                         "CanvasAssetRef": {
-                            "AssetPath": "mpsgamelift/uicanvases/gameliftjsonconnect.uicanvas"
+                            "AssetPath": "mpsgamelift/uicanvases/gameliftconnectjson.uicanvas"
                         },
                         },
                         "IsAutoLoad": true
                         "IsAutoLoad": true
                     }
                     }

+ 1 - 1
MPSGameLift/UICanvases/GameLiftConnectJson.uicanvas

@@ -1146,7 +1146,7 @@
 									<Class name="AZ::Component" field="BaseClass1" type="{EDFCB2CF-F75D-43BE-B26B-F35821B29247}">
 									<Class name="AZ::Component" field="BaseClass1" type="{EDFCB2CF-F75D-43BE-B26B-F35821B29247}">
 										<Class name="AZ::u64" field="Id" value="3068610810953516373" type="{D6597933-47CD-4FC8-B911-63F3E2B0993A}"/>
 										<Class name="AZ::u64" field="Id" value="3068610810953516373" type="{D6597933-47CD-4FC8-B911-63F3E2B0993A}"/>
 									</Class>
 									</Class>
-									<Class name="AZStd::string" field="Text" value='{\n"FleetId": "fleet-6ae4d52f-4a6b-4591-99da-122d37922490",\n"GameSessionId": "arn:aws:gamelift:us-west-2::gamesession/fleet-6ae4d52f-4a6b-4591-99da-122d37922490/gsess-f2c14a63-e5fe-462f-9f8e-6be95b9dda26",\n"IpAddress": "35.87.147.200",\n"PlayerId": "abc123",\n"PlayerSessionId": "psess-abbf0c36-14a6-4497-8441-1a89119d2bca"\n}' type="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/>
+									<Class name="AZStd::string" field="Text" value='{\n"GameSessionId": "arn:aws:gamelift:us-west-2::gamesession/fleet-6ae4d52f-4a6b-4591-99da-122d37922490/gsess-f2c14a63-e5fe-462f-9f8e-6be95b9dda26",\n"PlayerId": "abc123",\n"PlayerSessionId": "psess-abbf0c36-14a6-4497-8441-1a89119d2bca"\n}' type="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/>
 									<Class name="bool" field="MarkupEnabled" value="false" type="{A0CA880C-AFE4-43CB-926C-59AC48496112}"/>
 									<Class name="bool" field="MarkupEnabled" value="false" type="{A0CA880C-AFE4-43CB-926C-59AC48496112}"/>
 									<Class name="Color" field="Color" value="0.4489815 0.4489815 0.4489815 1.0000000" type="{7894072A-9050-4F0F-901B-34B1A0D29417}"/>
 									<Class name="Color" field="Color" value="0.4489815 0.4489815 0.4489815 1.0000000" type="{7894072A-9050-4F0F-901B-34B1A0D29417}"/>
 									<Class name="float" field="Alpha" value="1.0000000" type="{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}"/>
 									<Class name="float" field="Alpha" value="1.0000000" type="{EA2C3E90-AFBE-44D4-A90D-FAAF79BAF93D}"/>

+ 1 - 1
README_GAMELIFT.md

@@ -92,7 +92,7 @@ Record GameSessionId for the next step. Example: arn:aws:gamelift:us-west-2::gam
 
 
 Launch the game client with:
 Launch the game client with:
 ```sh
 ```sh
-    ./build/windows/bin/profile/MultiplayerSample.GameLauncher.exe
+    ./build/windows/bin/profile/MultiplayerSample.GameLauncher.exe --loadlevel="mpsgamelift/prefabs/GameLiftConnectJsonMenu.spawnable"
 ```
 ```
 `
 `
 aws gamelift create-player-session --region us-west-2 --game-session-id <GameSessionId> --player-id Player1
 aws gamelift create-player-session --region us-west-2 --game-session-id <GameSessionId> --player-id Player1

+ 1 - 1
README_GAMELIFT_LOCAL.md

@@ -45,7 +45,7 @@ For example, sv_gameLiftEnabled is used inside AWSGameLiftServerSystemComponent:
         ```
         ```
     Option 2: JSON Menu
     Option 2: JSON Menu
         ```sh
         ```sh
-        ./build/windows/bin/profile/MultiplayerSample.GameLauncher.exe --cl_gameliftLocalEndpoint "http://localhost:8080"
+        ./build/windows/bin/profile/MultiplayerSample.GameLauncher.exe --cl_gameliftLocalEndpoint "http://localhost:8080" --loadlevel="mpsgamelift/prefabs/GameLiftConnectJsonMenu.spawnable"
         ```
         ```
         Provide JSON and click 'Connect':
         Provide JSON and click 'Connect':
         { "GameSessionId": "hello-mps", "PlayerId": "<any_unique_id>", "PlayerSessionId": "not_required_for_gamelift_local" }
         { "GameSessionId": "hello-mps", "PlayerId": "<any_unique_id>", "PlayerSessionId": "not_required_for_gamelift_local" }