I'm currently working on a mods that provide a really better snapping algorithm than any I've found, the only problem is that as many snapping algorithm, it can't fully works with other snapping algorithm. Mine only has unwanted behaviour when the algorithm choose to do nothing.
As I can see we need to have a way to choose which algorithm we prefer and so my mod also aim at that:
Allowing user to select at startup which algorithm is prefered.
So I ask you to add in control.lua:
-- if setting loaders-snap don't exist or is set to Deadlock then allow this loader logic
if (not settings.startup["loaders-snap"] or settings.startup["loaders-snap"].value == "Deadlock") then
-- snapping logic
end
also you will need to add under settings-updates.lua
if data.raw["string-setting"] and data.raw["string-setting"]["loaders-snap"] then
table.insert(data.raw["string-setting"]["loaders-snap"].allowed_values, "Deadlock")
end
to add entry to the algorithm selection setting