Cursed Programable Inserters

by L0771

Inserters programables via GUI. All possible convinations.

Utilities
3 years ago
0.15 - 0.18
45

b Extra Loooong inserters

3 years ago

Crash for long inserters:
Error while running event Cursed-PI::cursed_key (ID 191)
Gui element with name datosPI_111 already present in the parent element.
stack traceback:
Cursed-PI/control.lua:202: in function 'makeTable'
Cursed-PI/control.lua:187: in function 'showGui'
Cursed-PI/control.lua:143: in function <Cursed-PI/control.lua:133>
stack traceback:
[C]: in function 'add'
Cursed-PI/control.lua:202: in function 'makeTable'
Cursed-PI/control.lua:187: in function 'showGui'
Cursed-PI/control.lua:143: in function <Cursed-PI/control.lua:133>

Could you replace:
"datosPI_" .. i .. j [==> in the code for ==>] "datosPI_" .. i .. "" .. j
also for
"framePI
" .. i .. j [==> in the code for ==>] "framePI_" .. i .. "_" .. j

and it will works after that

3 years ago

also, at bottom of code
"datosPI_" .. py .. px
to
"datosPI_" .. py .. "_" .. px

"datosPI_" .. dy .. dx
to
"datosPI_" .. dy .. "_" .. dx

New response