Jump to content




[mc 1.6.x] Openperipheral


  • This topic is locked This topic is locked
1184 replies to this topic

#641 demon012

  • Members
  • 9 posts

Posted 17 August 2013 - 06:58 AM

OK that was weird. Decided to play about with versions of open peripherals to check what the problem was with the Redstone Energy Cell. Tried 0.1.9 and it worked fine after removing MPS.

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 AgentRenamon

  • Members
  • 17 posts

Posted 17 August 2013 - 12:09 PM

View PostAgentRenamon, on 16 August 2013 - 01:45 PM, said:

B)

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 ....

B)

:huh:

I take it that nobody cares about answering this (I thought) simple question?

:huh:

#643 vinugaur

  • New Members
  • 2 posts

Posted 17 August 2013 - 12:10 PM

im having some errors, when testing the terminal goggles, it will print 25% of the time, and/or leave out some text or boxes, im not sure what im doing wrong, here is the script:

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 Nathan1852

  • Members
  • 30 posts

Posted 17 August 2013 - 01:39 PM

View PostAgentRenamon, on 17 August 2013 - 12:09 PM, said:

View PostAgentRenamon, on 16 August 2013 - 01:45 PM, said:

B)

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 ....

B)

:huh:

I take it that nobody cares about answering this (I thought) simple question?

:huh:

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 rats3g

  • Members
  • 7 posts

Posted 17 August 2013 - 03:20 PM

Was support for the Ticket Machine dropped in the 0.2.0 beta update? The changelog states that support for a LOT of things was dropped and when I printed the methods for the peripheral createTicket() did not appear. I ask because I had planned on using the machine for a railcraft subway station. Thanks for any info you can give me!

#646 AgentRenamon

  • Members
  • 17 posts

Posted 17 August 2013 - 03:58 PM

View PostNathan1852, on 17 August 2013 - 01:39 PM, said:

View PostAgentRenamon, on 17 August 2013 - 12:09 PM, said:

View PostAgentRenamon, on 16 August 2013 - 01:45 PM, said:

B)

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 ....

B)

:huh:

I take it that nobody cares about answering this (I thought) simple question?

:huh:

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...

B)

Thanks .... I do have a backup design; so no issues .... Would have been nice though....

B)

#647 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 18 August 2013 - 01:02 AM

View PostAgentRenamon, on 17 August 2013 - 12:09 PM, said:

View PostAgentRenamon, 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?
Your large use of emoticons hurt my eyes... but the main reason most would have ignored it was because of "I have a rather evil build project in mind" we don't support evil projects or malicious code here.

#648 megamit

  • Members
  • 9 posts

Posted 18 August 2013 - 06:16 PM

I don't seem to be able to link a mps helmet with the terminal glasses module, to a bridge. i am using version 0.1.10 and just the glasses works fine.

#649 Last1Here

  • Members
  • 32 posts
  • LocationUK

Posted 19 August 2013 - 11:05 AM

View Postmegamit, on 18 August 2013 - 06:16 PM, said:

I don't seem to be able to link a mps helmet with the terminal glasses module, to a bridge. i am using version 0.1.10 and just the glasses works fine.

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 electrodude512

  • Members
  • 167 posts
  • LocationEastern USA

Posted 19 August 2013 - 12:38 PM

View Postvinugaur, on 17 August 2013 - 12:10 PM, said:

im having some errors, when testing the terminal goggles, it will print 25% of the time, and/or leave out some text or boxes, im not sure what im doing wrong, here is the script:

...

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 rawritsdan

  • Members
  • 26 posts

Posted 19 August 2013 - 02:29 PM

How would one go about seeing what or how much of what is in an openblocks tank? :)

#652 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 19 August 2013 - 03:16 PM

View Postrats3g, on 17 August 2013 - 03:20 PM, said:

Was support for the Ticket Machine dropped in the 0.2.0 beta update? The changelog states that support for a LOT of things was dropped and when I printed the methods for the peripheral createTicket() did not appear. I ask because I had planned on using the machine for a railcraft subway station. Thanks for any info you can give me!

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 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 19 August 2013 - 07:06 PM

Hey Mikee,

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 demo_jouable

  • New Members
  • 2 posts

Posted 20 August 2013 - 07:39 AM

Hi guys,

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 CheshireKatt

  • New Members
  • 2 posts

Posted 21 August 2013 - 10:20 AM

So I've been messing around with peripheral glasses lately, and have been wondering about the feasibility of a possible "advanced" version.

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 wamilou

  • Members
  • 3 posts

Posted 21 August 2013 - 03:37 PM

Hi everyone !

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 demon012

  • Members
  • 9 posts

Posted 21 August 2013 - 04:20 PM

View Postwamilou, on 21 August 2013 - 03:37 PM, said:

Hi everyone !

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 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 21 August 2013 - 04:34 PM

I've been mostly ignoring a lot of this thread lately. Not for any reason other than my focus is on OpenBlocks at the moment.

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 Annyo

  • New Members
  • 1 posts

Posted 21 August 2013 - 05:24 PM

Hi !

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 demo_jouable

  • New Members
  • 2 posts

Posted 22 August 2013 - 02:51 AM

View Postdemo_jouable, on 20 August 2013 - 07:39 AM, said:

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?

View PostMikeemoo, on 21 August 2013 - 04:34 PM, said:

- Yes, tank reading in 1.6.2 is broken

My issue is on 1.5.2 (FTB Unleashed)
Anybody got an idea?





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users