Page 2 of 3

Re: Journal not showing anything

Posted: Wed Jun 19, 2019 2:11 pm
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!

Re: Journal not showing anything

Posted: Wed Jun 19, 2019 2:48 pm
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.

Re: Journal not showing anything

Posted: Wed Jun 19, 2019 3:41 pm
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!

Re: Journal not showing anything

Posted: Wed Jun 19, 2019 3:45 pm
by MilziPPG
Hurrah! It works in my scene!

Thank you so much for your help Tony. You've been absolutely fantastic!

Re: Journal not showing anything

Posted: Wed Jun 19, 2019 3:47 pm
by Tony Li
Awesome! I'm glad it's working in your scene. Happy to help.

Re: Journal not showing anything

Posted: Thu Jul 11, 2019 8:07 am
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

Re: Journal not showing anything

Posted: Thu Jul 11, 2019 8:14 am
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.

Re: Journal not showing anything

Posted: Thu Jul 11, 2019 8:34 am
by neliuz
The Demo scene kinda works ? I cannot accept any quests , therefore dont see if the journal works.

Re: Journal not showing anything

Posted: Thu Jul 11, 2019 9:16 am
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.

Re: Journal not showing anything

Posted: Thu Jul 11, 2019 9:27 am
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