[1.1.64] Crash on LuaSurface.request_path with path_resolution_modifier value of 10
Posted: Thu Aug 04, 2022 12:19 am
When running LuaSurface.request_path and a path_resolution_modifier value of 10 for a valid pathable route the game crashes.
With a path_resolution_modifier value of 1 or 0 (default) it doesn't crash.
Sample vanilla save that the below command breaks:
I was trying to work out what the path_resolution_modifier setting actually did as the description in the API docs is unfortunately rather cryptic. So I tried the value of 10 to see what difference it had to the default of 0.
With a path_resolution_modifier value of 1 or 0 (default) it doesn't crash.
Sample vanilla save that the below command breaks:
Code: Select all
/c game.surfaces[1].request_path({
bounding_box = game.player.character.prototype.collision_box,
collision_mask = game.player.character.prototype.collision_mask,
start = {0,0},
goal = {100,150},
force = game.player.force,
path_resolution_modifier = 10
})