Jump to content

GeNa pro shows error while loading.


Ahmed Swaroar
Go to solution Solved by Peter,

Recommended Posts

These are errors shown while importing package :

Assets\Procedural Worlds\GeNa\Scripts\Editor\Utilities\GeNaEditorUtility.cs(177,65): error CS0426: The type name 'FileConvertType' does not exist in the type 'Constants'

Here are the media files:

https://drive.google.com/file/d/18_MvOQjtJKYMQiWnpErG4yJTz6Ug26Zl/view?usp=sharing

https://drive.google.com/file/d/1lL0IonVztmB7UodxcP3p7gNcS4smF9a_/view?usp=sharing

Link to comment
Share on other sites

  • Solution

@Ahmed Swaroar This error looks like another asset or one of your own scripts would overwrite the meaning of "Constants" in the main namespace. If you double click on the errors, it should open your code editor on the offending line - if you right-click on the word "Constants" and say "Go To Definition" it should open the code file that defines "Constants" in this project. This is then most likely another asset in the project, or one of your own scripts.
If it is another asset, you would need to contact the manufacturer of that asset for a fix, if it is your own script you could add a namespace so it does not create conflicts with code from other authors.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Hi @Peter

I am getting an identical issue to @Ahmed Swaroar at the same line of code and I'm getting the same error with the constant 'RenderPipeline'.  Here are the three instances:

1. Assets\Procedural Worlds\GeNa\Scripts\Editor\Utilities\GeNaEditorUtility.cs(62,99): error CS0426: The type name 'RenderPipeline' does not exist in the type 'Constants'

2. Assets\Procedural Worlds\GeNa\Scripts\Editor\Utilities\GeNaEditorUtility.cs(105,81): error CS0426: The type name 'RenderPipeline' does not exist in the type 'Constants'

3. Assets\Procedural Worlds\GeNa\Scripts\Editor\Utilities\GeNaEditorUtility.cs(177,65): error CS0426: The type name 'FileConvertType' does not exist in the type 'Constants'

In each case, the constant is showing Unknown Symbol within the content of the class GeNa.Constants.  

Following your advice above, I looked at the definition of the constants and it's showing Procedural Words/GeNa/Scripts/Constants.cs.  However neither 'FileConvertType' nor 'RenderPipeline' are defined in the Gena Constants.cs file at all.  I have reinstalled GeNa and double-checked that the constant.cs file matches the GeNa install v3.3.18.

With this in mind, it doesn't sound like a conflict because there's no definition of these GeNa constants.

I have looked for other constants within the project from other assets that might be defining these elsewhere but have not found them yet.  I would have anticipated that these constants would be defined within the Gena install somewhere.

I am using Unity 2020.3.25f1, GeNa Pro 3.3.18 and Universal Render Pipeline.

 

Link to comment
Share on other sites

Just did a project-wide search for "FileConvertType" and the only place it is referenced in the whole project is 9 times within Assets/Procedural Worlds/GeNa/Scripts/Editor/Utilities/GeNaEditorUtility.cs

Any thoughts - it really does sound like constants missing from Gaia's constants.cs file rather than a conflict/namespace issue.

 

Link to comment
Share on other sites

5 hours ago, Zarktor Studios said:

Following your advice above, I looked at the definition of the constants and it's showing Procedural Words/GeNa/Scripts/Constants.cs.  However neither 'FileConvertType' nor 'RenderPipeline' are defined in the Gena Constants.cs file at all.  I have reinstalled GeNa and double-checked that the constant.cs file matches the GeNa install v3.3.18.

Hi, thanks for the detailed report with error messages, versions etc. which helped me to look into this very quickly! I noticed the following: There should be no file
Procedural Words/GeNa/Scripts/Constants.cs
included in GeNa - the definition of the constants class should be part of the .DLL in the core folder. You can double check by looking at the list of files in the package import window or in the asset store content browser:

image.png

Could it be that you had an older version of GeNa installed before? I'm assuming that constants script was a part of GeNa at some point and was still sitting in that directory and now creates a conflict when the new version is installed over. 
In that case it should work if you completely remove the old GeNa folder to do a fresh install - this should remove the old contants.cs (and potentially any other older file) and fix the issue.

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...