More Peripherals

More Peripherals

219k Downloads

Some problems about CC's ”shell.run()”

YuanEternalR opened this issue · 3 comments

commented

I write a simple lua program to use the block "Trading Interface", but it can be active only by my mutual run.It will be ineffective if I run it by the startup.lua-shell.run(), reminding me that "you are not attached to this computer", and so on.

commented

Hello, can you link the code you are using to run it, and also your setup, could help in debuging

commented

Sorry, sir. I can't use github very well and I don't know how to "link". I can only add some pictures about my problems.
image
This is trading.lua program.

1
This is acted through startup.lua:
image

If I try this:
image
It will effective:

image
image
image

Carrots to Emeralds

commented

So, from what i tested, there was no such error about a peripheral not being attached, maybe the peripheral somehow got deallocated from memory?

i couldn't find a plausible source for this problem, for now i'm gonna mark this as unresolved, and if it pops up again on the peripherals of this mod specifically probably i will just rewrite the whole thing (the code is a mess, one of my first mods)