Jump to content

Unable to build project with Early Access Day Night system


ProjectHaze
Go to solution Solved by Peter,

Recommended Posts

I'm getting the following errors when I try to build my project, after adding the early access Day Night system. It looks like a endif region isn't being closed properly. 

I'm using HDRP and Unity 2021.30f1 LTS

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,13): error CS1519: Invalid token 'if' in class, record, struct, or interface member declaration

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,46): error CS8124: Tuple must contain at least two elements.

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,46): error CS1026: ) expected

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,49): error CS8124: Tuple must contain at least two elements.

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,49): error CS1026: ) expected

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,49): error CS1519: Invalid token '=>' in class, record, struct, or interface member declaration

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,75): error CS1519: Invalid token '==' in class, record, struct, or interface member declaration

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4258,105): error CS1519: Invalid token ')' in class, record, struct, or interface member declaration

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4262,13): error CS1022: Type or namespace definition, or end-of-file expected

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4268,13): error CS8803: Top-level statements must precede namespace and type declarations.

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4269,9): error CS1022: Type or namespace definition, or end-of-file expected

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4271,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4279,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4308,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4388,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4426,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4463,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4772,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4873,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(4932,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5157,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5194,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5227,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5320,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5353,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5393,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5490,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5538,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5558,9): error CS0106: The modifier 'private' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5568,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5631,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5644,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5685,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5707,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5749,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5854,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5869,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(5970,9): error CS0106: The modifier 'public' is not valid for this item

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(6014,5): error CS1022: Type or namespace definition, or end-of-file expected

Assets\Procedural Worlds\Gaia\Scripts\SessionSystem\GaiaSessionManager.cs(6015,1): error CS1022: Type or namespace definition, or end-of-file expected

Error building Player because scripts had compiler errors

Build completed with a result of 'Failed' in 41 seconds (41095 ms)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

UnityEditor.BuildPlayerWindow+BuildMethodException: 41 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <780782bc035845f9909cebbd4c983ae3>:0 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <780782bc035845f9909cebbd4c983ae3>:0 
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

Edited by ProjectHaze
Unity version
Link to comment
Share on other sites

  • Solution

@ProjectHaze I checked and I was able to reproduce the issue, reason was a code change in that version that created issues during build. Please find attached a patch file in a unitypackage that you can install in your project to fix the error. I will also update the download with this fix.

GaiaEANoBuildPatch.zip

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...