[mc 1.6.x] Openperipheral
#641
Posted 17 August 2013 - 06:58 AM
I then double checked 0.1.10 in single player and it worked there too. So I logged back into my server and tested again. The computer was still returning nil. I decided to break the computer and replace it so the computers back was facing the cell and tested again. That time it worked. I then replaced on top of the cell and it works there too now. Looks like for whatever reason the computer needed to be replaced for it to detect the cell which I swear I tried before. Is it possible that replacing it in the same location caused it not to check for the cell or something?
#642
Posted 17 August 2013 - 12:09 PM
AgentRenamon, on 16 August 2013 - 01:45 PM, said:
I have a question concerning this mod's use with Applied Energistics: Is it possible for a turtle to identify and/or swap the Storage Cell from inside an ME Chest? If so, how? I have a rather evil build project in mind; but it hinges on whether or not this is possible.
Later .... Peace ....
I take it that nobody cares about answering this (I thought) simple question?
#643
Posted 17 August 2013 - 12:10 PM
g = peripheral.wrap("left")
g.clear()
function box()
g.clear()
g.addBox(20,20,120,40,0x000000,1)
end
function WS()
g.addText(22,22,"text",0xffb400)
sleep(1)
g.addText(22,30,"moretext",0x006d4f")
end
event,command = os.pullEvent()
box()
if command == "startup" then
g.addText(22,22,"Starting Up",0xffffff)
sleep(1)
box()
WS()
end
#644
Posted 17 August 2013 - 01:39 PM
AgentRenamon, on 17 August 2013 - 12:09 PM, said:
AgentRenamon, on 16 August 2013 - 01:45 PM, said:
I have a question concerning this mod's use with Applied Energistics: Is it possible for a turtle to identify and/or swap the Storage Cell from inside an ME Chest? If so, how? I have a rather evil build project in mind; but it hinges on whether or not this is possible.
Later .... Peace ....
I take it that nobody cares about answering this (I thought) simple question?
I tried it. It seems like a Turtle can drop Items into an MEChest, but can't pull out of then. Nor can it pull out the Storage Disk. Also, the .pushIntoSlot() from OpenPeripherals just returned nil, nothing else...
#645
Posted 17 August 2013 - 03:20 PM
#646
Posted 17 August 2013 - 03:58 PM
Nathan1852, on 17 August 2013 - 01:39 PM, said:
AgentRenamon, on 17 August 2013 - 12:09 PM, said:
AgentRenamon, on 16 August 2013 - 01:45 PM, said:
I have a question concerning this mod's use with Applied Energistics: Is it possible for a turtle to identify and/or swap the Storage Cell from inside an ME Chest? If so, how? I have a rather evil build project in mind; but it hinges on whether or not this is possible.
Later .... Peace ....
I take it that nobody cares about answering this (I thought) simple question?
I tried it. It seems like a Turtle can drop Items into an MEChest, but can't pull out of then. Nor can it pull out the Storage Disk. Also, the .pushIntoSlot() from OpenPeripherals just returned nil, nothing else...
Thanks .... I do have a backup design; so no issues .... Would have been nice though....
#647
Posted 18 August 2013 - 01:02 AM
AgentRenamon, on 17 August 2013 - 12:09 PM, said:
AgentRenamon, on 16 August 2013 - 01:45 PM, said:
Later .... Peace ....
#648
Posted 18 August 2013 - 06:16 PM
#649
Posted 19 August 2013 - 11:05 AM
megamit, on 18 August 2013 - 06:16 PM, said:
I'm not sure if this is the way it's meant to be, but I linked the goggles and added them to MPS and it worked like a charm.
#650
Posted 19 August 2013 - 12:38 PM
vinugaur, on 17 August 2013 - 12:10 PM, said:
...
Don't clear the screen every time. Say var=g.addText() to initialize a text object and then var.setText(newtext) to change it. Read the documentation.
#651
Posted 19 August 2013 - 02:29 PM
#652
Posted 19 August 2013 - 03:16 PM
rats3g, on 17 August 2013 - 03:20 PM, said:
the builds for 1.6.2 don't yet support the ticket machine, as far as I'm aware. Railcraft have only recently upgraded, and this beta build was released quite a while ago now.
It'll be working again soon..
#653
Posted 19 August 2013 - 07:06 PM
I don't know how chicken_bones has structured his code, but would it be possible to add the ability to get the ender chest and tanks `button` colours?
I am working on some GUIs and I think it would make it a little nicer if I could differentiate between the tanks with the colours.
— BIT
#654
Posted 20 August 2013 - 07:39 AM
I have an issue when using openPeripheral to get info on the tanks of a biogas engine (Forestry)
local engine = peripheral.wrap("back")
local info = engine.getTanks("unknown")
gives me the error message "java.lang.NullPointerException"It works perfectly with a basic tank for example. Is it because a biogas engine has 2 tanks?
Thank you for your help!
#655
Posted 21 August 2013 - 10:20 AM
Specifically, a "peripheral tablet" of some kind. It would be an item that when right-clicked brings up the peripheral glass interface for the bridge associated with the tablet. This interface would be interactive. Any key press would be transmitted as a key event to the bridge associated with the tablet. Any mouse click would be transmitted as an event containing x, y, and button to the bridge. A short help message at the bottom would indicate the key used to exit the bridge (possibly a "control for options" prompt like in CC computers, where one of the options is "Close").
This would allow for glasses-style visibility (overlays and no gui blocking your view of the world) while allowing for a full key+mouse style of interaction with the glasses UI.
I wouldn't necessarily object to it being its own CC-style border+black screen with controls drawn over that either, but I like the idea of a full interactable glasses-style screen, especially if paired with glasses directly -- glasses looking at a UI, but bring up the tablet, click on a few things, change the view, and then when you close it the glasses are still looking at that same bridge and the changes made by commands you entered in the tablet are preserved.
I realize you can get similar functionality with a well designed set of $$ commands, but being able to do it via key+mouse seems a nice option as well (and a fun task for me to write an entire operating system for my next factory base, woo).
Anyways, wanted to toss this out there in the hopes of it being something you want to add. Thanks!
#656
Posted 21 August 2013 - 03:37 PM
I have a problem with OpenPeripheral. It seems OpenPeripheral can't modify the world (Turtle can modify the world).
I tested with computer and 2 chests (on left and right) with 1 dirt in each chest and the code in the computer :
local chest = peripheral.wrap("left")
chest.push("right",1,1)
But this doesn't work, someone has the same problem and fixed it ?Thank you in advance !
#657
Posted 21 August 2013 - 04:20 PM
wamilou, on 21 August 2013 - 03:37 PM, said:
I have a problem with OpenPeripheral. It seems OpenPeripheral can't modify the world (Turtle can modify the world).
I tested with computer and 2 chests (on left and right) with 1 dirt in each chest and the code in the computer :
local chest = peripheral.wrap("left")
chest.push("right",1,1)
But this doesn't work, someone has the same problem and fixed it ?Thank you in advance !
The chest.push doesn't use "left", "right", "back", etc it uses "north", "south", "east", "west", "up", "down". Don't worry I got caught by this too. Turns out if you hover your mouse over the function parameters on the open peripherals documentation it tells you this but nowhere on the page does it mention you can actually do that =), I had to be told about it when I asked about this in IRC.
#658
Posted 21 August 2013 - 04:34 PM
After OpenBlocks 1.0.3 is released, I'll be moving my attention to getting a stable build of OpenPeripheral for 1.6.2 released.
To answer some common questions:
- Yes, thin wire recipe is broken in the 1.6.2 beta. Known issue.
- Yes, tank reading in 1.6.2 is broken
- No, I wont be backporting anything to 1.5.2
- Yes, the 1.5.2 version breaks computercrafts command block methods. That'll be fixed in 1.6.2
- Yes, the rare (very rare) issue with JsonField is known. It won't be fixed, sorry, although it's irrelevant in 1.6.2.
- The docs on the openmods website are for 1.5.2, not 1.6.2. Some methods have been renamed. use p.listMethods() to get the method list.
Aside from that:
1) The chances are, your code is wrong. 90% of 'bug reports' I get are just incorrect lua. I'll do my best to make the documentation clearer for 1.6.2 versions.
2) That other 10% that are valid bugs, I'm sorry! I'll do my best to fix it.
3) MPS integration is being dropped in any future versions.
4) I'm not ignoring these posts. I'll be revisiting this thread and logging any issues ready for my upcoming 1.6.2 stint.
And finally
OpenMods is always looking for java developers, testers, and people who are good at making textures. We've got a variety of projects, so please get in contact if you want to help
#659
Posted 21 August 2013 - 05:24 PM
I tried to use the PIM, with this simple program to know what event does the PIM fires :
pim = peripheral.wrap("right")
e = os.pullEvent()
print(e)
And it seemed that the PIM fired no event when i walked on it
So, is anything wrong with my program or does the PIM really fire no event ? In the latter case, is there any way to detect when a player walk on it ? (i don't want to check every X seconds if an inventory is available)
PS : i'm using the version 0.1.9 included in FTB Unleashed 1.1.2
#660
Posted 22 August 2013 - 02:51 AM
demo_jouable, on 20 August 2013 - 07:39 AM, said:
local engine = peripheral.wrap("back")
local info = engine.getTanks("unknown")
gives me the error message "java.lang.NullPointerException"It works perfectly with a basic tank for example. Is it because a biogas engine has 2 tanks?
Mikeemoo, on 21 August 2013 - 04:34 PM, said:
My issue is on 1.5.2 (FTB Unleashed)
Anybody got an idea?
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users


This topic is locked









