[Plugin] PathFinder by Pamdex
#10

Ok, some updates on the problem it would seem OnPathCalculated() doesn't even get called in some instances when attempting to calculate a path check out this output.


Update #1
[20:39:49] Iteration: 0 NodeID: 4688619 czyli X = -381.000000 Y = 2219.000000 Z = 41.090000
[20:39:49] Iteration: 1 NodeID: 4694620 czyli X = -380.000000 Y = 2218.000000 Z = 41.090000
[20:39:49] Iteration: 2 NodeID: 4700620 czyli X = -380.000000 Y = 2217.000000 Z = 41.090000
[20:39:49] Iteration: 3 NodeID: 4706620 czyli X = -380.000000 Y = 2216.000000 Z = 41.090000
[20:39:49] Iteration: 4 NodeID: 4712620 czyli X = -380.000000 Y = 2215.000000 Z = 41.090000
[20:39:49] Iteration: 5 NodeID: 4718620 czyli X = -380.000000 Y = 2214.000000 Z = 41.090000
[20:39:49] Iteration: 6 NodeID: 4724620 czyli X = -380.000000 Y = 2213.000000 Z = 41.090000
[20:39:49] X:-380.000000 Y:2216.000000 Z:41.090000 <---- Used Path Node

Update #2
[20:39:50] Iteration: 0 NodeID: 4700619 czyli X = -381.000000 Y = 2217.000000 Z = 41.090000
[20:39:50] Iteration: 1 NodeID: 4706618 czyli X = -382.000000 Y = 2216.000000 Z = 41.279998
[20:39:50] Iteration: 2 NodeID: 4712617 czyli X = -383.000000 Y = 2215.000000 Z = 41.369998
[20:39:50] Iteration: 3 NodeID: 4718616 czyli X = -384.000000 Y = 2214.000000 Z = 41.409999
[20:39:50] Iteration: 4 NodeID: 4724616 czyli X = -384.000000 Y = 2213.000000 Z = 41.419998
[20:39:50] X:-384.000000 Y:2214.000000 Z:41.409999 <---- Used Path Node
----------------------------------------------------- <---- No paths here PathFinder_FindWay() failed
[20:39:50] X:-384.000000 Y:2214.000000 Z:41.409999 <---- Keeps returning the same values since there is no new
[20:39:51] X:-384.000000 Y:2214.000000 Z:41.409999 path updates ("Failed") would be printed if
[20:39:51] X:-384.000000 Y:2214.000000 Z:41.409999 OnPathCalculated() was actually called
[20:39:52] X:-384.000000 Y:2214.000000 Z:41.409999
[20:39:52] X:-384.000000 Y:2214.000000 Z:41.409999
[20:39:52] X:-384.000000 Y:2214.000000 Z:41.409999
[20:39:53] X:-384.000000 Y:2214.000000 Z:41.409999
[20:39:53] X:-384.000000 Y:2214.000000 Z:41.409999

Paths stop being calculated, I'm guessing something is failing inside PathFinder_FindWay(); resulting in OnPathCalculated() not being called.

Edit - Continued doing tests and still the same problem keeps surfacing it's not calculating when using PathFinder_FindWay(); and isn't even calling OnPathCalculated() with a failed success obviously a bug.

Also noticed once nodes stop being calculated properly the plugin then fails completely and won't calculate any paths regardless of the values passed to PathFinder_FindWay();

Some more information:

This part of the code is on a 400 ms timer which keeps the Zombie following the player.

Code:
PathFinder_FindWay(zombie, zx, zy, x, y);
printf("X:%f Y:%f Z:%f", ZombieNextPos[zombie][0],ZombieNextPos[zombie][1],ZombieNextPos[zombie][2]);
Here is OnPathCalculated()

Code:
public OnPathCalculated(routeid,success,nodes[],nodes_size)
{
	if(success)
	{
		new Float:x,Float:y,Float:z;
		for(new i; i < nodes_size; i++)
		{
			PathFinder_GetNodePos(nodes[i],x,y,z);
			printf("Iteration: %d NodeID: %d Position X: %f Y: %f Z: %f",i,nodes[i],x,y,z);
		}

		if(nodes_size > 2) PathFinder_GetNodePos(nodes[2], ZombieNextPos[routeid][0], ZombieNextPos[routeid][1], ZombieNextPos[routeid][2]);
		else if(nodes_size > 1) PathFinder_GetNodePos(nodes[1], ZombieNextPos[routeid][0], ZombieNextPos[routeid][1], ZombieNextPos[routeid][2]);
		else PathFinder_GetNodePos(nodes[0], ZombieNextPos[routeid][0], ZombieNextPos[routeid][1], ZombieNextPos[routeid][2]);
	}
	else
	{
		print("Failed");
		GetPlayerPos(ZombieInfo[routeid][zplayerid], ZombieNextPos[routeid][0], ZombieNextPos[routeid][1], ZombieNextPos[routeid][2]);
	}
}
Reply


