ml_pathfind
ml_pathfind copied to clipboard
Providing callback function to findShortestPathBetween crashes the server
As in the title. Providing callback to findShortestPathBetween
function crashes the server without any errors.
local id = loadPathGraph('nodes.json')
if isGraphLoaded(id) then
iprint('Loaded graph with id: ',id)
findShortestPathBetween(id,0,0,0,100,100,100,function(nodes)
iprint('callback')
end)
end
unloadPathGraph(id)
Correction: findShortestPathBetween itself crashes the server
The last build was 3 years ago, I haven't touched that library since. I guess if you would try to compile it with the latest SDK it could just work (even though i am not 100% sure).
Currently I have not really time to investigate the issue further, sorry.
Understood. Though I hope you'd come back to this.
I‘ll reopen the issue, as it is not fixed.
ml_pathfind.zip
Here is a fresh build of the module (untested). Also could you please provide me the nodes.json
file you are using?
I guess I found your issue, you are trying to unload the graph while your are running the path search.
I guess I found your issue, you are trying to unload the graph while your are running the path search.
both sa_nodes.json
and testnodes1.json
from test
directory