Skip to content

Commit bfac8c8

Browse files
Merging final GDK for Unreal 0.13.0 release
Release 0.13.0
2 parents b2ba5bd + aefa507 commit bfac8c8

13 files changed

+109
-205
lines changed

.buildkite/nightly.steps.yaml

+23-57
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,26 @@
11
---
2-
# This is designed to trap and retry failures because agent lost
3-
# connection. Agent exits with -1 in this case.
4-
agent_transients: &agent_transients
5-
exit_status: -1
6-
limit: 3
7-
# BK system error
8-
bk_system_error: &bk_system_error
9-
exit_status: 255
10-
limit: 3
11-
# job was interrupted by a signal (e.g. ctrl+c etc)
12-
bk_interrupted_by_signal: &bk_interrupted_by_signal
13-
exit_status: 15
14-
limit: 3
15-
16-
script_runner: &script_runner
17-
agents:
18-
- "agent_count=8"
19-
- "capable_of_building=platform"
20-
- "environment=production"
21-
- "machine_type=quarter"
22-
- "permission_set=builder"
23-
- "platform=linux"
24-
- "queue=${CI_LINUX_BUILDER_QUEUE:-v4-20-08-12-083656-bk14222-38697241}"
25-
- "scaler_version=2"
26-
- "working_hours_time_zone=london"
27-
retry:
28-
automatic:
29-
- <<: *agent_transients
30-
- <<: *bk_system_error
31-
- <<: *bk_interrupted_by_signal
32-
33-
# NOTE: step labels turn into commit-status names like {org}/{repo}/{pipeline}/{step-label}, lower-case and hyphenated.
34-
# These are then relied on to have stable names by other things, so once named, please beware renaming has consequences.
35-
env:
36-
SLACK_CHANNEL: "#unreal-gdk-builds"
37-
GDK_REPOSITORY: "git@github.com:spatialos/UnrealGDK.git"
38-
MAIN_MAP_NAME: "Control_Small"
39-
SPATIAL_PROJECT_NAME: "unreal_gdk"
40-
SPATIAL_RUNTIME_VERSION: "15.0.0" ## the runtime version of SpatialOS
2+
ci_version: &ci_version "1.1"
413

424
steps:
43-
- label: "generate-pipeline-steps"
44-
commands:
45-
- "chmod -R +rwx ci"
46-
- "ci/generate-pipeline-steps.sh"
47-
env:
48-
ENGINE_VERSION: "${ENGINE_VERSION}"
49-
<<: *script_runner
50-
51-
- wait
52-
53-
- label: "slack-notify"
54-
if: |
55-
build.env("NIGHTLY_BUILD") == "true" ||
56-
build.env("SLACK_NOTIFY") == "true" ||
57-
build.env("FIREBASE_TEST") == "true" ||
58-
build.branch == "master"
59-
command: "python3 ci/slack-notify.py"
60-
<<: *script_runner
5+
# New build pipeline
6+
# Trigger a 4.26 build
7+
- trigger: "unrealgdkbuild-ci"
8+
label: "exampleproject-ci"
9+
async: false
10+
build:
11+
branch: *ci_version
12+
message: "exampleproject-4.26 ${BUILDKITE_MESSAGE}"
13+
env:
14+
BUILD_TYPE: "EXAMPLE"
15+
GDK_BRANCH: "${GDK_BRANCH:-0.13.0}" # NOTE: temp fix for new ci release interop issues
16+
ENGINE_BRANCH: "${ENGINE_BRANCH:-4.26-SpatialOSUnrealGDK-0.13.0}" # NOTE: temp fix for new ci release interop issues
17+
ENGINE_MAJOR: "4.26"
18+
PROJECT_BRANCH: "${BUILDKITE_BRANCH}"
19+
USE_FASTBUILD: "True"
20+
IS_BUILDKITE_BUILD: "True"
21+
BUILD_ANDROID: "True"
22+
SKIP_TESTS: "True"
23+
CLEAN_BUILD: "False"
24+
START_DEPLOYMENT: "True"
25+
SPATIAL_PROJECT_NAME: "unreal_gdk"
26+
# TODO: bring back deployment link notifies UNR-5391

