Logistic Network Channels


Adds communication channels to logistic networks. Logistic entities can be assigned to different channels, and will only form a network with other entities on the same channel. This allows for creating separate logistic networks in areas where they would normally overlap and be merged by the game into one network.

Tweaks
10 months ago
0.17 - 2.0
4.57K
Logistic network

g Crash

2 months ago

I've encountered this crash multiple times just trying to clear the pipette.
https://media.discordapp.net/attachments/864374371677634560/1388195694539706368/image.png?ex=6860197d&is=685ec7fd&hm=afaa4a5c51af9277a56f28f7f8e169231656d94457b349ac6b092937ecf99bda&=&format=webp&quality=lossless&width=1580&height=900

It does seem like some of the rendered objects are no longer valid. After updating the code to:

function badges.destroyAll(playerIndex)
    for _, badgeId in pairs(getPlayerBadges(playerIndex)) do
        local obj = rendering.get_object_by_id(badgeId)
        if obj and obj.valid then
            obj.destroy()
        end
    end
    clearPlayerBadges(playerIndex)
end

The issue goes away

New response