Jump to content




[mc 1.6.x] Openperipheral


1184 replies to this topic

#101 Xiretza

  • Members
  • 24 posts
  • LocationSomewhere behind the moon

Posted 07 June 2013 - 01:15 PM

I know this was mentioned before, but there was no real answer: Does anybody know what actually a "tank" object contains (Like if you do a "peripheral.wrap()" on a buildcraft tank)? I know there is "capacity", and "pressure". But what else? Is there something like a index? I could brute-force it, but that would take some time.

EDIT: Ok, got it. Get any tank, then
for index,value in pairs(tank) do
  print(index)
end
and watch :D And I thought I weren't a Lua noob.

#102 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 07 June 2013 - 04:01 PM

View PostXiretza, on 07 June 2013 - 01:15 PM, said:

I know this was mentioned before, but there was no real answer: Does anybody know what actually a "tank" object contains (Like if you do a "peripheral.wrap()" on a buildcraft tank)? I know there is "capacity", and "pressure". But what else? Is there something like a index? I could brute-force it, but that would take some time.

EDIT: Ok, got it. Get any tank, then
for index,value in pairs(tank) do
  print(index)
end
and watch :D And I thought I weren't a Lua noob.

print(textutils.serialize(mydata))

This is the most important code you ever need to know ;)

#103 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 07 June 2013 - 04:12 PM

It looks like I should work on a "peripheralview".

#104 Xiretza

  • Members
  • 24 posts
  • LocationSomewhere behind the moon

Posted 07 June 2013 - 04:13 PM

View PostMikeemoo, on 07 June 2013 - 04:01 PM, said:

print(textutils.serialize(mydata))

This is the most important code you ever need to know ;)
:)

#105 Creeper367

  • Members
  • 62 posts

Posted 07 June 2013 - 04:43 PM

Can we have support for SG Craft:http://www.minecraft...hp?topic=5594.0
Due to the fact that stargates have advanced addresses and a dialing interaction with a computer would be incredibly easier. Also it would be functional to be able to get a stargate's address. Just a suggestion
~Creeper367

#106 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 07 June 2013 - 05:44 PM

View PostCreeper367, on 07 June 2013 - 04:43 PM, said:

Can we have support for SG Craft:http://www.minecraft...hp?topic=5594.0
Due to the fact that stargates have advanced addresses and a dialing interaction with a computer would be incredibly easier. Also it would be functional to be able to get a stargate's address. Just a suggestion
~Creeper367

I'll take a look into it after the weekend

#107 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 07 June 2013 - 05:46 PM

Posted Image

This has been requested a lot. Work in progress! Will probably finish it after the weekend as I'm away most of the weekend.

#108 basdxz

  • Members
  • 116 posts

Posted 07 June 2013 - 06:25 PM

I am exited about the addon to power armor and the StarGate. Please do add support for them.

#109 Cruor

  • Members
  • 413 posts
  • LocationNorway

Posted 07 June 2013 - 07:02 PM



My twitter overlay thingy thingy :P
OpenPeripherals FTW

#110 Creeper367

  • Members
  • 62 posts

Posted 07 June 2013 - 08:54 PM

View PostMikeemoo, on 07 June 2013 - 05:44 PM, said:

View PostCreeper367, on 07 June 2013 - 04:43 PM, said:

Can we have support for SG Craft:http://www.minecraft...hp?topic=5594.0
Due to the fact that stargates have advanced addresses and a dialing interaction with a computer would be incredibly easier. Also it would be functional to be able to get a stargate's address. Just a suggestion
~Creeper367

I'll take a look into it after the weekend

Thanks!

#111 random_lulz

  • Members
  • 6 posts

Posted 08 June 2013 - 01:39 AM

Would it be possible to add a version of the Glasses that would be able to read player information also?
Spoiler


#112 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 08 June 2013 - 01:48 AM

You put an awful lot of work into listing out those specific calls. I'd bet if Mikee did add the ability to get player information, it'd be with a method like getPlayerInfo(), and it would return a table very much like the detailed information table you'd get from a proximity sensor. That is, if a bridge is limited to a single pair of glasses being bound to it. If multiple players could wear glasses tied to a single bridge, it won't work at all.

#113 Nietsnie

  • Members
  • 14 posts

Posted 08 June 2013 - 04:23 AM

I messed around with this addon last night. It's wicked cool! :)



#114 JustPingo

  • Members
  • 108 posts
  • LocationFrance

Posted 08 June 2013 - 04:24 AM

View PostLyqyd, on 08 June 2013 - 01:48 AM, said:

If multiple players could wear glasses tied to a single bridge, it won't work at all.

returned = { ["Lyqyd"] = { ["health"] = 6, ["hunger"] = 7 }, ["pingoleon60"] = { ["health"] = 8, ["hunger"] = 5 } }
print(returned["Lyqyd"]["health"])
print(returned["pingoleon60"]["hunger"])

Or something like this.

#115 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 08 June 2013 - 04:45 AM

I will not be giving out player data. Use openccsensors for that

#116 JustPingo

  • Members
  • 108 posts
  • LocationFrance

Posted 08 June 2013 - 04:49 AM

Ok, but if we want to go where there's not sensors, it will be great to do something like couple glasses and sensor ?

Anyway, it's your choice.

#117 Jappards

  • Validating
  • 116 posts
  • LocationHolland

Posted 08 June 2013 - 10:24 AM

Spoiler

nice! i was about to request that module, you currently have support to about 40 mods, making it an peripheral nice to have when you have CC installed, i didn`t want to use the terminal glasses because of this, but i can with this, but i don`t really know what to do with it.

#118 rawritsdan

  • Members
  • 26 posts

Posted 08 June 2013 - 02:00 PM

This... This... It adds things that I have only dreamed about! I too wish it was for FTB, Imagine the uses for them glasses.
I wonder if I could use this to have a gps map of turtles, We will have to see.
Again this is AWESOME.

#119 GopherAtl

  • Members
  • 888 posts

Posted 08 June 2013 - 02:21 PM

Been using the terminal glasses, quite slick! Couple of requests:

Any way there could be some sort of ids that allow you to distinguish between multiple pairs of glasses attached to one bridge, which is an argument in $$ chat_command events?

Failing that, or in addition actually, including the side of the computer the bridge peripheral is attached on in the chat_command events would be nice.

#120 McAroon

  • New Members
  • 2 posts

Posted 08 June 2013 - 06:42 PM

Hi,your mod is awesome, just found a little issue with TE tesseract peripheral:
After using setFrequency method on any type of tesseract it doesn't receive stuff (items/liquids/energy) while being in default Send/Receive mode, however sends everything just fine.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users