DeployGame.bat

-30
This file was deleted.

Game/Config/DefaultEngine.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GameDefaultMap=/Engine/Maps/Entry.Entry
33
EditorStartupMap=/Game/Maps/Control_Small.Control_Small
44
GlobalDefaultGameMode=/Game/GameMode/BP_ControlGameMode.BP_ControlGameMode_C
5-
GameInstanceClass=/Game/GameMode/BP_GDKShooterGameInstance.BP_GDKShooterGameInstance_C
5+
GameInstanceClass=/Script/SpatialGDK.SpatialGameInstance
66
GlobalDefaultServerGameMode=None
77
ServerDefaultMap=/Game/Maps/Control_Small.Control_Small
88

@@ -108,3 +108,4 @@ EnginePak=(Type=ReadPak, Filename=../../../Engine/DerivedDataCache/DDC.ddp)
108108
; Shared DDC location setup
109109
; Shared=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, DeleteUnused=true, UnusedFileAge=19, FoldersToClean=-1, Path=\\mystudio.net\DDC, EnvPathOverride=UE-SharedDataCachePath)
110110
; AltShared=(Type=FileSystem, ReadOnly=true, Clean=false, Flush=false, DeleteUnused=true, UnusedFileAge=19, FoldersToClean=-1, Path=\\mystudio.net\DDC2, EnvPathOverride=UE-SharedDataCachePath2)
111+

Game/Config/DefaultGame.ini

+5
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ MaxSpectators=100
1515
+MapsToCook=(FilePath="/Game/Maps/Control_Medium")
1616
+MapsToCook=(FilePath="/Game/Maps/Control_Small")
1717
+DirectoriesToAlwaysCook=(Path="/Game/Spatial")
18+
19+
[Staging]
20+
+WhitelistConfigFiles=GDKShooter/Config/DefaultSpatialGDKEditorSettings.ini
21+
+WhitelistConfigFiles=GDKShooter/Config/DefaultSpatialGDKSettings.ini
22+
+WhitelistConfigFiles=Engine/Config/DefaultSpatialGDKSettings.ini
Binary file not shown.

Game/GDKShooter.uproject

+28-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,33 @@
2525
{
2626
"Name": "SpatialGDK",
2727
"Enabled": true
28+
},
29+
{
30+
"Name": "MagicLeapMedia",
31+
"Enabled": false,
32+
"SupportedTargetPlatforms": [
33+
"Lumin"
34+
]
35+
},
36+
{
37+
"Name": "MagicLeap",
38+
"Enabled": false,
39+
"SupportedTargetPlatforms": [
40+
"Lumin",
41+
"Mac",
42+
"Win64"
43+
]
44+
},
45+
{
46+
"Name": "LuminPlatformFeatures",
47+
"Enabled": false,
48+
"SupportedTargetPlatforms": [
49+
"Lumin"
50+
]
51+
},
52+
{
53+
"Name": "MLSDK",
54+
"Enabled": false
2855
}
2956
]
30-
}
57+
}

Game/Source/GDKShooter/Private/Game/Components/SpatialSessionStateComponent.cpp

+13-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#include "Engine/World.h"
66
#include "Net/UnrealNetwork.h"
77
#include "EngineClasses/SpatialNetDriver.h"
8-
#include "Interop/SpatialStaticComponentView.h"
98
#include "Interop/Connection/SpatialWorkerConnection.h"
9+
#include "SpatialView/EntityView.h"
1010

