Could you elaborate on what you mean by modular?Nice and simple script. Could be more modular though
Alright, have no idea how to handle cabled stuff, but managed to pull it off so that the code will now on its own detect which sides of the computer the Monitors and storage cells are attached to. By doing this I have to make it look specifically for the names of the specific blocks, so the code now only works with TE3 Energy cells and EnderIO Capacitor banks(let me know if there are more that should be added).Modular by way of letting the computer itself detect on which side the monitor and energycell is on. This would allow it to work over wired networks too!
I'll find the exact methods for it later.
peripheral.wrap("left")
peripheral.wrap("cofh_thermalexpansion_energycell_1")
Doh, ofc... Already seen this done lol. I will just add it so it looks for the devices wired after having looked for them adjacent.Wired networks function just like having the peripheral next to the computer, but instead ofyou doCode:peripheral.wrap("left")
or whatever the name of the peripheral is.Code:peripheral.wrap("cofh_thermalexpansion_energycell_1")
Your program should be good enough to be able to handle that.
Edited my previous post with further questions on the matter.Glad to be of assistance
Not often I get to use my computercraft knowledge on these forums.
You sure are testing the limits of my programming skills.... And expanding them a bitGlad to be of assistance
Not often I get to use my computercraft knowledge on these forums.
Edit: This should do the trick: peripheral.getNames
New addition to my scripts:Could you make it support multiple monitors?
Now this is just a game of "How good can you Lua?"
if user.name == "trajing" then
print(NO!)
return
end
I won't inform you of the errors you will get when you run it.New addition to my scripts:
Code:if user.name == "trajing" then print(NO!) return end
Multiple monitors as in writing different stuff on different monitors? That would be quite hard.Could you make it support multiple monitors?
Now this is just a game of "How good can you Lua?"
Yeah, it's a simple loop.Multiple monitors as in writing different stuff on different monitors? That would be quite hard.
But just writing the same info on several? Quite easy.
Yeah wouldn't be too hard. Would require a bit of rewrite of the monitor locating part to actually look for multiple monitors. Right now it just stops once if finds the first one.(or actually if multiple are attached by wired modem, it will use the last one on the list I think).Multiple monitors as in writing different stuff on different monitors? That would be quite hard.
But just writing the same info on several? Quite easy.
Heh. 30ish at a new session, then slowly declining over a few hours towards something like 12-15fpsThat is probably the biggest ME system i've seen by now!
Just wondering, how's your fps with all these things going on?