Help Newb with Compile Errors

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
stanimal
Posts: 3
Joined: Wed Feb 17, 2021 8:23 am

Help Newb with Compile Errors

Post by stanimal »

I'm getting some compile errors that I don't have any clue how to address. Because I have errors the Playmaker /Dialogue System menu options don't show up and I have no idea what I'm looking at here. I don't have a backup so short of starting a fresh unity project and importing the relevant FSM's and other content, I am at a total loss.

If anyone can help provide step by step instructions or general suggestions I'd be really grateful. When my game isn't completely broken working on it is a great stress release, akin to knitting. When these types of errors come up it's like i'm trying to knit a sweater with uncooked spaghetti noodles for yarn and lobster claws for hands. Please help me make my little hobby fun again!

The details:
I'm using Playmaker, Dialogue System (obvs) on top of Unity RPG Kit (from asset store)

I think most of my problems came after recently attempting to import some new items from EcoSystem browser, but I am not 100% sure as i bounce around smashing my lobster hands on the keyboard/mouse and might have done something inadvertent. I'm not even sure which of the Ecosystem items I tried to add at that specific time, as i was just adding anything that sounded useful or that i'd used before with success.

ERRORS:
Asset Packages/com.unity.ugui/Tests/Editor/Canvas/CanvasElementsMaintainValidPositionsWhenCameraOrthoSizeIsZero.cs has no meta file, but it's in an immutable folder. The asset will be ignored.

Asset Packages/com.unity.ugui/Tests/Editor/Canvas/CanvasElementsMaintainValidPositionsWhenCameraOrthoSizeIsZero.cs has no meta file, but it's in an immutable folder. The asset will be ignored.

Assets\Plugins\Pixel Crushers\Dialogue System\Scripts\Options\Cinemachine\Sequencer Commands\SequencerCommandCinemachinePriority.cs(4,7): error CS0246: The type or namespace name 'Cinemachine' could not be found (are you missing a using directive or an assembly reference?)

Assets\Plugins\Pixel Crushers\Dialogue System\Scripts\Options\Cinemachine\Sequencer Commands\SequencerCommandCinemachineTarget.cs(3,7): error CS0246: The type or namespace name 'Cinemachine' could not be found (are you missing a using directive or an assembly reference?)

Assets\Plugins\Pixel Crushers\Dialogue System\Scripts\Options\Cinemachine\Triggers\CinemachineCameraPriorityOnDialogueEvent.cs(12,16): error CS0246: The type or namespace name 'Cinemachine' could not be found (are you missing a using directive or an assembly reference?)


Thanks in advance!
Stanimal
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help Newb with Compile Errors

Post by Tony Li »

Hi,

The first two errors are unrelated to the Dialogue System. If you clear the Console window, do they disappear? If not, you might be able to resolve it using the Package Manager window. Remove and re-add the Unity UI package.

The remaining errors indicate that the Dialogue System's Cinemachine integration can't find Cinemachine.

If you're using Cinemachine, use the Package Manager window to make sure Cinemachine is imported into your project.

If you're not using Cinemachine, try opening the Dialogue System's Welcome Window (menu item Tools > Pixel Crushers > Dialogue System > Welcome Window). If you can open it, untick the USE_CINEMACHINE checkbox. If you can't open it, select menu item Edit > Project Settings. In Player > Other Settings, remove USE_CINEMACHINE from the Scripting Define Symbols field.

Once you get everything working again, set up a backup system -- or, better yet, version control. Setting up version control isn't the fun part of game development, but it makes the rest of the process more enjoyable because you'll know that you have a backup in the cloud and can revert back to previous versions if something breaks. If you haven't set up version control before, here's a beginner's tutorial:

Basic_GitHub_Desktop_Tutorial_12-12-2020.pdf

It's a barebones minimum set of steps to configure basic version control using Github, certainly not a comprehensive guide to everything version control, but it gets the job done.
stanimal
Posts: 3
Joined: Wed Feb 17, 2021 8:23 am

Re: Help Newb with Compile Errors

Post by stanimal »

Wow, thank you so much for the quick response. Regrettably I've got to switch computers and get to "work" today. I can't wait to try this in the evening. I'll let you know if I'm successful.

One of the things i was thinking about when this happend is that i need to start saving versions. Thanks for that extra info!!!
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help Newb with Compile Errors

Post by Tony Li »

Glad to help!
stanimal
Posts: 3
Joined: Wed Feb 17, 2021 8:23 am

Re: Help Newb with Compile Errors

Post by stanimal »

I was able to get things working again! I'm not sure why, but i ended up needing to reinstall Cinemachine... but at this point i'm just happy that the error is gone and everything i've worked on is there.

Now to work on versioning/backup!

Thanks again!
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help Newb with Compile Errors

Post by Tony Li »

Happy to help, and glad to read that you're back up and running again!
Post Reply