ChefZander / skyblock_zero

Start from absolutely nothing in a skyblock world. Time is your resource. Get lost in the ambiance. Space is your canvas.
https://discord.gg/TuC8rv26df
GNU General Public License v3.0
4 stars 4 forks source link

any machine + connector = crash (CDB version) #49

Closed slepice24 closed 3 days ago

slepice24 commented 3 days ago

when placed connector next to any machine something like this and turned on

screenshot_20240915_121625

it crashes until turned off output: AsyncErr: Lua: Runtime error from mod 'sbz_power' in callback environment_Step(): /app/share/minetest/builtin/common/misc_helpers.lua:497: attempt to get length of local 'other' (a number value) stack traceback: /app/share/minetest/builtin/common/misc_helpers.lua:497: in function 'insert_all' ...netest/games/skyblock_zero/mods/sbz_power/connectors.lua:69: in function 'assemble' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:72: in function 'func' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:77: in function 'func' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:77: in function 'func' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:77: in function 'func' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ... ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:77: in function 'func' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:77: in function 'func' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:12: in function 'iterate_around_pos' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:77: in function 'internal' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:81: in function 'assemble_network' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:142: in function 'switching_station_tick' ...games/skyblock_zero/mods/sbz_power/switching_station.lua:339: in function <...games/skyblock_zero/mods/sbz_power/switching_station.lua:309> /app/share/minetest/builtin/common/register.lua:26: in function </app/share/minetest/builtin/common/register.lua:12>

TheEt1234 commented 3 days ago

i think i broke this one (probably has something to do with me completely changing the switching station code...) i'll try reproducing it

TheEt1234 commented 3 days ago

yep, ive been able to reproduce it

TheEt1234 commented 3 days ago

and i think i have fixed it, but connectors may still be very broken

TheEt1234 commented 3 days ago

nevermind, they seem to work, i will PR the fix