Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Compiler Error with "Creator Kit: RPG"

Discussion in 'Asset Database' started by ReggaeRambo123, Sep 29, 2022.

  1. ReggaeRambo123

    ReggaeRambo123

    Joined:
    Sep 23, 2022
    Posts:
    2
    Hey,
    im new to Unity. I solved the Essentials Pathway and want to go on with the "Get Started with the Creator Kit: RPG":

    https://learn.unity.com/tutorial/ge...uv=2020.3&projectId=5ccc189dedbc2a3ae01f0c0e#

    https://assetstore.unity.com/packages/templates/tutorials/creator-kit-rpg-149309


    I followed the first steps to set up my unity project but when i import the asset i get compiler errors, which i am not able to understand or to solve.

    Compiler Errors:

    Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(8,26): error CS0433: The type 'IsometricRuleTile' exists in both 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Unity.2D.Tilemap.Extras, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

    Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(19,32): error CS0115: 'IsometricRuleTileEditor.RuleMatrixOnGUI(RuleTile, Rect, RuleTile.TilingRule)': no suitable method found to override

    Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(72,32): error CS0507: 'IsometricRuleTileEditor.ContainsMousePosition(Rect)': cannot change access modifiers when overriding 'public' inherited member 'RuleTileEditor.ContainsMousePosition(Rect)'


    I added an example picture of the errors in the c# script, if you need more -> let me know


    Do i have to download/install/add more librarys or anything else to my unity environment?
    Is anyone having same issues?
    Does anyone know how to fix?

    I already tried to set the editor version to the same one, which the project/asset has...

    THANK YOU
     

    Attached Files:

  2. ReggaeRambo123

    ReggaeRambo123

    Joined:
    Sep 23, 2022
    Posts:
    2
    The error in the file is german, but it matches with the first error in my text...
     
  3. Unity_Javier

    Unity_Javier

    Unity Technologies

    Joined:
    Mar 7, 2018
    Posts:
    176
    Hey, so this error is saying that the class IsometricRuleTile exists in your project, but also in Unity.2D.Tilemap.Extras
    So, it doesn't know where to get the definition from.
    If you back up your project and then delete the IsometricRuleTile.cs file in your project that might fix the problem.

    If that doesn't fix the problem, you could edit the namespace inside IsometricRuleTile.cs on your project and change it to something like namespace CreatorKit and give that a try instead.
     
  4. faisaldev1234

    faisaldev1234

    Joined:
    Oct 21, 2022
    Posts:
    1
    Hello, when I did it the following error appeared:
    Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(81,1): error CS1022: Type or namespace definition, or end-of-file expected

    Appreciate your kind support