spatialos / gdk-for-unity-fps-starter-project

SpatialOS GDK for Unity FPS Starter Project
https://gdk.improbable.io/spatialos-gdk-unity
MIT License
199 stars 75 forks source link

Why binaries not generated after build using command tool? #61

Closed sywnff closed 5 years ago

sywnff commented 6 years ago

Description

I run "spatial.exe worker build" successfully, but the binary not generated. Why? Dose this project on be compiled in Unity IDE?

executed below in gdk-for-unity-fps-starter-project root directory.

$ ../spatial.exe diagnose
Microsoft Visual C++ (MSVC) Redistributable
  [SUCCESS]
  - Found version 14.15.26706.
Network access
  [SUCCESS]
  - All checks passed
  - Installed at 'D:\spatial\spatial.exe'.
Project's SpatialOS SDK
  [SUCCESS]
  - Found version 14.0-b6143-48ac8-WORKER-SNAPSHOT.
Spatial CLI SDK plugin
  [SUCCESS]
  - Installed at 'C:\Users\sywnff\AppData\Local\.improbable\bin\plugins\sdk\14.0-b6143-48ac8-WORKER-SNAPSHOT\sdk.exe'.
  - Found version 14.0.
Spatial CLI tool
  [SUCCESS]
  - Installed at 'D:\spatial\spatial.exe'.
  - Found version 20181024.91945.

Results
  All diagnostic checks passed successfully.
'spatial diagnose' succeeded (23.8s)

$ ../spatial.exe worker build UnityGameLogic --log_level=debug
Looking for a 'spatial' configuration file at 'C:\Users\sywnff\AppData\Local\.improbable\spatial\config.pb.json'
Read 'spatial' configuration: use_new_command_structure:true enable_plugins:true .
Detected legacy project structure at D:\spatial\gdk-for-unity-fps-starter-project
Enabling plugins for supported SDK version '14.0-b6143-48ac8-WORKER-SNAPSHOT'
using local event logger
starting wrapper services endpoint
health-check message from wrapper service received
wrapper service started successfully in 7.0004ms after 1 attempt(s)
Importing the SDK plugin for project SDK version '14.0-b6143-48ac8-WORKER-SNAPSHOT'.
Retrieved the plugin commands from cache.
Adding new command: 'build'.
Adding new command: 'clean'.
Adding new command: 'codegen'.
Adding new command: 'diagnose'.
Adding new command: 'exec'.
Adding new command: 'file'.
Not changing existing command as imported command does not have an implementation: 'local'.
Not changing existing command as imported command does not have an implementation: 'worker'.
Adding new command: 'launch'.
Adding aliases to 'package' command: worker_package
Adding new command: 'clean'.
Adding new command: 'unpack'.
Adding new command: 'unpack-to'.
Adding new command: 'prepare-for-run'.
Not changing existing command as imported command does not have an implementation: 'project'.
Not changing existing command as imported command does not have an implementation: 'history'.
Not changing existing command as imported command does not have an implementation: 'snapshot'.
Adding new command: 'convert'.
Adding new command: 'schema'.
Adding new command: 'setup'.
Adding new command: 'worker'.
Executing command: [C:\Users\sywnff\AppData\Local\.improbable\bin\plugins\sdk\14.0-b6143-48ac8-WORKER-SNAPSHOT\sdk.exe worker build --wrapper_service_port 1443 -- UnityGameLogic].
Found project root at D:\spatial\gdk-for-unity-fps-starter-project
Running within a SpatialOS project, using the default input paths '[D:\spatial\gdk-for-unity-fps-starter-project\schema D:\spatial\gdk-for-unity-fps-starter-project\build\dependencies\schema\standard_library]'
Executing '[C:\Users\sywnff\AppData\Local\.improbable\bin\plugins\sdk\14.0-b6143-48ac8-WORKER-SNAPSHOT\sdk.exe worker build --wrapper_service_port 1443 -- UnityGameLogic]' in 'D:\spatial\gdk-for-unity-fps-starter-project'
checking cache location at 'C:\Users\sywnff\AppData\Local\.improbable\cache\worker_package\14.0-b6143-48ac8-WORKER-SNAPSHOT\schema\standard_library.zip'
package was found in the cache
Skipping extraction of [C:\Users\sywnff\AppData\Local\Temp\schema-extraction575020523\standard_library.zip] to D:\spatial\gdk-for-unity-fps-starter-project\build\dependencies\schema\standard_library. Nothing has changed.
Found version '14.0-b6143-48ac8-WORKER-SNAPSHOT' in project descriptor in directory D:\spatial\gdk-for-unity-fps-starter-project
Building worker assemblies.
Generating bridge settings for UnityGameLogic.
Generating managed worker configuration for UnityGameLogic.
Building schema descriptor.
Found version '14.0-b6143-48ac8-WORKER-SNAPSHOT' in project descriptor in directory D:\spatial\gdk-for-unity-fps-starter-project
checking cache location at 'C:\Users\sywnff\AppData\Local\.improbable\cache\worker_package\14.0-b6143-48ac8-WORKER-SNAPSHOT\tools\schema_compiler-x86_64-win32.zip'
package was found in the cache
checking cache location at 'C:\Users\sywnff\AppData\Local\.improbable\cache\worker_package\14.0-b6143-48ac8-WORKER-SNAPSHOT\tools\schema_compiler-x86_64-win32.zip'
package was found in the cache
C:\Users\sywnff\AppData\Local\Temp\improbable_extracted_packages\b2b9c4944218ccb443a5ca6c85202d46\schema_compiler.exe: No outputs specified, validating schema only.
No changes detected, skipping code generation.
Found version '14.0-b6143-48ac8-WORKER-SNAPSHOT' in project descriptor in directory D:\spatial\gdk-for-unity-fps-starter-project
Running task 'build' for 'UnityGameLogic'
[1/1] > build ** Run ci/build-gamelogic.sh instead **
In '', echo [No-op.]
No-op.
[1/1] < build ** Run ci/build-gamelogic.sh instead ** (30ms)
succeeded (30ms)
'spatial worker build' succeeded (0.1s)
event uploader is done
wrapper services endpoint shut down gracefully

$ ls build/assembly/
schema/  UnityGameLogic/

Environment

Windows7, X86_64

jamiebrynes7 commented 5 years ago

Hey @sywnff, the spatial worker build command is not supported in the GDK.

It can be compiled from outside the Unity GUI by invoking the static build method.

See ci/build.sh for an example