1111
void USpatialSessionStateComponent::SendStateUpdate(EGDKSessionProgress SessionProgressState)
1212
{
@@ -18,7 +18,18 @@ void USpatialSessionStateComponent::SendStateUpdate(EGDKSessionProgress SessionP
1818
}
1919

2020
USpatialNetDriver* SpatialNetDriver = Cast<USpatialNetDriver>(NetDriver);
21-
bool bAuthoritativeOverSessionEntity = SpatialNetDriver->StaticComponentView->HasAuthority(SessionEntityId, SessionComponentId);
21+
22+
const bool bAuthoritativeOverSessionEntity = [this, SpatialNetDriver]()
23+
{
24+
const SpatialGDK::EntityViewElement* SessionEntity = SpatialNetDriver->Connection->GetView().Find(
25+
SessionEntityId);
26+
if (SessionEntity != nullptr)
27+
{
28+
return SessionEntity->Authority.Contains(SessionComponentId);
29+
}
30+
return false;
31+
}();
32+
2233
if (!bAuthoritativeOverSessionEntity)
2334
{
2435
return;

LaunchSpatial.bat

-13
This file was deleted.

UnrealGDKVersion.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.0
1+
0.13.0

ci/run-firebase-test.py

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def gcloud_upload(app_platform, app_path, gcloud_storage_keyword, success_keywor
6868
ios_device = common.get_environment_variable(
6969
'IOS_DEVICE_AND_VERSION', 'model=iphonexs,version=12.0')
7070
cmds.append('--device ' + ios_device)
71+
elif app_platform == 'android':
72+
android_device = common.get_environment_variable(
73+
'ANDROID_DEVICE_AND_VERSION', 'model=walleye,version=28')
74+
cmds.append('--device ' + android_device)
7175

7276
res = common.run_shell(cmds)
7377
gcloud_storage_url = ''

spatial/one_worker_test.json

+31-25
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,52 @@
55
"snapshots": {
66
"snapshotWritePeriodSeconds": 0
77
},
8-
"legacy_flags": [
9-
{
10-
"name": "bridge_soft_handover_enabled",
11-
"value": "false"
12-
}
13-
],
8+
"legacy_flags": [{
9+
"name": "bridge_soft_handover_enabled",
10+
"value": "false"
11+
}],
1412
"dimensions": {
1513
"xMeters": 2000,
1614
"zMeters": 2000
1715
}
1816
},
1917
"load_balancing": {
20-
"layer_configurations": [
21-
{
22-
"layer": "UnrealWorker",
23-
"rectangle_grid": {
24-
"cols": 1,
25-
"rows": 1
26-
}
18+
"layer_configurations": [{
19+
"layer": "UnrealWorker",
20+
"rectangle_grid": {
21+
"cols": 1,
22+
"rows": 1
2723
}
28-
]
24+
}]
2925
},
30-
"workers": [
31-
{
26+
"workers": [{
3227
"worker_type": "UnrealWorker",
3328
"flags": [],
34-
"permissions": [
35-
{
36-
"all": {}
37-
}
38-
]
29+
"permissions": [{
30+
"all": {}
31+
}]
3932
},
4033
{
4134
"worker_type": "UnrealClient",
4235
"flags": [],
43-
"permissions": [
44-
{
45-
"all": {}
36+
"permissions": [{
37+
"entity_creation": {
38+
"allow": false
39+
},
40+
"entity_deletion": {
41+
"allow": false
42+
},
43+
"entity_query": {
44+
"allow": true,
45+
"components": [
46+
"*"
47+
]
48+
},
49+
"system_entity_command": {
50+
"allow": false
4651
}
47-
]
52+
53+
}]
4854
}
4955
]
5056
}

spatial/spatialos.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "your_project_name_here",
33
"project_version": "0.0.1",
4-
"sdk_version": "15.0.0",
4+
"sdk_version": "15.0.1",
55
"dependencies": [
66
{
77
"name": "standard_library",
8-
"version": "15.0.0"
8+
"version": "15.0.1"
99
}
1010
]
1111
}

0 commit comments

Comments
 (0)