King Jo's Automatic Paver


Places the fastest kind of tiles automatically below you when you walk around. Toggleable with shortcut. Comes with adjustable radius and kind of tile.

Utilities
11 days ago
1.1 - 2.1
602
Environment

b opening helmod (paused) switches automatic paving off

1 year, 3 months ago

i open helmod via the quick button next to the toolbar, and i have it set to pause the game while it's open. doing this seems to switch the automatic paver off for some reason

1 year, 3 months ago

I have no idea why it is doing that... It's literally toggling with the helmod button

1 year, 3 months ago

maybe something to do with a window being opened? it seems opening the window of the "factory search" mod also toggles it off

1 year, 2 months ago

figured it out, when hanging a callback on an event, you also need to check the event type like so:

script.on_event(defines.events.on_lua_shortcut, function(event)
    if(event.prototype_name ~= "kj_autopaver_toggle") then return end

relatedly: can you put the mod on github? would make collaboration a bit easier

1 year, 2 months ago

omg.... yeah its fixed now XD

and i don't think its worth putting it on github

New response