Journal not showing anything

Announcements, support questions, and discussion for Quest Machine.
MilziPPG
Posts: 33
Joined: Sat Jun 15, 2019 5:25 am

Re: Journal not showing anything

Post by MilziPPG »

Hmmm, for some reason, I get 2 error messages when I imported the TDEQuestMachineHelper -

Assets/Quest Machine Examples/TDE Example/Scripts/TDEQuestMachineHelper.cs(62,32): error CS7036: There is no argument given that corresponds to the required formal parameter 'originCharacter' of 'TopDownEngineEvent.Trigger(TopDownEngineEventTypes, Character)'

Assets/Quest Machine Examples/TDE Example/Scripts/TDEQuestMachineHelper.cs(62,32): error CS7036: There is no argument given that corresponds to the required formal parameter 'originCharacter' of 'TopDownEngineEvent.Trigger(TopDownEngineEventTypes, Character)'

I checked the code and the two lines it is referring to are -

Code: Select all

TopDownEngineEvent.Trigger(TopDownEngineEventTypes.Pause);
TopDownEngineEvent.Trigger(TopDownEngineEventTypes.Pause);
I followed your instructions so not sure what I did wrong!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal not showing anything

Post by Tony Li »

Hi,

You did nothing wrong. I made the example in Unity 2018.4. TDE is great, but I'm not a fan of how he leaves older TDE versions on the Asset Store for older versions of Unity and hides just the tiniest notice of the newer version's required Unity version at the bottom of the release notes foldout. I should've made the example in Unity 2019. Here's an example in Unity 2019.1:

QM_TDE_Example_2019-06-19.unitypackage

Alternatively, you could just change those 2 lines from:

Code: Select all

TopDownEngineEvent.Trigger(TopDownEngineEventTypes.Pause);
to:

Code: Select all

TopDownEngineEvent.Trigger(TopDownEngineEventTypes.Pause, null);
TDE's API changed, and the latest version requires an extra parameter that can be null.
MilziPPG
Posts: 33
Joined: Sat Jun 15, 2019 5:25 am

Re: Journal not showing anything

Post by MilziPPG »

It works in the test scene! I'm trying to test it now in my own scene but still not getting it to work. However, I know that it's something wrong with how I've set it up so I just need to do some tweaking and I'm sure I'll be there in now time!
MilziPPG
Posts: 33
Joined: Sat Jun 15, 2019 5:25 am

Re: Journal not showing anything

Post by MilziPPG »

Hurrah! It works in my scene!

Thank you so much for your help Tony. You've been absolutely fantastic!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal not showing anything

Post by Tony Li »

Awesome! I'm glad it's working in your scene. Happy to help.
neliuz
Posts: 6
Joined: Thu Jul 11, 2019 4:48 am

Re: Journal not showing anything

Post by neliuz »

Hi there,

I read through this post about Journal not showing anything, and i couldent really find a solution for it..
Cause i am experiencing the same thing.. Pluss i dont get the hero_portrait image to show up as well, i can see it is attached to the image component but it disappears as soon as i start the game..

I do get the text i am creating for the HUD UI but i cannot see anything for the Journal UI at all..

Whats the solution ?

Thank you and best regards

Cornelius
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal not showing anything

Post by Tony Li »

Hi,

Does Quest Machine's Demo scene work correctly in your project?

If so, then in your own scene is there a Quest Journal component? If so, make sure a portrait image is assigned to the ID section.

If there are any errors or warnings in the Console, please post them here.
neliuz
Posts: 6
Joined: Thu Jul 11, 2019 4:48 am

Re: Journal not showing anything

Post by neliuz »

The Demo scene kinda works ? I cannot accept any quests , therefore dont see if the journal works.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Journal not showing anything

Post by Tony Li »

If the Demo scene doesn't completely work, let's address that first.

If you import Quest Machine into a new, empty project, does the Demo scene work correctly? For example, you should be able to talk to the Villager NPC and pick up two quests. Those quests will appear in your Quest Journal UI.
neliuz
Posts: 6
Joined: Thu Jul 11, 2019 4:48 am

Re: Journal not showing anything

Post by neliuz »

Hi Tony,

I just created a brand new project in unity and imported the package from asset store.
Tested the Demo scene, and nothing :( the people in the scene there are just able to speak but i cannot accept any quests.

Best regards

Cornelius
Post Reply