sometimes with python scripts newMoveXY is freezing giving this message on system journal: can't find path to ...
it occurs, for example, when the character are trying to move but is paralyzed.
anyway to fix it?
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
can't find path to
Re: can't find path to
maybe use some event. it should deparalyze character or wait until it will be free. the main script will be paused while an event handler works
Re: can't find path to
or not.nah nah wrote:the main script will be paused while an event handler works
Re: can't find path to
i think i solved it using ClearBadLocationList()
i made this function
before add ClearBadLocationList() i was geting something like this:
20.08.2018 15:06:20:273 [xxxx]: MoveXYZ: Location reached!
20.08.2018 15:06:21:951 [xxxx]: TMover.Server_MoveReject[38]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:21:962 [xxxx]: TMover.Server_MoveReject[39]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:22:049 [xxxx]: TMover.Server_MoveReject[40]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:22:049 [xxxx]: Point X 1529 Y 2578 marked as bad to 15 min
20.08.2018 15:06:22:095 [xxxx]: TMover.Server_MoveReject[41]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:22:095 [xxxx]: Point X 1529 Y 2578 marked as bad to 15 min
20.08.2018 15:06:22:464 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:592 [xxxx]: TMover.Server_MoveReject[2]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:731 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:731 [xxxx]: Point X 1529 Y 2579 marked as bad to 15 min
20.08.2018 15:06:22:858 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:858 [xxxx]: Point X 1529 Y 2579 marked as bad to 15 min
20.08.2018 15:06:23:123 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:260 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:385 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:385 [xxxx]: Point X 1528 Y 2580 marked as bad to 15 min
20.08.2018 15:06:23:525 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:525 [xxxx]: Point X 1528 Y 2580 marked as bad to 15 min
20.08.2018 15:06:23:788 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:23:916 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:24:057 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:24:057 [xxxx]: Point X 1527 Y 2579 marked as bad to 15 min
20.08.2018 15:06:24:197 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:24:197 [xxxx]: Point X 1527 Y 2579 marked as bad to 15 min
20.08.2018 15:06:24:462 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:614 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:750 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:750 [xxxx]: Point X 1528 Y 2578 marked as bad to 15 min
20.08.2018 15:06:24:772 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:24:877 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:877 [xxxx]: Point X 1528 Y 2578 marked as bad to 15 min
20.08.2018 15:06:24:989 [xxxx]: paralyzed
20.08.2018 15:06:25:000 [xxxx]: paralyzed
20.08.2018 15:06:25:011 [xxxx]: paralyzed
20.08.2018 15:06:31:951 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:174 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:374 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:574 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:795 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:011 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:230 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:446 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:662 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:883 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:34:099 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:34:315 [xxxx]: Can't find path to (1526, 2571)
.....
and now i have this:
20.08.2018 15:09:17:602 [xxxx]: MoveXYZ: Location reached!
20.08.2018 15:09:19:385 [xxxx]: TMover.Server_MoveReject[127]: client seq -1, position: 1526 2584 10, direction 4
20.08.2018 15:09:19:435 [xxxx]: TMover.Server_MoveReject[128]: client seq -1, position: 1526 2584 10, direction 4
20.08.2018 15:09:19:522 [xxxx]: TMover.Server_MoveReject[129]: client seq -1, position: 1526 2584 10, direction 4
20.08.2018 15:09:19:522 [xxxx]: Point X 1526 Y 2585 marked as bad to 15 min
20.08.2018 15:09:19:903 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:041 [xxxx]: TMover.Server_MoveReject[2]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:168 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:168 [xxxx]: Point X 1525 Y 2584 marked as bad to 15 min
20.08.2018 15:09:20:306 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:306 [xxxx]: Point X 1525 Y 2584 marked as bad to 15 min
20.08.2018 15:09:20:559 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:699 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:825 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:825 [xxxx]: Point X 1527 Y 2584 marked as bad to 15 min
20.08.2018 15:09:20:962 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:962 [xxxx]: Point X 1527 Y 2584 marked as bad to 15 min
20.08.2018 15:09:21:230 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:356 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:493 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:493 [xxxx]: Point X 1526 Y 2583 marked as bad to 15 min
20.08.2018 15:09:21:555 [xxxx]: Can't find path to (1526, 2590)
20.08.2018 15:09:21:621 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:621 [xxxx]: Point X 1526 Y 2583 marked as bad to 15 min
20.08.2018 15:09:21:771 [xxxx]: paralyzed
20.08.2018 15:09:21:771 [xxxx]: paralyzed
20.08.2018 15:09:29:332 [xxxx]: paralyzed
20.08.2018 15:09:29:343 [xxxx]: paralyzed
20.08.2018 15:09:30:392 [xxxx]: MoveXYZ: Location reached!
20.08.2018 15:09:32:733 [xxxx]: MoveXYZ: Location reached!
i made this function
Code: Select all
def MyMove(X, Y, Optimized, Accuracy, Running):
while not newMoveXY(X, Y, Optimized, Accuracy, Running):
while Paralyzed():
print('paralyzed')
ClearBadLocationList()
20.08.2018 15:06:20:273 [xxxx]: MoveXYZ: Location reached!
20.08.2018 15:06:21:951 [xxxx]: TMover.Server_MoveReject[38]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:21:962 [xxxx]: TMover.Server_MoveReject[39]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:22:049 [xxxx]: TMover.Server_MoveReject[40]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:22:049 [xxxx]: Point X 1529 Y 2578 marked as bad to 15 min
20.08.2018 15:06:22:095 [xxxx]: TMover.Server_MoveReject[41]: client seq -1, position: 1528 2579 5, direction 1
20.08.2018 15:06:22:095 [xxxx]: Point X 1529 Y 2578 marked as bad to 15 min
20.08.2018 15:06:22:464 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:592 [xxxx]: TMover.Server_MoveReject[2]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:731 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:731 [xxxx]: Point X 1529 Y 2579 marked as bad to 15 min
20.08.2018 15:06:22:858 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 2
20.08.2018 15:06:22:858 [xxxx]: Point X 1529 Y 2579 marked as bad to 15 min
20.08.2018 15:06:23:123 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:260 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:385 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:385 [xxxx]: Point X 1528 Y 2580 marked as bad to 15 min
20.08.2018 15:06:23:525 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 4
20.08.2018 15:06:23:525 [xxxx]: Point X 1528 Y 2580 marked as bad to 15 min
20.08.2018 15:06:23:788 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:23:916 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:24:057 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:24:057 [xxxx]: Point X 1527 Y 2579 marked as bad to 15 min
20.08.2018 15:06:24:197 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 6
20.08.2018 15:06:24:197 [xxxx]: Point X 1527 Y 2579 marked as bad to 15 min
20.08.2018 15:06:24:462 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:614 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:750 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:750 [xxxx]: Point X 1528 Y 2578 marked as bad to 15 min
20.08.2018 15:06:24:772 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:24:877 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1528 2579 5, direction 0
20.08.2018 15:06:24:877 [xxxx]: Point X 1528 Y 2578 marked as bad to 15 min
20.08.2018 15:06:24:989 [xxxx]: paralyzed
20.08.2018 15:06:25:000 [xxxx]: paralyzed
20.08.2018 15:06:25:011 [xxxx]: paralyzed
20.08.2018 15:06:31:951 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:174 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:374 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:574 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:32:795 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:011 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:230 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:446 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:662 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:33:883 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:34:099 [xxxx]: Can't find path to (1526, 2571)
20.08.2018 15:06:34:315 [xxxx]: Can't find path to (1526, 2571)
.....
and now i have this:
20.08.2018 15:09:17:602 [xxxx]: MoveXYZ: Location reached!
20.08.2018 15:09:19:385 [xxxx]: TMover.Server_MoveReject[127]: client seq -1, position: 1526 2584 10, direction 4
20.08.2018 15:09:19:435 [xxxx]: TMover.Server_MoveReject[128]: client seq -1, position: 1526 2584 10, direction 4
20.08.2018 15:09:19:522 [xxxx]: TMover.Server_MoveReject[129]: client seq -1, position: 1526 2584 10, direction 4
20.08.2018 15:09:19:522 [xxxx]: Point X 1526 Y 2585 marked as bad to 15 min
20.08.2018 15:09:19:903 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:041 [xxxx]: TMover.Server_MoveReject[2]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:168 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:168 [xxxx]: Point X 1525 Y 2584 marked as bad to 15 min
20.08.2018 15:09:20:306 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 6
20.08.2018 15:09:20:306 [xxxx]: Point X 1525 Y 2584 marked as bad to 15 min
20.08.2018 15:09:20:559 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:699 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:825 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:825 [xxxx]: Point X 1527 Y 2584 marked as bad to 15 min
20.08.2018 15:09:20:962 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 2
20.08.2018 15:09:20:962 [xxxx]: Point X 1527 Y 2584 marked as bad to 15 min
20.08.2018 15:09:21:230 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:356 [xxxx]: TMover.Server_MoveReject[1]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:493 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:493 [xxxx]: Point X 1526 Y 2583 marked as bad to 15 min
20.08.2018 15:09:21:555 [xxxx]: Can't find path to (1526, 2590)
20.08.2018 15:09:21:621 [xxxx]: TMover.Server_MoveReject[0]: client seq -1, position: 1526 2584 10, direction 0
20.08.2018 15:09:21:621 [xxxx]: Point X 1526 Y 2583 marked as bad to 15 min
20.08.2018 15:09:21:771 [xxxx]: paralyzed
20.08.2018 15:09:21:771 [xxxx]: paralyzed
20.08.2018 15:09:29:332 [xxxx]: paralyzed
20.08.2018 15:09:29:343 [xxxx]: paralyzed
20.08.2018 15:09:30:392 [xxxx]: MoveXYZ: Location reached!
20.08.2018 15:09:32:733 [xxxx]: MoveXYZ: Location reached!
Re: can't find path to
When Char cant step to point 3 times (received rejection from server) it marks this point as blocked.
So yes, ClearBadLocationList is a solution.
But really good way will be (as described before) to detect paralyze and pause moving until paralyze is gone.
So yes, ClearBadLocationList is a solution.
But really good way will be (as described before) to detect paralyze and pause moving until paralyze is gone.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".