|
Post by DarkTonic Dev on Oct 17, 2020 7:19:24 GMT
Thanks.
|
|
|
Post by gearedgeek on Oct 21, 2020 17:25:41 GMT
|
|
|
Post by DarkTonic Dev on Oct 21, 2020 19:12:54 GMT
So click on the "Lose" debug statement and send me the entire stack trace in the bottom window, with line numbers and stuff.
|
|
|
Post by gearedgeek on Oct 21, 2020 21:46:43 GMT
I'm sorry but from what window in Visual Studio?
|
|
|
Post by DarkTonic Dev on Oct 21, 2020 21:59:48 GMT
That's not visual studio. You showed me a screen shot of 4 logs in the Console Window of Unity. Click on the "Lose" one and copy the entire lower pane detail of that log, including line numbers and everything.
|
|
|
Post by gearedgeek on Oct 21, 2020 23:05:38 GMT
Lose UnityEngine.Debug:Log(Object) LevelSettingsPlaymakerListener:Lose() (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Level/LevelSettingsPlaymakerListener.cs:55) DarkTonic.CoreGameKit.LevelSettings:set_IsGameOver(Boolean) (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Level/LevelSettings.cs:1790) DarkTonic.CoreGameKit.<CoUpdate>d__118:MoveNext() (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Level/LevelSettings.cs:868) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
|
|
|
Post by DarkTonic Dev on Oct 22, 2020 0:08:47 GMT
Looks like a bug.
You'll need to add an if statement around the Listener.Lose() line in LevelSettings.cs, at line 1790, as shown below.
if (Listener != null) { Listener.GameOver(HasPlayerWon);
if (!HasPlayerWon) { Listener.Lose(); } }
This fix will be in the next update.
|
|
|
Post by gearedgeek on Oct 22, 2020 1:01:37 GMT
That has fixed the issue. Thank you for the help.
|
|
|
Post by DarkTonic Dev on Oct 22, 2020 2:02:56 GMT
Sure, thank you for helping me find it.
|
|
|
Post by illustrator on Nov 16, 2021 13:43:30 GMT
I did get this hookup thing working but now that I created a new project I'm having this same problem again. I have it setup like so: LevelWaveSettings object with LevelSettings Playmaker Listener component Playmaker FSM component I've enabled logging and I can see that Player has WON! is logged but event is not triggering transition on Playmaker FSM. I created the transiton to the state and also as a global event to test it but they are not triggering. I put that same event to multiple hookups just to test it. I'm using Unity 2020.3.7f1 and Core Gamekit Version 3.2.9.2 - January 28, 2021  Regards
|
|
|
Post by DarkTonic Dev on Nov 16, 2021 16:23:10 GMT
Looks right to me. Is there any sort of Playmaker debugging you can turn on?
If not, you'll need to send me a project that easily reproduces this so I can debug and fix.
Thanks, -Brian
|
|
|
Post by illustrator on Nov 16, 2021 18:38:21 GMT
I'll check that Playmaker debugging thing.
Regards, illustrator
|
|
|
Post by DarkTonic Dev on Nov 16, 2021 18:48:26 GMT
Ok let me know.
|
|
|
Post by illustrator on Nov 17, 2021 12:33:54 GMT
I found the culprit. Listener was empty. It works now.  regards Illustrator
|
|
|
Post by DarkTonic Dev on Nov 17, 2021 15:57:44 GMT
Ah that makes sense. Glad you're sorted.
|
|