Jump to content




[mc 1.6.x] Openperipheral


1184 replies to this topic

#621 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 08 August 2013 - 07:44 AM

View Postlefty, on 07 August 2013 - 04:45 PM, said:

View PostMikeemoo, on 07 August 2013 - 01:20 PM, said:

Is/will be fixed in 1.6.2. I wont be backporting the fix to 1.5.2 though.
What about the smp startup crash? :/ http://pastebin.com/uDsqDnNf

It's looking unlikely I'll be fixing that due to it causing such a tiny tiny tiny percentage of people an issue (I've had that bug reported around 4 times over ~1.7 million installs). The bit that's calling that is a real core part and not easily fixed, and I can't get to the bottom of what's causing it. All I can recommend for the time being is removing the mod.

It's not relevant in 1.6.2 versions

If I get time, I'll look into it, but it's not high on my priority list right now (my sisters wedding tomorrow is higher! :))

#622 Frederikam

  • Members
  • 112 posts
  • LocationDenmark

Posted 08 August 2013 - 08:23 AM

View Posttheoriginalbit, on 08 August 2013 - 07:32 AM, said:

View PostFrederikam, on 08 August 2013 - 07:27 AM, said:

The text color is black, where '1' would normally stand for white. If I would be to use 32768 instead of 1 I would get green text, where 32768 is black.
That is because this does not use the ComputerCraft/minecraft colouring system of just 16 colours.... you can have all 16,777,216 colours (256^3, rgb, I'm ignoring alpha)... this is because it uses the HEX colour system where the colour is formatted as #RRGGBB... each set of two is a hex number between 00 (dec 0) and FF (dec 255)... I've created a useful function if you know some RGB values that converts from RGB into hex...


local function rgbToHex( _r, _g, _b )
  return bit.bor(bit.blshift(bit.bor(bit.blshift(_r, 8), _g), 8), _B)/>/>/>/>
end

View PostFrederikam, on 08 August 2013 - 07:27 AM, said:

Also every time I clear the glasses to rewrite a line I get a flicking effect, is there any way to avoid that?
Don't clear it! If you store the returned object from the addText/addBox call there are setters for it that allow you to change it without causing a flicker

I haven't gotten to the object yet, but what format do I put the hex code in? I tried using #FFFFFF but for obvious reasons that's read as an attempt to get the size of a string/table that doesn't exist.

#623 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 08 August 2013 - 08:27 AM

View PostFrederikam, on 08 August 2013 - 08:23 AM, said:

View Posttheoriginalbit, on 08 August 2013 - 07:32 AM, said:

View PostFrederikam, on 08 August 2013 - 07:27 AM, said:

The text color is black, where '1' would normally stand for white. If I would be to use 32768 instead of 1 I would get green text, where 32768 is black.
That is because this does not use the ComputerCraft/minecraft colouring system of just 16 colours.... you can have all 16,777,216 colours (256^3, rgb, I'm ignoring alpha)... this is because it uses the HEX colour system where the colour is formatted as #RRGGBB... each set of two is a hex number between 00 (dec 0) and FF (dec 255)... I've created a useful function if you know some RGB values that converts from RGB into hex...


local function rgbToHex( _r, _g, _b )
  return bit.bor(bit.blshift(bit.bor(bit.blshift(_r, 8), _g), 8), _B)/>/>/>/>/>
end

View PostFrederikam, on 08 August 2013 - 07:27 AM, said:

Also every time I clear the glasses to rewrite a line I get a flicking effect, is there any way to avoid that?
Don't clear it! If you store the returned object from the addText/addBox call there are setters for it that allow you to change it without causing a flicker

I haven't gotten to the object yet, but what format do I put the hex code in? I tried using #FFFFFF but for obvious reasons that's read as an attempt to get the size of a string/table that doesn't exist.

0xFFFFFF

no quotes

#624 Frederikam

  • Members
  • 112 posts
  • LocationDenmark

Posted 09 August 2013 - 01:05 AM

View PostMikeemoo, on 08 August 2013 - 08:27 AM, said:

snip

Thank you, I think I figured it all out.

#625 MxHn

  • Members
  • 29 posts
  • LocationDuluth, MN, USA

Posted 09 August 2013 - 08:28 AM

Thanks for updating! Now I have to wait for railcraft.

#626 Justy

  • Members
  • 210 posts
  • LocationCLGD

Posted 12 August 2013 - 04:41 PM

I know this has been reported before, but I still get the bug with OpenPeripheral overwriting the command block api. :(

#627 MxHn

  • Members
  • 29 posts
  • LocationDuluth, MN, USA

Posted 13 August 2013 - 10:24 AM

Hmm, has the sensor block been added yet?

#628 prozacgod

  • Members
  • 7 posts

Posted 16 August 2013 - 12:17 AM

I had a few more (OP) ideas which would be nifty to add, when a player sends a message it also states the distance he is from that terminal bridge. We could register with multiple bridges, and use the GPS code to triangulate the player position, over rednet

Also, adding an event for when a player places glasses onto their head could be useful, for two reasons, one we get the opportunity to reset the gui to a blank state and also to check if a player that isn't allowed to wear them has stuck them on, and go into a security mode or something.

I suppose if the system was in security mode, we'd need a way to reset the glasses as well, can you currently relink the glasses? producing a new ID?

#629 Nathan1852

  • Members
  • 30 posts

Posted 16 August 2013 - 10:10 AM

Hey Mikee

First: This is a really great mod, i love it to play with the things you invented/moded here!

Second: Would it be possible if Inventorys like Vanilla Chests, Enderchests, the Slots in an Macerator and so on would fire an Event when their Inventory changed?

#630 iTimmyLP

  • New Members
  • 1 posts

Posted 16 August 2013 - 12:20 PM

Hi there all,
I have an problem with that:

ST = peripheral.wrap("steel_tank_valve_1")
local tankList = ST.getTanks("unknown")
for key, tank in pairs(tankList) do
for k2, value in pairs(tank) do
print(k2.. " = " .. tostring(value))
end
end

I do not get it to work. It say somethink with "call to nil" or so.
Please help me.

Faithfully,
Timmy

#631 AgentRenamon

  • Members
  • 17 posts

Posted 16 August 2013 - 01:45 PM

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)

#632 Nathan1852

  • Members
  • 30 posts

Posted 16 August 2013 - 04:37 PM

View PostiTimmyLP, on 16 August 2013 - 12:20 PM, said:

Hi there all,
I have an problem with that:

ST = peripheral.wrap("steel_tank_valve_1")
local tankList = ST.getTanks("unknown")
for key, tank in pairs(tankList) do
for k2, value in pairs(tank) do
print(k2.. " = " .. tostring(value))
end
end

I do not get it to work. It say somethink with "call to nil" or so.
Please help me.

Faithfully,
Timmy


As far as i am aware, the .getTanks() function doesn't work right now.

#633 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 16 August 2013 - 04:47 PM

View PostNathan1852, on 16 August 2013 - 04:37 PM, said:

As far as i am aware, the .getTanks() function doesn't work right now.
The only thing I cannot get it to work on at all is the Magma Crucible from Thermal Expansion. However I have noticed that "unknown" never seemed to work, but instead "west" was the direction I had to use to get the tanks in TE. So the only suggestion I can make is the same for the Railcraft Tanks.

#634 demon012

  • Members
  • 9 posts

Posted 17 August 2013 - 05:14 AM

Hey Mikee,

Is the Thermal Expansion code in the 1.5.2 code? Just tried using it against a redstone cell and got a nil from the peripheral wrap.

This was while using your 0.1.10 build for the MPS compatibility.

Thanks,

demon012

#635 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 August 2013 - 05:23 AM

View Postdemon012, on 17 August 2013 - 05:14 AM, said:

Is the Thermal Expansion code in the 1.5.2 code? Just tried using it against a redstone cell and got a nil from the peripheral wrap.
I am currently using it perfectly fine in 1.5.2... Post your code...

#636 Nathan1852

  • Members
  • 30 posts

Posted 17 August 2013 - 05:28 AM

View Posttheoriginalbit, on 16 August 2013 - 04:47 PM, said:

View PostNathan1852, on 16 August 2013 - 04:37 PM, said:

As far as i am aware, the .getTanks() function doesn't work right now.
The only thing I cannot get it to work on at all is the Magma Crucible from Thermal Expansion. However I have noticed that "unknown" never seemed to work, but instead "west" was the direction I had to use to get the tanks in TE. So the only suggestion I can make is the same for the Railcraft Tanks.

Oh, I'm sorry. I was talking about the 1.6.2 Version of OpenPeripherals.

#637 demon012

  • Members
  • 9 posts

Posted 17 August 2013 - 05:31 AM

View Posttheoriginalbit, on 17 August 2013 - 05:23 AM, said:

View Postdemon012, on 17 August 2013 - 05:14 AM, said:

Is the Thermal Expansion code in the 1.5.2 code? Just tried using it against a redstone cell and got a nil from the peripheral wrap.
I am currently using it perfectly fine in 1.5.2... Post your code...

cell = peripheral.wrap("bottom")
print(textutils.serialize(cell))

Returns "nil"

One of several things is true, the 0.1.10 version I have does not have the code. Or my version of Thermal expansion is not compatible it would seem.

#638 demon012

  • Members
  • 9 posts

Posted 17 August 2013 - 05:40 AM

View Posttheoriginalbit, on 17 August 2013 - 05:23 AM, said:

View Postdemon012, on 17 August 2013 - 05:14 AM, said:

Is the Thermal Expansion code in the 1.5.2 code? Just tried using it against a redstone cell and got a nil from the peripheral wrap.
I am currently using it perfectly fine in 1.5.2... Post your code...

What versions of open peripherals and TE are you using so I can test them?

#639 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 August 2013 - 05:58 AM

View PostNathan1852, on 17 August 2013 - 05:28 AM, said:

Oh, I'm sorry. I was talking about the 1.6.2 Version of OpenPeripherals.
Ahh ok



View Postdemon012, on 17 August 2013 - 05:40 AM, said:

What versions of open peripherals and TE are you using so I can test them?
Whatever ones are included in FTB Unleashed 1.1.2

#640 demon012

  • Members
  • 9 posts

Posted 17 August 2013 - 06:06 AM

View Posttheoriginalbit, on 17 August 2013 - 05:58 AM, said:

View Postdemon012, on 17 August 2013 - 05:40 AM, said:

What versions of open peripherals and TE are you using so I can test them?
Whatever ones are included in FTB Unleashed 1.1.2

OK not been able to find out the TE version but the Open Peripherals they use is 0.1.9 so the code is more than likely in 0.1.10 so may be my Thermal Expansion version.

http://forum.feed-th...modpack.27602//

For the record I am using ThemeralExpansion 2.4.6.0 and Buildcraft 3.7.2.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users