[1.1.64] Crash on LuaSurface.request_path with path_resolution_modifier value of 10

This subforum contains all the issues which we already resolved.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

[1.1.64] Crash on LuaSurface.request_path with path_resolution_modifier value of 10

Post by Muppet9010 »

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:
pathfinder_crash.zip
(1.06 MiB) Downloaded 82 times

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
})
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.
Attachments
factorio-dump-current.dmp
(805 KiB) Downloaded 84 times
factorio-current.log
(12.13 KiB) Downloaded 98 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3078
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.64] Crash on LuaSurface.request_path with path_resolution_modifier value of 10

Post by boskid »

I can give you some hints about what will be the fix in 1.1.65 when it will be fixed:
- path_resolution_modifier parameter is used for AI Pathfinder's pathResolutionModifier
- The same AI Pathfinder's pathResolutionModifier when searching for paths for units gets its value from AI settings, specifically from LuaAISettings::path_resolution_modifier
- There is certain range of valid values for the LuaAISettings::path_resolution_modifier.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3078
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.64] Crash on LuaSurface.request_path with path_resolution_modifier value of 10

Post by boskid »

Thanks for the report. Issue is now fixed for 1.1.65.
Post Reply

Return to “Resolved Problems and Bugs”