JheffersonMarques / MorePeripherals

Adds new peripherals for CC:Tweaked
MIT License
8 stars 2 forks source link

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

Closed YuanEternalR closed 5 months ago

YuanEternalR commented 5 months ago

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.

JheffersonMarques commented 5 months ago

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

YuanEternalR commented 5 months ago

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

JheffersonMarques commented 5 months ago

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)