Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stack Overflow
#1
Hi, i get random Stack Overflow on my game, caused by curvy splines, and i have no idea at the moment what could be the cause.

Could you help me ? 

Thanks.

Code:
tackOverflowException
UnityEngine.Object.Equals (System.Object o)
System.Collections.Generic.EqualityComparer`1+DefaultComparer[CurvySplineSegment].Equals (.CurvySplineSegment x, .CurvySplineSegment y)
System.Array.IndexOf[CurvySplineSegment] (.CurvySplineSegment[] array, .CurvySplineSegment value, Int32 startIndex, Int32 count)
System.Collections.Generic.List`1[CurvySplineSegment].Contains (.CurvySplineSegment item)
CurvyConnection.Validate () (at Assets/Curvy/Base/CurvyConnection.cs:123)
CurvySplineSegment.get_Connection () (at Assets/Curvy/Base/CurvySplineSegment.cs:375)
CurvySplineSegment.GetAllConnections (Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySplineSegment.cs:405)
CurvySpline.GetConnectionsWithin (Single tf, Int32 direction, Single fDistance, Int32 minMatchesNeeded, Boolean skipCurrent, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:548)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:566)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnec
Reply
#2
And sometimes (random actually), I get this error,

NullReferenceException: Object reference not set to an instance of an object
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:573)

cause con = CurvyConnection.GetBestMatchingConnection(cons, tags); returns null : 

 public Vector3 MoveConnection(ref CurvySpline spline, ref float tf, ref int direction, float fDistance, CurvyClamping clamping, int minMatchesNeeded, params string[] tags)
    {
        List<CurvyConnection> cons = GetConnectionsWithin(tf, direction, fDistance, minMatchesNeeded,true, tags);
        if (cons.Count > 0) {
            CurvyConnection con;
            if (cons.Count == 1)
                con = cons[0];
            else
                con = CurvyConnection.GetBestMatchingConnection(cons, tags);
            CurvySplineSegment cp=con.GetFromSpline(this);
            float cptf = SegmentToTF(cp);
            fDistance-= cptf-tf;
            CurvySplineSegment counterp=con.GetCounterpart(cp);
            tf = counterp.LocalFToTF(0);
            spline = counterp.Spline;
            return spline.MoveConnection(ref spline, ref tf, ref direction, fDistance, clamping, minMatchesNeeded, tags);
        }
        else
            return spline.Move(ref tf, ref direction, fDistance, clamping);
     }
Reply
#3
Hi,

seems like some connection methods doesn't always return what they should. I'll have a further look.
Reply
#4
(12-18-2013, 06:36 PM)'Jake' Wrote: Hi,

seems like some connection methods doesn't always return what they should. I'll have a further look.

 


Any clues ? Now my game crashes all the time at some random locations Sad
Thx.
 

Another stack trace if that can help : 



Code:
StackOverflowException
UnityEngine.Object.op_Inequality (UnityEngine.Object x, UnityEngine.Object y) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/UnityEngineObject.cs:101)
CurvyConnection.get_Active () (at Assets/Curvy/Base/CurvyConnection.cs:93)
CurvyConnection.Validate () (at Assets/Curvy/Base/CurvyConnection.cs:123)
CurvySplineSegment.get_Connection () (at Assets/Curvy/Base/CurvySplineSegment.cs:375)
CurvySplineSegment.GetAllConnections (Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySplineSegment.cs:405)
CurvySpline.GetConnectionsWithin (Single tf, Int32 direction, Single fDistance, Int32 minMatchesNeeded, Boolean skipCurrent, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:548)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:566)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)
CurvySpline.MoveConnection (.CurvySpline& spline, System.Single& tf, System.Int32& direction, Single fDistance, CurvyClamping clamping, Int32 minMatchesNeeded, System.String[] tags) (at Assets/Curvy/Base/CurvySpline.cs:579)

 
Reply
#5
I didn't found an error in the MoveConnection source. It must be some problem with your connection and tag setup. The error means the SplineWalkerCon (you're using it?) continously enters a connection (due to a problematic connection/tags setup). This causes the Stack Overflow.

