Jump to content




[mc 1.6.x] Openperipheral


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

#781 Iomega0318

  • Members
  • 6 posts

Posted 20 October 2013 - 02:13 PM

@theoriginalbit
Ah ok that's kinda what I thought, too bad.. I really want to set something like that up lol..

#782 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 October 2013 - 02:38 PM

View PostIomega0318, on 20 October 2013 - 02:13 PM, said:

@theoriginalbit
Ah ok that's kinda what I thought, too bad.. I really want to set something like that up lol..
It's still possible to do, its just, well, a "dumber" system, 'cause it'd have to keep track of what slots are for what, and you'd basically have to add the names manually. But it is still possible. Basically, what direwolf20 did before he asked Mikee for info from the Linking Book.

#783 Iomega0318

  • Members
  • 6 posts

Posted 20 October 2013 - 03:02 PM

View Posttheoriginalbit, on 20 October 2013 - 02:38 PM, said:

View PostIomega0318, on 20 October 2013 - 02:13 PM, said:

@theoriginalbit
Ah ok that's kinda what I thought, too bad.. I really want to set something like that up lol..
It's still possible to do, its just, well, a "dumber" system, 'cause it'd have to keep track of what slots are for what, and you'd basically have to add the names manually. But it is still possible. Basically, what direwolf20 did before he asked Mikee for info from the Linking Book.
I think he did the "dumber" version in FC1 which he talks about upgrading it, so I might see if I can find a video on his FC1 version and just use that one for now. The upgrade will be nice when it's released though :)

#784 adencraft2000

  • Members
  • 43 posts

Posted 20 October 2013 - 04:36 PM

Any chance of some "Example" scripts? (For the terminal glasses)

#785 Deli_SK

  • New Members
  • 1 posts

Posted 20 October 2013 - 05:03 PM

Where can I find the most updated download? I don't want to compile it myself from git and on wiki, there is the same download for newarly 2 months now. Can you please provide me the newest download?
Thank you...

#786 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 October 2013 - 05:22 PM

View Postadencraft2000, on 20 October 2013 - 04:36 PM, said:

Any chance of some "Example" scripts? (For the terminal glasses)
There is a few around on these forums, there's lots of people asking questions in the Ask a Pro about it, you can also get information there. Lastly there is also a script called Twitter on the computers when an OpenPeripheral compatible block is attached, which you can open and read for examples.

View PostDeli_SK, on 20 October 2013 - 05:03 PM, said:

Where can I find the most updated download? I don't want to compile it myself from git and on wiki, there is the same download for newarly 2 months now. Can you please provide me the newest download?
Thank you...
Here is a link to the place you can find the latest builds for Minecraft 1.6.4 from GitHub, however be warned, these are development builds, what is in it for these versions may not be in future versions, also there are changes/tweaks that need to be made sometimes, so nothing is final. Lastly bugs can happen, if they do, please verify that it is a bug and not a user error and submit it as an issue on the GitHub repo's issue tracker so that we can see it in a timely matter and attempt to address the problem before official release.

#787 ATMunn

  • Members
  • 62 posts
  • LocationSomewhere on this earth.

Posted 20 October 2013 - 05:23 PM

Umm... I'm messing around with OpenPeripheral, in particular the Terminal Glasses, and it looks REALLY cool, but where is a list of the hexidecimal values for the colors? I can't figure it out on my own...

#788 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 October 2013 - 05:50 PM

View PostATMunn, on 20 October 2013 - 05:23 PM, said:

Umm... I'm messing around with OpenPeripheral, in particular the Terminal Glasses, and it looks REALLY cool, but where is a list of the hexidecimal values for the colors? I can't figure it out on my own...
There is no "list" the hexadecimal colours can represent any colour, we don't limit you in this way. A hexadecimal colour is the following format
0xRRGGBB
Where:
R = Red
G = Green
B = Blue

and each set of two is a number between 00 and FF (0-255 in decimal).

