Assets/Sleepytime Village/Scripts/DynamicInteractiveBoundary.cs(36,13): error CS7036: There is no argument given that corresponds to the required formal parameter 'loadingGame' of 'DynamicInteractiveBoundary.OnAfterChangeScene(LoadingGame)'
EDIT: Ok, so i copied the scene, removed all hotspots and added a new hotspot with interactive boundary and the script, and the oddness was gone, dialogue worked. However, once I stepped out of the interactive boundary the hotspot was not interactive even though the variable was true. See video:
If the error that appears in your Console when you run the Litcandle ActionList is the same as the one above, it suggests that it cannot find the Bool Var Name variable. How many instances of the script are in the scene?
I have updated the DynamicInteractiveBoundary script to report more information in the event this issue occurs.
You can see in the video that the variable MidLampOn is true, so I don;t understand why the script is not seeing it? Does it need to be Global variable?
Comments
The Dynamic or AnimateCursor or both?
And is AnimateCursor script ok (line 30?)
ge tthis error now:
Assets/Sleepytime Village/Scripts/DynamicInteractiveBoundary.cs(36,13): error CS7036: There is no argument given that corresponds to the required formal parameter 'loadingGame' of 'DynamicInteractiveBoundary.OnAfterChangeScene(LoadingGame)'
DynamicInteractiveBoundary - try the edited again.
It looks like the code is fine, rather the usage is the problem. It's unrelated to this thread, however.
This still causes no dialogue to play and objects to show that shouldn't. All variables are correct on each hotspot too.
Would enabling/disabling hotspots in OnStart effect this?
Would Constant ID or Remember Hotspot on these hotspots cause this?
Once the hotspots are removed the scene works properly again and dialogue works.
I get this error but done kn w if this effects anything:
NullReferenceException: Object reference not set to an instance of an object
DynamicInteractiveBoundary.OnAfterChangeScene (AC.LoadingGame loadingGame) (at Assets/Sleepytime Village/Scripts/DynamicInteractiveBoundary.cs:26)
AC.EventManager.Call_OnAfterChangeScene (AC.LoadingGame loadingGame) (at Assets/AdventureCreator/Scripts/Managers/EventManager.cs:1777)
AC.SaveSystem.InitAfterLoad () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:698)
AC.MultiSceneChecker.Start () (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:62)
EDIT: Ok, so i copied the scene, removed all hotspots and added a new hotspot with interactive boundary and the script, and the oddness was gone, dialogue worked. However, once I stepped out of the interactive boundary the hotspot was not interactive even though the variable was true. See video:
https://www.dropbox.com/s/sqa1j4b3bka7rmw/HotspotIssue.mov?dl=0
Works for me.
If the error that appears in your Console when you run the Litcandle ActionList is the same as the one above, it suggests that it cannot find the Bool Var Name variable. How many instances of the script are in the scene?
I have updated the DynamicInteractiveBoundary script to report more information in the event this issue occurs.
Each hotspot has the script attached, so yes, it cannot find the variable:
You can see in the video that the variable MidLampOn is true, so I don;t understand why the script is not seeing it? Does it need to be Global variable?
The script looks for global variables, yes. But you can change this by replacing "GlobalVariables" with "LocalVariables".