The whole tag based system is somewhat fragile, that's why I'm working on solid pathfinding support for connected splines. It's halfway done and will offer much more freedom and way less error-proneness. The old fragile system will be kicked out then.

As soon as it's done I can send you a dev version to work with. I think this makes much more sense than trying to cure a already dead horse.

Sorry for all that trouble.

Jake
Reply
#6
(01-10-2014, 07:50 AM)'Jake' Wrote: I didn't found an error in the MoveConnection source. It must be some problem with your connection and tag setup. The error means the SplineWalkerCon (you're using it?) continously enters a connection (due to a problematic connection/tags setup). This causes the Stack Overflow.

The whole tag based system is somewhat fragile, that's why I'm working on solid pathfinding support for connected splines. It's halfway done and will offer much more freedom and way less error-proneness. The old fragile system will be kicked out then.

As soon as it's done I can send you a dev version to work with. I think this makes much more sense than trying to cure a already dead horse.

Sorry for all that trouble.

Jake

 



No problem, glad to hear that you're working on something better.
But I don't use tag system and never heard of it concerning Splines Smile
Should I ?

 

Btw i don't use SplineWalkerCon, i made a RunenrController based on your EndlessRunerPlayer.
Reply
#7
Ok, what exactly are you doing? You're using the SplineWalkerCon (or your own script calling MoveConnection) to travel along several connected splines, right? How are that splines connected? If you can't provide an example scene, perhaps you can post some screenshots (you can also pm them)...
Reply
#8
(01-10-2014, 05:33 PM)'Jake' Wrote: Ok, what exactly are you doing? You're using the SplineWalkerCon (or your own script calling MoveConnection) to travel along several connected splines, right? How are that splines connected? If you can't provide an example scene, perhaps you can post some screenshots (you can also pm them)...


 
As I said, i use the EndlessRunnerPlayer, modified with my needs : 





Code:
void Update () {
if (!waitToStartComplete || !Spline || !Spline.IsInitialized || avatarController.IsDead)
return;

// *** Place Player in editor ***
if (!Application.isPlaying) {
if (Spline.Interpolate(TF)!=mTransform.position)
mTransform.position = Spline.Interpolate(TF);
return;
}

int dir=1;

// advance on lane. We use PingPong clamping to detect when we reach the end of a spline (in that case dir changes!)
Vector3 newPosOnSpline = Spline.MoveByConnection(ref Spline, ref TF, ref dir, Speed * Time.deltaTime, CurvyClamping.PingPong, 0, tags);
Vector3 newTangent = Spline.GetTangent(TF);

// Advance by spline curvation delta. We don't use newPosOnSpline directly because we don't want a snap-effect when in air or switching lanes
mTransform.position += newPosOnSpline - mLastPosOnSpline;

currentLanePosition = Spline.Interpolate(TF);

if(startRun) {
// *** Switch lanes? ***
if(avatarController.CanSwitchLane()) {
if(TrySwitchLane(inputManager.HorizontalRawDir * mTransform.right)) {
avatarController.SwitchLaneCooldown();
avatarController.StartCoroutine("PlaySwitchLane");
if(!avatarController.IsInTheAir()) {
if(!avatarController.IsSliding()) {
avatarController.PlayAnim(inputManager.HorizontalRawDir > 0 ? "R-switch" : "L-switch", "run");
}
}
currentLanePosition = Spline.Interpolate(TF);
//Debug.Log("new spline : " + Spline.gameObject.name);
newPosOnSpline = currentLanePosition;
}
}

// *** Jump? ***
if(avatarController.CanJump()) {
avatarController.Jump();
}

// *** Slide ? ***
if(avatarController.CanSlide()) {
avatarController.Slides();
}

if(avatarController.CanDash()) {
avatarController.Dash();
}

// Set orientation
mTransform.forward = newTangent;
if(SetOrientation) {
transform.rotation = Spline.GetOrientationFast(TF);
}
}

if(dir != 1) {
//Debug.Log("die ? ");
StopsRunningAndMeetObstacle();
avatarController.CurrentAvatar.animPool.Stop("run");
}


Vector3 offset = mTransform.position - newPosOnSpline;

// When in air or switching lanes, our position isn't where it should be. So we drag the player toward the lane position
if(!avatarController.IsJumping()) {
if(offset.sqrMagnitude > 0.02f) {
if(avatarController.IsInTheAir()) {
if(avatarController.CanFall()) {
avatarController.Fall();
}

mTransform.Translate(avatarController.GetFallOffset(), Space.World);

if(offset.sqrMagnitude > 0.02f) {
mTransform.position -= new Vector3(offset.x * SwitchSpeed * Time.deltaTime, 0, 0);
}
} else {
avatarController.IsSwitchingLane = true;
mTransform.position -= offset * SwitchSpeed * Time.deltaTime;
}
} else{
avatarController.IsSwitchingLane = false;
if(avatarController.CanLand()) {
avatarController.Land();
}
if(avatarController.IsFallingTowardsHole()) {
avatarController.SetInAir(true);
mTransform.Translate(avatarController.GetFallOffset(), Space.World);
} else {
avatarController.SetInAir(false);
}
}
}else { // Perform a jump
//if set to Space.Self, do shit about xPos... (slight offest when jumping, dafuq...)
mTransform.Translate(avatarController.GetJumpOffset(), Space.World);
if(offset.sqrMagnitude > 0.02f) {
mTransform.position -= new Vector3(offset.x * SwitchSpeed * Time.deltaTime, 0, 0);
}

mLastPosOnSpline = mTransform.position;
}

mLastPosOnSpline = newPosOnSpline;
}




