- You've gone through the SDK setup guide for Windows and have everything installed.
- You have a project. You can use one of the examples at the SpatialOS GitHub repository.
Make sure your project name (SpatialOS documentation) is set correctly in your
project (SpatialOS documentation)'s spatialos.json
:
-
In the project's root directory, open
spatialos.json
. This file holds your project's global configuration. -
In the
name
field, make sure the value is your assigned SpatialOS project name.You can find your project name in the Console. It'll be something like
beta_someword_anotherword_000
.
In our example projects, the project name is set to
your_project_name_here
.
You must change this. If you don't:
spatial upload
will fail with the errorcode = PermissionDenied desc = No permission to create assembly...
- deployments (SpatialOS documentation) will fail with the error
Encountered an error during command execution. no permissions to access Project...
Before you can do any development on your project, you need to initialise it:
-
Open a terminal, navigate to the root folder of your project and run
spatial worker codegen
. -
If you are not using one of our starter projects, you must add
"SpatialOS"
to yourPublicDependencyModuleNames
in yourBuild.cs
file.This will set up your include paths next time you generate VS project files.
-
Locate the Unreal project file for your project. This can be found in
PROJECT_ROOT/workers/unreal/Game
. -
Right-click on your project’s
.uproject
file and select Switch Unreal Engine version. -
Switch engine versions to the source-built version you just built.
-
Run
spatial worker build
. This may take an hour or more.
This will build an assembly used for both local and cloud SpatialOS deployments.
If you open your project with another version of Unreal Engine, it will rebuild the entire project.