I've found this website a good resource when I don't know what colour to use, or can't be bothered working out a nice code. I've also gone ahead and also made an API that adds a bunch of colours from the around the interwebs, since most of the code's that I found were in RGB and the terminal glasses uses hex, I also wrote a function to convert from RGB to Hex, which you may find useful if you can understand RGB colours better (even though the hex colours are essentially RGB)

#789 ATMunn

  • Members
  • 62 posts
  • LocationSomewhere on this earth.

Posted 21 October 2013 - 11:32 AM

Thank's! This helped.

Ok, yeah. That's a really usefull website.

Ok... Now how do I detect commands with the terminal glasses bridge?

Nevermind, I figured it out :D

It's
os.pullEvent("chat_command")


#790 bfox

  • Members
  • 4 posts

Posted 21 October 2013 - 06:29 PM

https://www.youtube....h?v=Gj8tnsRbWh0

Thought Id share a nice video of something I made involving a turtle and the Energy Manipulator mod using OpenPeripherals

#791 Aixler

  • Members
  • 4 posts

Posted 25 October 2013 - 01:35 PM

In minecraft 1.6.4, with a computer next to an iron tank valve from railcraft, you only have access to getTankInfo(), not getTanks().
getTankInfo() gives me 2 lines of [email protected] Is there anything i can do with that? Or did i do something wrong?

#792 blockly

  • Members
  • 41 posts
  • LocationSan Francisco, California, USA

Posted 25 October 2013 - 03:49 PM

I notice there isn't an eclipse folder high up in the openperipheral source tree, only under build/forge/mcp and build/forge/fml, and those obviously don't include the openperipheral code. Is there a recommended eclipse configuration? So far, I've been using a project I created in my workspace, which has worked fine for programming (although I've been building with ant at the shell), but I don't know how to make it so I can launch minecraft within Eclipse so I can use the debugger. (That's my real goal.)

#793 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 25 October 2013 - 05:52 PM

View PostAixler, on 25 October 2013 - 01:35 PM, said:

In minecraft 1.6.4, with a computer next to an iron tank valve from railcraft, you only have access to getTankInfo(), not getTanks().
getTankInfo() gives me 2 lines of [email protected] Is there anything i can do with that? Or did i do something wrong?
*sigh* versions?!

View Postblockly, on 25 October 2013 - 03:49 PM, said:

-dev env question-
Obviously the eclipse setup isn't enforced on you, and I know that I definitely wouldn't want it to be! Also I don't think everyone uses Eclipse so really an IDEs files should never be synced into a projects repo.
This is the development environment I use (with a few minor tweaks) Let's Mod with Pahimar! Episode 6: Dev Environment 3.0. It works very well for modding, its initially annoying to get the Minecraft project setup, but once its done once, its done for all, so its nice. Then once you've got that you'll need to install CodeChickenCore into the eclipse/mcp/jars/mods/ folder (in environment) this will go and download CodeChickenLib which allows obf'd mods to run in a deobf'd environment, which is very handy! means you can test almost any mod with your own without having to decompile them!
Oh also make sure that when you're adding the assets, make a new source folder called something like "resources" and then drag/drop the assets folder into this, if you just drag/drop into the main project the package structure fails and Minecraft won't load any of the OpenP resources.

#794 mzx987

  • Members
  • 14 posts

Posted 27 October 2013 - 06:54 PM

Not sure if this was discussed, or if I am crazy, but how exactly do the sensors work within OpenPeripheral?

EDIT: To make myself more clear, in OpenCCSensors, you were able to place the sensor cards within the sensor block itself. Are you still able to do that within OpenPeripheral, or is there other methods?

#795 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 October 2013 - 09:16 PM

View Postmzx987, on 27 October 2013 - 06:54 PM, said:

