BeltRouter Lite

by plexpt

BeltRouter lite version. 90MB->400KB. This mod allows you to route belts and pipes automatically: 1. Put the starting belt and ending belt on ground first, 2. then select the starting belt with control+right-click and 3. select a ending belt with control+left-click. Boom, belt ghosts are created! (hint: you can also disable underground belt by shift+ctrl+left-click at the ending belt)

Utilities
17 days ago
1.1 - 2.0
3.83K

g Mod doesn't Load

28 days ago

Getting error on load.
prototype "toggle-waypoint-mod" (shortcut) Value must be a string in properety tree atROOT.shortcut.toggle-waypoint-mode.icon

28 days ago

updated

28 days ago

Still getting the same error even after the update https://imgur.com/a/p6koCtE

28 days ago
(updated 28 days ago)

The shortcut prototype is missing the required 'small_icon' property. Factorio shortcuts require both 'icon' and 'small_icon' to be defined. Simply add a small_icon property pointing to your icon file to fix the error."

data:extend {
    {
        type = "custom-input",
        name = "build-transport-line",
        key_sequence = "CONTROL + mouse-button-1"
    },
    {
        type = "custom-input",
        name = "build-transport-line-no-underground",
        key_sequence = "CONTROL + SHIFT + mouse-button-1"
    },
    {
        type = "custom-input",
        name = "build-transport-line-prefer-ground",
        key_sequence = "CONTROL + ALT + mouse-button-1"
    },
    {
        type = "custom-input",
        name = "select-line-starting-point",
        key_sequence = "CONTROL + mouse-button-2",
        alternative_key_sequence = "CONTROL + SHIFT + mouse-button-2"
    },
    {
        type = "custom-input",
        name = "toggle-waypoint-mode",
        key_sequence = "CONTROL + Q",
    },
    {
        type = "custom-input",
        name = "terminate-path-finding",
        key_sequence = "CONTROL + SHIFT + T",
    },
    {
        type = "shortcut",
        name = "toggle-waypoint-mode",
        toggleable = true,
        icon = "__BeltRouter-lite__/icon/waypoint-mode.png",
        small_icon = "__BeltRouter-lite__/icon/waypoint-mode.png", 
        action = "lua"
    }
}

Here's the fix.

28 days ago

Which, does get you to the main menu but there is a bigger problem:

__BeltRouter-lite__/MiscLib/path_find/path_node.lua:6: module assert_not_null not found;  no such file __BeltRouter-lite__/MiscLib/path_find/assert_not_null.lua no such file __BeltRouter-lite__/assert_not_null.lua no such file __core__/lualib/assert_not_null.lua
stack traceback:
    [C]: in function 'require'
    __BeltRouter-lite__/MiscLib/path_find/path_node.lua:6: in main chunk
    [C]: in function 'require'
    __BeltRouter-lite__/transport_line_connector.lua:25: in main chunk
    [C]: in function 'require'
    __BeltRouter-lite__/control.lua:21: in main chunk
28 days ago

Which, does get you to the main menu but there is a bigger problem:
lua __BeltRouter-lite__/MiscLib/path_find/path_node.lua:6: module assert_not_null not found; no such file __BeltRouter-lite__/MiscLib/path_find/assert_not_null.lua no such file __BeltRouter-lite__/assert_not_null.lua no such file __core__/lualib/assert_not_null.lua stack traceback: [C]: in function 'require' __BeltRouter-lite__/MiscLib/path_find/path_node.lua:6: in main chunk [C]: in function 'require' __BeltRouter-lite__/transport_line_connector.lua:25: in main chunk [C]: in function 'require' __BeltRouter-lite__/control.lua:21: in main chunk

updated, but still has issue

17 days ago

After a long time spent identifying and fixing the issue,

the problem has finally been resolved.

I'm exhausted!

Please feel free to use it again soon.

New response