33 posts
Posted 13 February 2016 - 12:05 PM
hi there,
i foound a youtube video which combined a computercraft touchscreen porgram with the apllied energistics 2 sspatial io.
spatial io lets you store data (players; items; structure) in disks and those disks can be put in an spatial io port which acts like an card reader. it reads the information and if something is stored on a disk it will "display" the information. so far to the "basics"
here is the youtube video where everything is well explained:
https://www.youtube.com/watch?v=QpNvGjnqu3si rebuild the system in my world.
http://www.directupload.net/file/d/4263/hor2loh6_png.htmbot somehow the chest behinf the computer is not pushing the items down.
cant figure it out; tried with
if rs.getInput
but not working as mentioned.
i highly appreciate any help.
best regards
121 posts
Posted 13 February 2016 - 03:07 PM
Would be helpful to see your code.
Its not pushing the items down?
Do you need to set an output?
rs.setOutput("bottom", true) --# Apples a redstone signal to bottom of the comptuer
33 posts
Posted 13 February 2016 - 03:14 PM
well i linked the video wehre everything is well explained: but here you go
http://pastebin.com/2L5k9Wgvthe code is waiting for events: for monitor_touch (button press) or a redstone input.
-so i dont need so set an Output
but hx
121 posts
Posted 13 February 2016 - 03:26 PM
So its most probably something to do with your setup as you are using paradox's code which there is nothing wrong with.
Be sure to double check the names of the peripherals as yours will have different names.
Oh, and make sure you have the same mods(version).
Edited on 13 February 2016 - 02:33 PM
33 posts
Posted 13 February 2016 - 04:21 PM
nope; all needed peripherlas are wrapped to the computer with the correct names.
i know that the code is working but i need a fix for the redstone part.
setup is also the same.
if some1 want to have a look at it: ftb direwolf20 pack latest version.
map:
http://cloud.directupload.net/d36s
7083 posts
Location
Tasmania (AU)
Posted 14 February 2016 - 07:39 AM
If you simply go into the Lua console, wrap the chest and start directly giving it orders to move items about, does that work?
33 posts
Posted 14 February 2016 - 10:05 AM
ye its working perfectly
i wrote a little program if it moves the items if a redstone signal is detected on the left side works perfect: so why not in the program
chest = peripheral.wrap("back")
while true do
os.pullEvent("redstone")
if redstone.getInput("left", true) then
chest.pushItem("down",1)
end
end
but the problem is:
http://www.directupload.net/file/d/4264/x3w2kjx2_png.htm the porgram test needs to decide whether it moves the disk which comes from the left from the grey pipe up into the tesserct (where it will go to clicked destination) or down where it will go into an edner chest.
so if implement now my redstone program into the final program it will only focus on the redstone part …
33 posts
Posted 15 February 2016 - 04:33 PM
any suggestions?
7083 posts
Location
Tasmania (AU)
Posted 16 February 2016 - 11:05 AM
Ok, I loaded up the world, added a few print statements, and see the problem:
Whenever the redstone state changes, a peripheral_detach event for the ender chest under the computer is generated
before the redstone event. This triggers the "try again" branch, which sleeps for a few seconds, discarding all other events as it does so. It's hence impossible for your event puller on line 24 to get the redstone event.
A workaround for this would be to change line 48:
else
… to something like this:
elseif event == "monitor_touch" then
33 posts
Posted 16 February 2016 - 03:19 PM
i chnaged this line to your suggestion but then i got the following error message:
test:30: Argument frequency cannot be null
http://pastebin.com/3d6gagMeedit: i have the exact same setup like him.
Edited on 16 February 2016 - 02:20 PM
1080 posts
Location
In the Matrix
Posted 16 February 2016 - 04:05 PM
To confirm, that print statement at line 28 that prints out freq, that shows you a number right?
Edited on 16 February 2016 - 03:06 PM
33 posts
Posted 16 February 2016 - 05:22 PM
so frequencys are files located on the computer and named after their "destination". example: so you come to the computer; there are the numbers 1 to 5 on the screen and you can prees them(by monitor touch ofc) so if you press the numbers 5 the computer reads the file(if there is one named as "5") and reads the number = requency what is printed in this file. and then the compter sets the tesseract(connected to the network ofc) withthis frequency.
to your question: yes it ll show me a number
1080 posts
Location
In the Matrix
Posted 17 February 2016 - 06:51 AM
Did you actually make it print out the number? Or do you just trust it?
33 posts
Posted 17 February 2016 - 05:54 PM
yes it does print you out the number
1080 posts
Location
In the Matrix
Posted 17 February 2016 - 11:38 PM
Change line 28 to
print(tonumber(freq))
And see if it still prints out a number.