Pathfinding Script compatible with Victor Engine's Pixel Movement.

All pathfinding scripts I found came with incompatibility problems , I'm using the Victor Engine Movement Suite (pixel+diagonal+character graphics+visual equip+ character control, etc).

Khas Pathfinding causes a freeze of 2 seconds or more when the path is calculated, with the Victor's pixel movement on and even using the khas's Pixel Movement instead.

Theo pathfinding just doesnt work.

The script that I managed to make ALMOST work because it had no lag was cozziekuns's pathfinding. It still causes like a 1/2 second freeze in a map of 40x60 (if both the event that makes the pathfinding and the destiny are almost at both ends of the map), and it can't find the player's path directly because it crashes if the player or the destiny its in a decimal coordinate, so I have an event that is always aligned to grid and it transport to the player every few seconds, this event is the destiny of the pathfinder, still, I would like it to not have lag at all because the intention its to use it a lot, its for followers and enemies, this script also has like 100 different situations where the game crash, like the path being obstaculized by anything, or the pathfinder being also in a decimal coordinate, or even sharing the tile with other event, etc etc...so, even with a clever eventing to make the path being calculated in the exact right time, it stills always a situation that causes a crash.

Still managed to have 2 followers with a system to avoid crashing with this script, it can work for some minutes, but still crashes in circumstances that I haven't managed to hunt...

There are other pathfinding scripts that I tested but none of them worked.
Do you know how pathfinding works? There is lag because the algorithm has to sample every tile around the event to try to find a valid path to the destination, and the longer the path the longer it takes to find it. I highly recommend you play with this tool to understand what you're actually doing when you run a pathfinding script. It even shows multiple pathfinding algorithms.

As far as your decimal coordinates go, you're likely going to have to round the destination coordinates and/or the nodes along the way so they're whole numbers.
As far as your decimal coordinates go, you're likely going to have to round the destination coordinates and/or the nodes along the way so they're whole numbers.
RGSS3 Script support

There are other pathfinding scripts that I tested but none of them worked.
You need to say what those are. There is likely more that you haven't tried.

Jet10985 pathfinding
Karanum pathfinding
Modern Algebra Pathfinding

There is also Invenio from RpgMakerSource, but that's a paid script. which you can't get anymore
Do you know how pathfinding works? There is lag because the algorithm has to sample every tile around the event to try to find a valid path to the destination, and the longer the path the longer it takes to find it. I highly recommend you play with this tool to understand what you're actually doing when you run a pathfinding script. It even shows multiple pathfinding algorithms.

As far as your decimal coordinates go, you're likely going to have to round the destination coordinates and/or the nodes along the way so they're whole numbers.

I don't exactly know how it works, but I know it's demanding, however, the lag it's much more prominent only when I use the pixel movement scripts. So maybe a pathfinding that ignores pixel movement in a way and work with the 32x32 grid its the way to go? Don't know if its possible thought because the Victor' script affect events too.

Thats Javascript, I'm using rgss3 (Vx Ace)
RGSS3 Script support


You need to say what those are. There is likely more that you haven't tried.

Jet10985 pathfinding
Karanum pathfinding
Modern Algebra Pathfinding

There is also Invenio from RpgMakerSource, but that's a paid script. which you can't get anymore

Jet doesn't react at all when I try to use it.

The cozziekuns's script i'm using its actually the rpgmVX modern algebra pathfinding script, but modified for Ace, note that he even mention it in the script information.
I didn't used Karanum's tho, but I just tested it and my character doesn't move anywhere (only turns) and the event doesn't move neither when calculates the path.
So are you using event calls for the pathfinding like it says in cozziekuns's script?
I also have OneEyedEagle script that I translated with google.
Also a pixel movement script from him.
Otherwise a patch would have to be make for Cozziekuns.
So are you using event calls for the pathfinding like it says in cozziekuns's script?
I also have OneEyedEagle script that I translated with google.
Also a pixel movement script from him.
Otherwise a patch would have to be make for Cozziekuns.
Yes I'm using it correctly but it has a lot of problems, gonna test those scripts, thank you!, I'll be back with results.

Original thread: https://forums.rpgmakerweb.com/threads/pathfinding-script-compatible-with-victor-engines-pixel-movement.165243/