Jump to content




[mc 1.6.x] Openperipheral


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

#161 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 06:43 AM

View PostThief^, on 13 June 2013 - 04:40 AM, said:

Ability to draw lines

I'll add that into the next version. For now you'll have to use 1px boxes

View PostThief^, on 13 June 2013 - 04:40 AM, said:

Ability to draw line boxes (i.e. outline only with no fill, or with a different colour/opacity for outline)

i'll look into that

View PostThief^, on 13 June 2013 - 04:40 AM, said:

Ability to get the window size in UI coordinates (not possible?)
Ability to get the FOV setting of the glasses's wearer (not possible?)

Unfortunately not easy, as multiple people can wear glasses linked to the same bridge. I'll have a think about it, though.

View PostThief^, on 13 June 2013 - 04:40 AM, said:

EDIT: Ability to measure text, so I can center it

This already exists as of 0.1.6

#162 Thief^

  • Members
  • 29 posts

Posted 13 June 2013 - 08:29 AM

Yeah, I didn't think those two would be possible.

Thanks for the others though!

#163 iconmaster

  • Members
  • 17 posts

Posted 13 June 2013 - 09:48 AM

Tested 0.1.7, works perfectly on both client and server.

#164 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 10:09 AM

View Posticonmaster, on 13 June 2013 - 09:48 AM, said:

Tested 0.1.7, works perfectly on both client and server.

Thank you very much!

Everyone upgrade to 0.1.7 now please! ;)

#165 Meeschter

  • Members
  • 5 posts

Posted 13 June 2013 - 10:23 AM

the patch seems to be fine, thanks for the fast fix

one other thing, would it be possible to include getHeat() and getMaxHeat() in ReactorChamberElectric, some reactor setups don't allow any access to the Reactor itself

#166 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 10:32 AM

View PostMeeschter, on 13 June 2013 - 10:23 AM, said:

the patch seems to be fine, thanks for the fast fix

one other thing, would it be possible to include getHeat() and getMaxHeat() in ReactorChamberElectric, some reactor setups don't allow any access to the Reactor itself

I'll add that in remotely over the next day or two. You wont need to do an update. :)

#167 GopherAtl

  • Members
  • 888 posts

Posted 13 June 2013 - 10:32 AM

updated to 1.7, not done much testing yet but will report back any issues.

Usernames for chat_command events is excellent, but... any possibility of adding a side/name arg as well? Would make it easier when working with an array of bridges from a single computer. I know this was pretty trivial to do before the lan upgrade, with just sides, and I assume the new lan peripheral name system uses the same basic approach, exposing a method on the interface to the connected computer provided to the peripheral java-side to get the name from that computer's perspective.

#168 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 10:46 AM

View PostGopherAtl, on 13 June 2013 - 10:32 AM, said:

updated to 1.7, not done much testing yet but will report back any issues.

Usernames for chat_command events is excellent, but... any possibility of adding a side/name arg as well? Would make it easier when working with an array of bridges from a single computer. I know this was pretty trivial to do before the lan upgrade, with just sides, and I assume the new lan peripheral name system uses the same basic approach, exposing a method on the interface to the connected computer provided to the peripheral java-side to get the name from that computer's perspective.

Hrmmmmmm.

Well, hrmm.

Hmm!

Guid should be getting sent down already.

computer.queueEvent("chat_command", new Object[] { command, username, getGuid() });

Using that you should be able to work out the side, by calling getGuid() on each peripheral attached.

However, I'll see if there's something I can do regarding which side it's on.. If I can get my brain to work at least.


#169 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 10:55 AM

Next release will have a new block that im adding called the Proxy Block.

At the moment you can't attach wired modems to 'non-solid' blocks, which is a pain!

You'll be able to stick the proxy block next to one of these non-solid blocks and attach the modem to that instead.

A classic example of this is the buildcraft tank. To interface with it at the moment you have to have a computer directly next to a tank. Instead you'll be able to stick a proxy block next to it, then wire it up :)/>

Great for 'mass monitoring' programs that collect data from an entire network.

This'll be in 0.1.8 which'll be released within a week or two.