Here are some screenshots of my game, : i have lanes (3 lanes most of the time) :

[Image: screen01.png]


[Image: screen02.png]

 
Reply
#9
Quote:As I said, i use the EndlessRunnerPlayer, modified with my needs : 
You didn't say that before, did you?

And you're using MoveByConnection in your modified version:

Code:
// advance on lane. We use PingPong clamping to detect when we reach the end of a spline (in that case dir changes!)
Vector3 newPosOnSpline = Spline.MoveByConnection(ref Spline, ref TF, ref dir, Speed * Time.deltaTime, CurvyClamping.PingPong, 0, tags);

As you said, you're not using any tags, so you best should avoid using MoveByConnection and use MoveBy() instead (as in the original EndlessRunnerPlayer.cs). This should avoid the problematic code completely.

Jake
Reply
#10
(01-10-2014, 02:34 PM)'lelag' Wrote:
(01-10-2014, 07:50 AM)'Jake' Wrote: I didn't found an error in the MoveConnection source. It must be some problem with your connection and tag setup. The error means the SplineWalkerCon (you're using it?) continously enters a connection (due to a problematic connection/tags setup). This causes the Stack Overflow.

The whole tag based system is somewhat fragile, that's why I'm working on solid pathfinding support for connected splines. It's halfway done and will offer much more freedom and way less error-proneness. The old fragile system will be kicked out then.

As soon as it's done I can send you a dev version to work with. I think this makes much more sense than trying to cure a already dead horse.

Sorry for all that trouble.

Jake


 



No problem, glad to hear that you're working on something better.
But I don't use tag system and never heard of it concerning Splines Smile
Should I ?

 

Btw i don't use SplineWalkerCon, i made a RunenrController based on your EndlessRunerPlayer.

 


I said it on an edited post Smile (it displays at the bottom of a post)

I'll try MoveBy, but i remember changing MoveBy by MoveByConnection cause I had problems with it, something like sometimes (random) system couldn't find a suitable lane. 
But i'm definitely changing it back if you say it's a better way. 
I'll try and tell you if everything is allright.

Thanks a lot.
Reply


Forum Jump: