-
Notifications
You must be signed in to change notification settings - Fork 30
Flexible Project Layout - Minimal #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
@echo off | ||
echo Starting a local Spatial deployment with the default launch configuration. Modify LaunchSpatial.bat if you want to use a different launch configuration. | ||
|
||
pushd "%~dp0\spatial" | ||
pushd %~dp0 | ||
|
||
spatial worker build build-config | ||
call %~dp0Game\Plugins\UnrealGDK\SpatialGDK\Build\Scripts\BuildProto.bat %~dp0spatial\schema %~dp0spatial\build\dependencies\schema\standard_library\ %~dp0spatial\build\descriptor\output\schema.descriptor | ||
|
||
rem To launch a local Spatial deployment with a different launch configuration, change the default_launch.json argument to the name of your configuration file, | ||
rem for example one_worker_test.json or two_worker_test.json. Similarly, you can specify a different snapshot than the default one by replacing the value of | ||
rem the --snapshot argument with the path to the snapshot you want to launch with. | ||
spatial local launch default_launch.json --snapshot=snapshots/default.snapshot | ||
spatial alpha local launch --main_config=spatial\spatialos.json --launch_config=spatial\deployment.json --log_directory=spatial\logs | ||
|
||
popd | ||
|
||
pause | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,53 @@ | ||
{ | ||
"template": "small", | ||
"world": { | ||
"dimensions": { | ||
"x_meters": 2000, | ||
"z_meters": 2000 | ||
}, | ||
"chunk_edge_length_meters": 50, | ||
"streaming_query_interval": 4, | ||
"legacy_flags": [ | ||
{ | ||
"name": "streaming_query_diff", | ||
"value": "true" | ||
}, | ||
{ | ||
"name": "bridge_qos_max_timeout", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "bridge_soft_handover_enabled", | ||
"value": "false" | ||
}, | ||
{ | ||
"name": "qos_max_unacked_pings_rate", | ||
"value": "10" | ||
} | ||
], | ||
"snapshots": { | ||
"snapshot_write_period_seconds": 0 | ||
} | ||
}, | ||
"load_balancing": { | ||
"layer_configurations": [ | ||
{ | ||
"layer": "UnrealWorker", | ||
"rectangle_grid": { | ||
"cols": 1, | ||
"rows": 1 | ||
}, | ||
"options": { | ||
"manual_worker_connection_only": true | ||
} | ||
} | ||
] | ||
}, | ||
"workers": [ | ||
{ | ||
"worker_type": "UnrealWorker", | ||
"flags" : [], | ||
"permissions": [ | ||
{ | ||
"all": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"worker_type": "UnrealClient", | ||
"permissions": [ | ||
{ | ||
"all": {} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
"template": "small", | ||
"dimensionsInWorldUnits": { | ||
"x": "2000", | ||
"z": "2000" | ||
}, | ||
"loadBalancing": { | ||
"layerConfigurations": [ | ||
{ | ||
"layer": "UnrealWorker", | ||
"rectangleGrid": { | ||
"cols": 1, | ||
"rows": 1 | ||
}, | ||
"options": { | ||
"manualWorkerConnectionOnly": true | ||
} | ||
} | ||
] | ||
}, | ||
"snapshot": { | ||
|
||
}, | ||
"streamingQueryInterval": "4", | ||
"runtimeFlags": [ | ||
{ | ||
"name": "streaming_query_diff", | ||
"value": "true" | ||
}, | ||
{ | ||
"name": "bridge_qos_max_timeout", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "bridge_soft_handover_enabled", | ||
"value": "false" | ||
}, | ||
{ | ||
"name": "qos_max_unacked_pings_rate", | ||
"value": "10" | ||
} | ||
], | ||
"workerFlags": [ | ||
{ | ||
"workerType": "UnrealWorker", | ||
"flags": [ | ||
] | ||
}, | ||
{ | ||
"workerType": "UnrealClient" | ||
} | ||
] | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
{ | ||
"template": "small", | ||
"world": { | ||
"chunkEdgeLengthMeters": 50, | ||
"snapshots": { | ||
"snapshotWritePeriodSeconds": 0 | ||
}, | ||
"legacy_flags": [ | ||
{ | ||
"name": "bridge_soft_handover_enabled", | ||
"value": "false" | ||
}, | ||
{ | ||
"name": "enable_chunk_interest", | ||
"value": "false" | ||
} | ||
], | ||
"dimensions": { | ||
"xMeters": 2000, | ||
"zMeters": 2000 | ||
} | ||
}, | ||
"load_balancing": { | ||
"layer_configurations": [ | ||
{ | ||
"layer": "UnrealWorker", | ||
"rectangle_grid": { | ||
"cols": 1, | ||
"rows": 1 | ||
"template": "small", | ||
"dimensionsInWorldUnits": { | ||
"x": "2000", | ||
"z": "2000" | ||
}, | ||
"loadBalancing": { | ||
"layerConfigurations": [ | ||
{ | ||
"layer": "UnrealWorker", | ||
"rectangleGrid": { | ||
"cols": 1, | ||
"rows": 1 | ||
} | ||
}, | ||
{ | ||
"layer": "DeploymentManager", | ||
"rectangle_grid": { | ||
"rectangleGrid": { | ||
"cols": 1, | ||
"rows": 1 | ||
}, | ||
"options": { | ||
"manual_worker_connection_only": true | ||
"manualWorkerConnectionOnly": true | ||
} | ||
} | ||
] | ||
] | ||
}, | ||
"workers": [ | ||
"snapshot": { | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, probably don't need it. |
||
}, | ||
"streamingQueryInterval": "4", | ||
"runtimeFlags": [ | ||
{ | ||
"name": "streaming_query_diff", | ||
"value": "true" | ||
}, | ||
{ | ||
"name": "bridge_qos_max_timeout", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "bridge_soft_handover_enabled", | ||
"value": "false" | ||
}, | ||
{ | ||
"name": "worker_start_connection_timeout_ms", | ||
"value": "60000" | ||
}, | ||
{ | ||
"worker_type": "UnrealWorker", | ||
"flags": [], | ||
"permissions": [ | ||
{ | ||
"all": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"worker_type": "UnrealClient", | ||
"flags": [], | ||
"permissions": [ | ||
{ | ||
"all": {} | ||
} | ||
] | ||
"name": "enable_chunk_interest", | ||
"value": "false" | ||
} | ||
] | ||
], | ||
"workerFlags": [ | ||
{ | ||
"workerType": "UnrealWorker", | ||
"flags": [ | ||
] | ||
}, | ||
{ | ||
"workerType": "UnrealClient" | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"name": "your_project_name_here", | ||
"project_version": "0.0.1", | ||
"sdk_version": "13.7.1", | ||
"dependencies": [ | ||
{ | ||
"name": "standard_library", | ||
"version": "13.7.1" | ||
} | ||
] | ||
"configurationVersion": "0.1", | ||
"projectName": "your_project_name_here", | ||
"schemaDescriptor": "./build/descriptor/output/schema.descriptor", | ||
"clientWorkers": [ | ||
"./workers/unreal/spatialos.UnrealClient.worker.json" | ||
], | ||
"serverWorkers": [ | ||
"./workers/unreal/spatialos.UnrealWorker.worker.json" | ||
], | ||
"launchConfiguration": "./default_launch.json" | ||
} |
69 changes: 24 additions & 45 deletions
69
spatial/workers/unreal/spatialos.UnrealClient.worker.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,28 @@ | ||
{ | ||
"build": { | ||
"tasks": [ | ||
{ | ||
"name": "codegen", | ||
"description": "required by spatial worker build build-config.", | ||
"steps": [{"name": "No-op", "command": "echo", "arguments": ["No-op."]}] | ||
}, | ||
{ | ||
"name": "build", | ||
"description": "required by spatial worker build build-config.", | ||
"steps": [{"name": "No-op", "command": "echo", "arguments": ["No-op."]}] | ||
}, | ||
{ | ||
"name": "clean", | ||
"description": "required by spatial worker build build-config.", | ||
"steps": [{"name": "No-op", "command": "echo", "arguments": ["No-op."]}] | ||
} | ||
] | ||
}, | ||
"bridge": { | ||
"worker_attribute_set": { | ||
"attributes": [ | ||
"UnrealClient" | ||
] | ||
"workerType": "UnrealClient", | ||
"layer": "UnrealClient", | ||
"entityInterest": { | ||
"rangeEntityInterest": { | ||
"radius": 50 | ||
} | ||
}, | ||
"entity_interest": { | ||
"range_entity_interest": { | ||
"radius": 50 | ||
} | ||
"componentDelivery": { | ||
"default": "RELIABLE_ORDERED", | ||
"checkoutAllInitially": true | ||
}, | ||
"streaming_query": [ | ||
{ | ||
"global_component_streaming_query": { | ||
"component_name": "unreal.SingletonManager" | ||
} | ||
}, | ||
{ | ||
"global_component_streaming_query": { | ||
"component_name": "unreal.Singleton" | ||
"permissions": { | ||
"all": {} | ||
}, | ||
"streamingQuery": [ | ||
{ | ||
"globalComponentStreamingQuery": { | ||
"componentName": "unreal.SingletonManager" | ||
} | ||
}, | ||
{ | ||
"globalComponentStreamingQuery": { | ||
"componentName": "unreal.Singleton" | ||
} | ||
} | ||
} | ||
], | ||
"component_delivery": { | ||
"default": "RELIABLE_ORDERED", | ||
"checkout_all_initially": true | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove
snapshot
entirely? It should not be an issue.