Not sure if this was discussed, or if I am crazy, but how exactly do the sensors work within OpenPeripheral?
EDIT: To make myself more clear, in OpenCCSensors, you were able to place the sensor cards within the sensor block itself. Are you still able to do that within OpenPeripheral, or is there other methods?
Not anymore, there are no need for sensor cards. In OpenCCSensors you were able to "scan" a large amount of blocks and inventories and such, however since OpenPeripheral also does this, these features were removed from the sensor and only Entity scanning has remained. So you can detect players, animals, mobs, and anything else that is an entity, but everything else can be done with a modem so there was no need to add these features into the sensor,

#796 blockly

  • Members
  • 41 posts
  • LocationSan Francisco, California, USA

Posted 28 October 2013 - 12:38 PM

View Posttheoriginalbit, on 25 October 2013 - 05:52 PM, said:

This is the development environment I use (with a few minor tweaks) Let's Mod with Pahimar! Episode 6: Dev Environment 3.0....

Thanks a lot. I set that up as shown in the video and can start up what Pahimar calls "No Mods - Client", but I can't start the modded client because I don't know where to put the ComputerCraft zip on which it depends. Your post mentions the "eclipse/mcp/jars/mods/ folder", but I don't see that anywhere. The only top-level folders in my Minecraft project are:
  • minecraft (linked to the de-compiled src code)
  • JRE System Library [JavaSE-1.7]
  • Referenced Libraries
  • jars (which contains libraries and versions, both of which are empty).
The top-level folders in my Mods project are:
  • src (linked to the top-level src directory of the openperipheral repository)
  • resources (a new folder, per your recommendation, with a link to the assets)
  • JRE System Library [JavaSE-1.7]
Thanks.

#797 MazeusXenon

  • Members
  • 12 posts

Posted 28 October 2013 - 02:59 PM

View Posttheoriginalbit, on 25 October 2013 - 05:52 PM, said:

View PostAixler, on 25 October 2013 - 01:35 PM, said:

In minecraft 1.6.4, with a computer next to an iron tank valve from railcraft, you only have access to getTankInfo(), not getTanks().
getTankInfo() gives me 2 lines of [email protected] Is there anything i can do with that? Or did i do something wrong?
*sigh* versions?!

This is happening to me as well and I am using the most current OpenPeripherals (0.2.0-Beta) on MC 1.6.4. I also get with with OpenBlocks (1.2.0) and their tanks, and I really want to setup something that will display the amount of liquid in the tank, not a strange hex code of data that, while pretty, doesn't help...

#798 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 28 October 2013 - 03:59 PM

Unfortunately an OpenBlocks' tank is one block, so it's volume will be out of 16,000mB. It wont give you the entire content of all the neighbouring tanks.

#799 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 28 October 2013 - 11:17 PM

View Postblockly, on 28 October 2013 - 12:38 PM, said:

-snip-
Sorry I did say eclipse didn't I, I meant to say forge/mcp/jars/mods just like he says to in the video. Make sure you install CodeChickenCore too!

View PostMazeusXenon, on 28 October 2013 - 02:59 PM, said:

This is happening to me as well and I am using the most current OpenPeripherals (0.2.0-Beta) on MC 1.6.4. I also get with with OpenBlocks (1.2.0) and their tanks, and I really want to setup something that will display the amount of liquid in the tank, not a strange hex code of data that, while pretty, doesn't help...
*sigh* update to the latest OpenPeripheral instead of v0.2.0-Beta and confirm the problem still exists there. If you can confirm that it still exists and/or you do not wish to update, please provide screenshots of the problem as well as any appropriate code, and anything else you think could help us replicate the problem to investigate it further.

#800 blockly

  • Members
  • 41 posts
  • LocationSan Francisco, California, USA

Posted 29 October 2013 - 02:37 AM

View Posttheoriginalbit, on 28 October 2013 - 11:17 PM, said:

Sorry I did say eclipse didn't I, I meant to say forge/mcp/jars/mods just like he says to in the video. Make sure you install CodeChickenCore too!

Done and done. Thanks!





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users