Messages In This Thread
PathFinder by Pamdex - by pamdex - 31.03.2013, 21:28
Re: PathFinder 0.11v by Pamdex - by Pottus - 31.03.2013, 21:34
Re: PathFinder 0.11v by Pamdex - by pamdex - 31.03.2013, 21:50
Re: PathFinder 0.11v by Pamdex - by steki. - 31.03.2013, 21:54
Re: PathFinder 0.11v by Pamdex - by RebeloX - 31.03.2013, 22:42
Re: PathFinder 0.11v by Pamdex - by Pottus - 31.03.2013, 23:12
Respuesta: PathFinder 0.11v by Pamdex - by oOFotherOo - 31.03.2013, 23:19
Re: PathFinder 0.11v by Pamdex - by Lorenc_ - 31.03.2013, 23:34
Re: PathFinder 0.11v by Pamdex - by CoaPsyFactor - 31.03.2013, 23:39
Re: PathFinder 0.11v by Pamdex - by Pottus - 01.04.2013, 00:23
Re: PathFinder 0.11v by Pamdex - by cyber_punk - 01.04.2013, 04:26
Re: PathFinder 0.11v by Pamdex - by Pottus - 01.04.2013, 04:46
Re: PathFinder 0.11v by Pamdex - by pamdex - 01.04.2013, 07:10
Re: PathFinder 0.11v by Pamdex - by RajatPawar - 01.04.2013, 08:09
Re: PathFinder 0.11v by Pamdex - by AIped - 01.04.2013, 08:13
Re: PathFinder 0.12v by Pamdex - by pamdex - 01.04.2013, 08:35
Re: PathFinder 0.11v by Pamdex - by Pottus - 01.04.2013, 09:09
Re: PathFinder 0.11v by Pamdex - by Kyle - 01.04.2013, 09:56
Re: PathFinder 0.11v by Pamdex - by Niko_boy - 01.04.2013, 10:16
Re: PathFinder by Pamdex - by TheArcher - 01.04.2013, 10:44
Re: PathFinder 0.11v by Pamdex - by Lorenc_ - 01.04.2013, 11:42
Re: PathFinder by Pamdex - by Mauzen - 01.04.2013, 13:05
Re: PathFinder by Pamdex - by AIped - 01.04.2013, 15:59
Re: PathFinder by Pamdex - by pamdex - 01.04.2013, 16:38
Re: PathFinder by Pamdex - by AIped - 01.04.2013, 16:52
Re: PathFinder by Pamdex - by pamdex - 01.04.2013, 17:07
Re: PathFinder by Pamdex - by AIped - 02.04.2013, 09:28
Re: PathFinder by Pamdex - by TheArcher - 02.04.2013, 11:57
Re: PathFinder by Pamdex - by pamdex - 02.04.2013, 12:05
Re: PathFinder by Pamdex - by TheArcher - 02.04.2013, 12:13
AW: PathFinder by Pamdex - by Blackazur - 02.04.2013, 12:26
Re: PathFinder by Pamdex - by justinnater - 02.04.2013, 13:02
Re: PathFinder by Pamdex - by DoctorRapist - 02.04.2013, 14:19
Re: PathFinder by Pamdex - by AIped - 02.04.2013, 18:23
Re: PathFinder by Pamdex - by TheArcher - 02.04.2013, 18:57
Re: PathFinder by Pamdex - by pamdex - 02.04.2013, 19:07
Re: PathFinder by Pamdex - by Pottus - 02.04.2013, 23:14
Re: PathFinder by Pamdex - by Gamer_Z - 03.04.2013, 00:15
Re: PathFinder by Pamdex - by Kar - 03.04.2013, 01:11
Re: PathFinder by Pamdex - by Pottus - 03.04.2013, 01:28
Re: PathFinder by Pamdex - by AIped - 03.04.2013, 06:54
Re: PathFinder by Pamdex - by Gamer_Z - 03.04.2013, 07:00
Re: PathFinder by Pamdex - by AIped - 03.04.2013, 08:21
Re: PathFinder by Pamdex - by Babul - 03.04.2013, 10:07
Re: PathFinder by Pamdex - by Pottus - 03.04.2013, 11:23
Re: PathFinder by Pamdex - by TheArcher - 03.04.2013, 11:39
Re: PathFinder by Pamdex - by AIped - 03.04.2013, 12:00
Re: PathFinder by Pamdex - by [FSaF]Jarno - 03.04.2013, 13:00
Re: PathFinder by Pamdex - by AIped - 03.04.2013, 13:05
Re: PathFinder by Pamdex - by AIped - 03.04.2013, 13:09
Re: PathFinder by Pamdex - by Y_Less - 03.04.2013, 13:39
Re: PathFinder by Pamdex - by AIped - 03.04.2013, 13:53
Re: PathFinder by Pamdex - by pamdex - 03.04.2013, 13:58
Re: PathFinder by Pamdex - by Y_Less - 03.04.2013, 14:02
Re: PathFinder by Pamdex - by Pottus - 03.04.2013, 14:23
Re: PathFinder by Pamdex - by smiiir - 03.04.2013, 15:30
Re: PathFinder by Pamdex - by TheArcher - 03.04.2013, 16:49
Re: PathFinder by Pamdex - by pamdex - 18.04.2013, 13:16
Re: PathFinder by Pamdex - by iMads - 23.04.2013, 11:50
Re: PathFinder by Pamdex - by PT - 23.04.2013, 11:54
Re: PathFinder by Pamdex - by Y_Less - 23.04.2013, 12:06
Re: PathFinder by Pamdex - by Gamer_Z - 23.04.2013, 12:51
Re: PathFinder by Pamdex - by pamdex - 28.04.2013, 18:55
Re: PathFinder by Pamdex - by Mauzen - 04.08.2014, 22:16
Re: PathFinder by Pamdex - by pamdex - 05.08.2014, 00:03
Re: PathFinder by Pamdex - by pamdex - 15.10.2014, 20:34
Re: PathFinder by Pamdex - by Pottus - 15.10.2014, 20:36
Re: PathFinder by Pamdex - by RiqueP - 15.10.2014, 23:06
Re: PathFinder by Pamdex - by pamdex - 19.10.2014, 17:23
Re: PathFinder by Pamdex - by iFarbod - 19.10.2014, 17:57
Re: PathFinder by Pamdex - by pamdex - 19.10.2014, 18:00
Re: PathFinder by Pamdex - by iFarbod - 19.10.2014, 18:39
Re: PathFinder by Pamdex - by Mauzen - 19.10.2014, 18:44
Re: PathFinder by Pamdex - by Riddick94 - 19.10.2014, 19:44
Re: PathFinder by Pamdex - by Mauzen - 19.10.2014, 21:33
Re: PathFinder by Pamdex - by Mauzen - 27.10.2014, 21:42
Re: PathFinder by Pamdex - by Mauzen - 28.10.2014, 01:13
Re: PathFinder by Pamdex - by pamdex - 12.11.2014, 09:42
Re: PathFinder by Pamdex - by Mauzen - 17.11.2014, 17:40
Re: PathFinder by Pamdex - by Crayder - 24.11.2014, 23:43
Re: PathFinder by Pamdex - by Pottus - 25.11.2014, 00:21
Re: PathFinder by Pamdex - by juank - 25.11.2014, 05:02
Re: PathFinder by Pamdex - by pamdex - 24.03.2015, 20:47
Re: PathFinder by Pamdex - by KayJ - 25.03.2015, 03:59
Re: PathFinder by Pamdex - by pamdex - 11.05.2015, 13:58
Re: PathFinder by Pamdex - by Pottus - 11.05.2015, 18:06
Re: PathFinder by Pamdex - by AIped - 11.05.2015, 18:15
Re: PathFinder by Pamdex - by pamdex - 17.05.2015, 17:10
Re: PathFinder by Pamdex - by n0minal - 17.05.2015, 17:13
Re: PathFinder by Pamdex - by liinor - 23.12.2015, 21:40
Re: PathFinder by Pamdex - by pamdex - 26.12.2015, 21:59
Re: PathFinder by Pamdex - by Stump - 14.04.2016, 08:44
Re: PathFinder by Pamdex - by pamdex - 15.04.2016, 16:46
Re: PathFinder by Pamdex - by Stump - 15.04.2016, 17:08
Re: PathFinder by Pamdex - by pamdex - 15.04.2016, 17:26
Re: PathFinder by Pamdex - by Stump - 15.04.2016, 17:37
Re: PathFinder by Pamdex - by Stump - 23.04.2016, 07:50
Re: PathFinder by Pamdex - by pamdex - 23.04.2016, 09:42
Re: PathFinder by Pamdex - by Stump - 23.04.2016, 11:54
Re: PathFinder by Pamdex - by pamdex - 23.04.2016, 19:39
Re: PathFinder by Pamdex - by Stump - 24.04.2016, 06:59
Re: PathFinder by Pamdex - by ExTaZZ69 - 24.04.2016, 19:47
Re: PathFinder by Pamdex - by Skream - 26.09.2017, 13:59
Re: PathFinder by Pamdex - by MrStead - 30.07.2018, 19:12
Re: PathFinder by Pamdex - by tandytanz - 26.12.2018, 11:29
Re: PathFinder by Pamdex - by pamdex - 12.01.2019, 14:02
Re: PathFinder by Pamdex - by Pottus - 12.01.2019, 18:54
Re: PathFinder by Pamdex - by Crayder - 12.01.2019, 21:28
Re: PathFinder by Pamdex - by Pottus - 12.01.2019, 23:26
Re: PathFinder by Pamdex - by MrStead - 16.01.2019, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)