Search found 26 matches
- Mon Jun 06, 2022 2:48 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Re: Loading new scene unregisters Lua functions
Ok I found the error. There was another object with the "DIalogue System Bolt Lua" component on it which caused the Functions to be unregistered when the scene transition happened because it only existed in the first scene. I'm so sorry to have taken up your time Tony. I don't know if you ...
- Mon Jun 06, 2022 2:26 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Re: Loading new scene unregisters Lua functions
Ok, sry I missread the part about "dont destroy on load". Both of the components you mentioned are only on the DM. Would it be possible to manually reregister the Bolt Lua functions per script in the new scene? Unfortunatelly I can't code and I only use Bolt so I'm really lost right now. I...
- Mon Jun 06, 2022 2:09 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Re: Loading new scene unregisters Lua functions
When I try to untick the Dont destroy on Load checkbox on the DM it doesn't let me because of the save system. I've attached a screenshot on the previous post. Shouldn't I put the save system on the DM then?
- Mon Jun 06, 2022 2:00 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Re: Loading new scene unregisters Lua functions
Ok... I played it again and now I see in the console that the DS is unregistering all BoltEvents when the scene transition happens.
I've attached a screenshot from all the scripts on the DIalogue Manager. I don't know if this helps.
I've attached a screenshot from all the scripts on the DIalogue Manager. I don't know if this helps.
- Mon Jun 06, 2022 1:43 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Re: Loading new scene unregisters Lua functions
Hi Tony,
The Dialogue System Bolt Lua component is already added to the dialogue manager. I just played the scene with the Dialogue Manager set to Info and there is nothing about it unregistering the Bolt Functions in the console.
I use the "LoadLevel()" sequencer command to switch scenes.
The Dialogue System Bolt Lua component is already added to the dialogue manager. I just played the scene with the Dialogue Manager set to Info and there is nothing about it unregistering the Bolt Functions in the console.
I use the "LoadLevel()" sequencer command to switch scenes.
- Mon Jun 06, 2022 1:00 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Re: Loading new scene unregisters Lua functions
I've added a Dialogue System Saver, PlayerPrefs Saved game Data Storer, a Json Data Serializer and the Save System Component to the DIalogue Manager now. So now it should automatically use your save system, right?
Unfortunatelly it still gives me the same Lua-Error.
Unfortunatelly it still gives me the same Lua-Error.
- Mon Jun 06, 2022 12:04 pm
- Forum: Dialogue System for Unity
- Topic: Loading new scene unregisters Lua functions
- Replies: 10
- Views: 889
Loading new scene unregisters Lua functions
Hi Tony, I have a dialogue in which the last dialogue entry triggers a scene transition. It transitions well but the dialogue system won't trigger any of my BoltEvents in the new scene. It gives me the error: Dialogue System: Lua code 'BoltEvent("Target", "PressButton")' threw ex...
- Thu Jun 02, 2022 2:14 pm
- Forum: Dialogue System for Unity
- Topic: Variable doesn't get set correctly
- Replies: 5
- Views: 520
Re: Variable doesn't get set correctly
I fixed it by putting the variable update at the start of the conversation. In the end of the dialogue it could branch in two directions and in both the variable would be updated... it's weird thought that it triggered two times even though the player could only go down one branch. As long as it wor...
- Thu Jun 02, 2022 9:21 am
- Forum: Dialogue System for Unity
- Topic: Variable doesn't get set correctly
- Replies: 5
- Views: 520
Re: Variable doesn't get set correctly
Thank you. Now I could check the variable change at runtime and I saw that it changes from 0 to 2 eventhough my script tells it to add 1: Variable["Interactions"] = Variable["Interactions"] + 1
Do you have any idea how this could happen?
Do you have any idea how this could happen?
- Thu Jun 02, 2022 8:38 am
- Forum: Dialogue System for Unity
- Topic: Variable doesn't get set correctly
- Replies: 5
- Views: 520
Variable doesn't get set correctly
Hi Tony, I created a variable "Room_Interactions" in the Dialogue Manager. I have 2 conversations in my game and at a certain point I add 1 to the created variable: Variable["Room_Interactions"] = Variable["Room_Interactions"] + 1; After that dialogue entry I created an...