|
Post by frikic on Nov 28, 2017 14:45:29 GMT
Hi,
Just update your plugin from asset store and i got this two errors on entering scene from another scene, everything was working fine with previous version. Im using Unity 2017.1.2f1 and PC2D 2.5.3
first error
NullReferenceException: Object reference not set to an instance of an object
Com.LuisPedroFonseca.ProCamera2D.ProCamera2DLimitSpeed.AdjustDelta (Single deltaTime, Vector3 originalDelta) (at Assets/ProCamera2D/Code/Extensions/ProCamera2DLimitSpeed.cs:47)
Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.Move (Single deltaTime) (at Assets/ProCamera2D/ProCamera2D.cs:710)
Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.LateUpdate () (at Assets/ProCamera2D/ProCamera2D.cs:293)
and second one
NullReferenceException: Object reference not set to an instance of an object
Com.LuisPedroFonseca.ProCamera2D.BaseTrigger.TestTrigger () (at Assets/ProCamera2D/Code/Core/BaseTrigger.cs:99)
Com.LuisPedroFonseca.ProCamera2D.BaseTrigger+<TestTriggerRoutine>c__Iterator0.MoveNext () (at Assets/ProCamera2D/Code/Core/BaseTrigger.cs:150)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
Those two errors i get when coming from another scene, when I start any scene directly i get only second error.
Can you please give me a link to previous version of your plugin, so that i can continue working while your chasing bugs and fixing them.
Cheers Milos
|
|
|
Post by Luís Pedro Fonseca on Nov 28, 2017 15:04:27 GMT
Sorry about that! Please get in touch through the support contact with your invoice and I'll send you the previous version.
In the meantime, I'll see what's causing those issues.
|
|
|
Post by Luís Pedro Fonseca on Nov 28, 2017 15:05:39 GMT
BTW, do you also get them when opening the included demo scenes?
|
|
|
Post by frikic on Nov 28, 2017 19:01:45 GMT
Yes I get same type of error when starting for example LimitSpeed scene
NullReferenceException: Object reference not set to an instance of an object
Com.LuisPedroFonseca.ProCamera2D.ProCamera2DLimitSpeed.AdjustDelta (Single deltaTime, Vector3 originalDelta) (at Assets/ProCamera2D/Code/Extensions/ProCamera2DLimitSpeed.cs:47)
Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.Move (Single deltaTime) (at Assets/ProCamera2D/ProCamera2D.cs:710)
Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.LateUpdate () (at Assets/ProCamera2D/ProCamera2D.cs:293)
and TriggerInfluence scene gives
NullReferenceException: Object reference not set to an instance of an object
<span style="font-family: Arial, Helvetica, sans-serif;">Com.LuisPedroFonseca.ProCamera2D.BaseTrigger.TestTrigger () (at Assets/ProCamera2D/Code/Core/BaseTrigger.cs:111)</span>
Com.LuisPedroFonseca.ProCamera2D.BaseTrigger+<TestTriggerRoutine>c__Iterator0.MoveNext () (at Assets/ProCamera2D/Code/Core/BaseTrigger.cs:150)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
and I even get some errors that i didnt get with my game, for example Cinematics demo scene will throw this error
NullReferenceException: Object reference not set to an instance of an object
Com.LuisPedroFonseca.ProCamera2D.ProCamera2DNumericBoundaries.AdjustDelta (Single deltaTime, Vector3 originalDelta) (at Assets/ProCamera2D/Code/Extensions/ProCamera2DNumericBoundaries.cs:134)
Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.Move (Single deltaTime) (at Assets/ProCamera2D/ProCamera2D.cs:710)
Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.LateUpdate () (at Assets/ProCamera2D/ProCamera2D.cs:293)
but others also throw errors
|
|
|
Post by Luís Pedro Fonseca on Nov 28, 2017 22:23:34 GMT
This is very weird, and I can't replicate it with Unity 2017.2 on Mac.
Do you get it on a new empty project with just ProCamera2D imported?
I'll download the previous Unity version and see what I get.
|
|
|
Post by frikic on Nov 28, 2017 23:28:55 GMT
Yes I just tried its same in the empty project with only PC2D imported, same thing happens..
|
|
|
Post by Luís Pedro Fonseca on Nov 28, 2017 23:30:17 GMT
OK thanks for reporting back. I'll keep you updated.
|
|
|
Post by Luís Pedro Fonseca on Nov 30, 2017 13:21:07 GMT
Hey frikic, I've finally found some time to install and test this on both Mac and Windows (Unity 2017.1.2) and I can't replicate this issue... Did the problem went away when you reverted to a the previous ProCamera2D version (2.5.2)?
|
|
|
Post by frikic on Nov 30, 2017 17:46:07 GMT
Hey Luis,
yes the problem went away with PC2D 2.5.2, and i did reinstalled unity 2017.1.2 to make sure i dont have something corrupted before reverting to 2.5.2. so maybe i should try to update again? Im on Windows 10
|
|
|
Post by Luís Pedro Fonseca on Nov 30, 2017 18:19:58 GMT
frikic Yes, please update and let me know how it goes. There's something weird going on.
|
|
|
Post by Nikaas on Nov 30, 2017 22:44:40 GMT
After updating I had similar "AdjustDelta"error in LimitDistance extension (on play mode start), but it magically fixed itself after I disabled/enabled the extension with the unity component tick.
|
|
|
Post by frikic on Dec 1, 2017 13:58:40 GMT
@luis
Just tried it and its the same I get the errors again.
|
|
|
Post by Luís Pedro Fonseca on Dec 2, 2017 13:07:57 GMT
Thanks for the report guys, I'm still investigating what's going on.
|
|
|
Post by frikic on Jan 5, 2018 18:06:40 GMT
Hi Luis,
not sure if I should post this here or open new thread but new version 2.5.4 from Unity asset store gives me another error
NullReferenceException: Object reference not set to an instance of an object Com.LuisPedroFonseca.ProCamera2D.ProCamera2DLimitSpeed.AdjustDelta (Single deltaTime, Vector3 originalDelta) (at Assets/ProCamera2D/Code/Extensions/ProCamera2DLimitSpeed.cs:47) Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.Move (Single deltaTime) (at Assets/ProCamera2D/ProCamera2D.cs:710) Com.LuisPedroFonseca.ProCamera2D.ProCamera2D.LateUpdate () (at Assets/ProCamera2D/ProCamera2D.cs:293)
I switched to Unity 2017.1.3, and reverting to old version 2.5.2 solved the issue again
Cheers Milos
|
|
|
Post by Luís Pedro Fonseca on Jan 5, 2018 23:41:23 GMT
frikic I've found the root of the problem. I'll send you a link to the updated version.
|
|