(Yeah, I release often! Sorry. I guess I prefer just to get features out as quickly as possible. People can choose to upgrade if they wish, so I supply links to all old versions too)

#170 GopherAtl

  • Members
  • 888 posts

Posted 13 June 2013 - 10:57 AM

yeah, I can remember or search to identify by guid; indeed, in most cases I imagine, I can do the same with the username, since my main planned purpose for an array of bridges is to have one per player sharing a system. It just seems more direct to have the side, since I don't have to search or identify, it is explicitly how the computer knows the device.

Tbh, it's just kindof a thing of mine in general, I feel all peripherals should, in all cases, include the side as an argument for any events they queue to the computer.

At some point I'll be poking immibis over in his thread about the same thing. Particularly with the new lan cables, it makes sense for one computer to handle multiple swipers around a base over lan, which is currently impossible.

#171 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 11:00 AM

computer.queueEvent("chat_command", new Object[] { command, username, getGuid(), computer.getAttachmentName() });

0.1.8

#172 GopherAtl

  • Members
  • 888 posts

Posted 13 June 2013 - 11:04 AM

was pretty sure it was trivial. Thanks ^_^

#173 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 11:07 AM

View PostGopherAtl, on 13 June 2013 - 11:04 AM, said:

was pretty sure it was trivial. Thanks ^_^/>

What! That's some complicated code right there!

#174 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 11:18 AM

Forgot to add getUsers() and resetGuid() in the definition file.

If you delete /config/OpenPeripheral_methods.json you should now be able to use those two methods on the glasses bridge.

#175 Meeschter

  • Members
  • 5 posts

Posted 13 June 2013 - 06:04 PM

when I use a stargate as a peripheral, i can't connect() or disconnect(), it gives me

lua:52: sun.org.mozilla.javascript.EcmaError:ReferenceError: "ReflectionWrapper" is not defined.

when I try to remove the modem from the Stargate, I get a crash

Crashlog: http://pastebin.com/gZ5ae7Z1

the crash happens in general if I try to remove a modem from a block it usually wouldn't connect to

in a testworld with only CC, openperipherals ans SGcraft there is no problem, everything works
it also works when I add immibis microblocks

when I add Galacticraft-1.5.2-a0.1.35.294, the Error reappears

#176 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 13 June 2013 - 06:30 PM

View PostMeeschter, on 13 June 2013 - 06:04 PM, said:

when I use a stargate as a peripheral, i can't connect() or disconnect(), it gives me

lua:52: sun.org.mozilla.javascript.EcmaError:ReferenceError: "ReflectionWrapper" is not defined.

when I try to remove the modem from the Stargate, I get a crash

Crashlog: http://pastebin.com/gZ5ae7Z1

the crash happens in general if I try to remove a modem from a block it usually wouldn't connect to

in a testworld with only CC, openperipherals ans SGcraft there is no problem, everything works
it also works when I add immibis microblocks

when I add Galacticraft-1.5.2-a0.1.35.294, the Error reappears

Are you upgraded to 0.1.7?
The crash log you posted has nothing to do with OpenPeripheral at all, that looks purely like an immibis microblocks issue. However, a "ReflectionWrapper" exception makes me think you're not on the latest OpenPeripheral

#177 Meeschter

  • Members
  • 5 posts

Posted 13 June 2013 - 07:38 PM

i'm on 0.1.7, and the exception only occurs when Galacticraft is installed, I just wanted to let you know that there might be an issue. After I removed Galacticraft, connect() works just fine

#178 Meni

  • Members
  • 59 posts

Posted 13 June 2013 - 08:12 PM

Hey @Mikemoo
I`m felling miss of a setAlpha() and getAlpha() for the text object
:) What you think about?

#179 CoderPuppy

  • Members
  • 121 posts

Posted 13 June 2013 - 08:38 PM

There seems to be a bug with MPS.

The errors started when I opened the customizer on the Power Fist and stopped when I removed the glasses from my helmet..

Crash Report:
http://pastebin.com/8wfW31sX

EDIT: This started occurring without the glasses.

#180 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 14 June 2013 - 12:42 AM

In the "Older versions" spoiler, you should add what version of CC/Minecraft they are.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users