Improbable Icon

UE4 RpgDemol.uproject SpatialOSModule not found



Trying to generate sln file. What is this error message trying to tell me?

Running C:/ue4/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/git/RPGDemo/workers/unreal/Game/RpgDemo.uproject” -game -engine -progress
Discovering modules, targets and source code for project…
Messages while compiling C:\git\RPGDemo\workers\unreal\Game\Intermediate\Build\BuildRules\RpgDemoModuleRules.dll:
c:\git\RPGDemo\workers\unreal\Game\Source\RpgDemo\RpgDemo.Build.cs(12,29) : error CS0246: The type or namespace name ‘SpatialOSModule’ could not be found (are you missing a using directive or an assembly reference?)
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files


That module should be added after you generate the schema and project files.


Hi @RobinRowe. Make sure you do a spatial build before generating the Visual Studio project so that all the required SpatialOS files are downloaded and generated.

If you still have a problem let me know.