Quest Machine and Easy Main Menu

Announcements, support questions, and discussion for Quest Machine.
Post Reply
piratpoddy10
Posts: 2
Joined: Sat May 23, 2020 4:18 am

Quest Machine and Easy Main Menu

Post by piratpoddy10 »

Hello,

i am having trouble with the Quest Machine and the Easy Main Menu. I am using the third person controller from Invector. I have already done the Tutorial with the Shotgun Quest. Everything works fine. But after implementing the Main Menu, the trigger for the Quest and the Journal Button wont work after starting the game from the Main Menu.



I moved the Quest Machine to the main menu. and I tried to do the same thing as recommended with the dialog system but i couldnt find something like Quest Machine Save ...

hope you can help me.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine and Easy Main Menu

Post by Tony Li »

Hi,

When you're using Quest Machine, Dialogue System, Invector, and Easy Main Menu (EMM) in a project, I recommend this setup:
  • Put the Quest Machine and Dialogue Manager GameObjects in the initial scene.
  • The Dialogue Manager GameObject has an InputDeviceManager component, so don't add another one. Add a DialogueSystemSaver component.
  • Put the Save System components (SaveSystem, *DataSerializer, *SavedGameDataStorer, StandardSceneTransitionManager) on either of those GameObjects or its own GameObject.
  • Remember to untick Use Instance on the Invector player in each scene and the inventory UI prefab.
  • Review the input settings in Edit > Project Settings > Input and the assignments to the EventSystem GameObject. Keep in mind that Invector changes the values assigned to the EventSystem at runtime.
piratpoddy10
Posts: 2
Joined: Sat May 23, 2020 4:18 am

Re: Quest Machine and Easy Main Menu

Post by piratpoddy10 »

hi,

thanks for the fast reply !!

i guess i am one step further now..

Now i have the problem that after loading the savedata ( quest completed) the journal button is not working and the quest ! is still there... :|
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine and Easy Main Menu

Post by Tony Li »

When you load, you get a new copy of the player GameObject and its QuestJournal component. You'll need to reconnect your journal button to the new QuestJournal.ToggleJournalUI. For example:

Code: Select all

void Start()
{
    myJournalButton.onClick.AddListener(() => { FindObjectOfType<QuestJournal>().ToggleJournalUI(); });
}
Post Reply