SpatialOS 11 integration for CRYENGINE 5.4
sdk
contains the C++ files to be included in your CRYENGINE project to integrate with SpatialOS.
tools
contains the project ComponentGenerator
, which is used to generate CRYENGINE Entity Components to mirror your SpatialOS components for use within CRYENGINE from C++ and/or Schematyc.
This is a simple third-person shooter game template produced using the integration.
- Ensure CryENGINE 5.4 or later and
spatial
are installed - Run
spatial worker build
from thetps-example
directory (which will build thegame-worker
) - Generate the solution for
tps-client
by right-clickingGame.cryproject
- Build the solution in Visual Studio to provide the
tps-client
worker. (See below section for more information) - Run
spatial local launch
from thetps-example
directory - Run
GameWorker.exe 0
from the appropriate output directory (we arbitrarily give it worker ID 0) - Run any number of clients by right-clicking
Game.cryproject
and selectingRun Game
(or the exe generated from thePackage Build
option)
At the moment it is currently required to use the generated code provided in the git repository as it has been modified to include default constructors.
Building the solution will overwrite these files (on first build) so it is necessary to checkout these files (tps-client/Code/Generated
) once they have been overwritten.
tps-client
should also be built in the Profile or Release build configuration - linking in the Debug configuration currently fails.