Jump to content




[mc 1.6.x] Openperipheral


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

#741 blockly

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

Posted 10 October 2013 - 11:02 PM

I'm unable to do a build of a fresh download of Open Peripheral 0.2.1-preview8 on OS X. Specifically, I get compile errors about inability to find openperipheral.core.integration.ModuleForestry. I got the same result before and after updating the Java compiler from 1.6.x to 1.7.0_40. UPDATE: Modifying build.xml to download the latest version of Forge for MC 1.6.2 (9.10.1.871) led to even more compiler errors (34) than the earlier version above (2 errors). They also involved ModuleForestry.

Edited by blockly, 10 October 2013 - 11:23 PM.


#742 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 October 2013 - 12:32 AM

View PostMrJeff, on 10 October 2013 - 10:51 PM, said:

Somewhat, right? It would take looking at the code and seeing what data you could pull from it? It would be cool if it could happen however. I'd love to be able to set up a train-routing turtle that can make a replacement ticket based on the current destination of the train.

Now if I can figure out how to get a printed ticket out of the machine and stuff it into the train directly. :)
No what I mean is the Ticket Machine in OpenPeripheral is controlled by the RailCraft developers, so what its able to do is up to them, and I'd assume it'd be the same for anything else in the RailCraft mod.


View Postblockly, on 10 October 2013 - 11:02 PM, said:

I'm unable to do a build of a fresh download of Open Peripheral 0.2.1-preview8 on OS X. Specifically, I get compile errors about inability to find openperipheral.core.integration.ModuleForestry. I got the same result before and after updating the Java compiler from 1.6.x to 1.7.0_40. UPDATE: Modifying build.xml to download the latest version of Forge for MC 1.6.2 (9.10.1.871) led to even more compiler errors (34) than the earlier version above (2 errors). They also involved ModuleForestry.
Why are you trying to make a fresh build of it o.O Here is a download link. Also what exactly are you trying to do? That compile error of not finding Forestry makes it seem like you're using an older version, it should be using a different class i believe.

#743 hilerjm

  • New Members
  • 1 posts

Posted 11 October 2013 - 12:49 AM

Hey guys Im trying to make a system that can control like EVERYthing in my base and I was trying to use the setColor function to change Glowstone Illuminators, and it will work when the computer is next to the block, but I cannot figure out how to send the command through the wired modems/cables I have set up and working with other things.

I have tried this so far:

net=peripheral.wrap("back")

methods=net.callRemote("glowstone_illuminator_0","listMethods")
print(methods)
net.callRemote("glowstone_illuminator_0","setColor","0xFF0000")

This last line of code I do not know if it is right or even if it is the right way to go around doing this. It returns an "argument type mismatch" error, so please correct my error if you can. I really hope this can be done. Any help I can get would be fantastic.

(p.s:Yes the modems are turned on)

Edit: Nevermind guys, i spent the past 2 hours or so reading through the rest of the thread, where i found this:

View Postthestarlion, on 18 June 2013 - 08:17 AM, said:

I'm having a bit of a problem with peripherals on a networking cable, and specifically an SGCraft Stargate.
I think I've connected the modem to the right block - the Stargate Base block and not the DHD block - and I think I've wrapped it correctly. The code I'm using in the script goes like this:
local modem = peripheral.wrap("top")
local stargate = peripheral.wrap("stargate_base_2")
Which if I've understood lua, CC and such thus far, should give me access to the functions for the Stargate.
From there, attempting to run the command stargate.getHomeAddress() in a subsequent script returns absolutely nothing, where if I understand OpenPeripheral correctly it's supposed to return the connected Stargate's address, and when I try to make the Stargate dial another gate, I get this:
dial-out:3:
sun.org.mozilla.javascript.EvaluatorException: Can't find method openperipheral.common.util.ReflectionWrapper.call(boolean,string). (<Unknown source>#13 in <Unknown source> at line number 13

I thought MiscPeripherals might be the issue after seeing something similar a few posts up, but removing it hasn't made any difference.
What exactly am I doing wrong here?

And thanks to this I found my problem lol sorry for wasting your time guys :P

#744 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 October 2013 - 01:36 AM

View Posthilerjm, on 11 October 2013 - 12:49 AM, said:

-snip-
An actual answer however is
local illuminator = peripheral.wrap("glowstone_illuminator_0")
illuminator.setColor(0xFFFFFF)
or

peripheral.call("glowstone_illuminator_0", "setColor", 0xFFFFFF)
Here is an example program I made that fades all glowstone illuminators on a network from one colour to another.

#745 blockly

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

Posted 11 October 2013 - 11:40 AM

View Posttheoriginalbit, on 11 October 2013 - 12:32 AM, said:

Why are you trying to make a fresh build of it o.O Here is a download link. Also what exactly are you trying to do? That compile error of not finding Forestry makes it seem like you're using an older version, it should be using a different class i believe.

Thanks for the reply. I will eventually want to modify the source code, which is why I'm doing the build myself.

I should have said in the original post that I got the source code from github [https://github.com/M...penPeripheral]. The README file shown on that page says that it is buildable with "ant", but I got the errors described above.

Thanks for your help.

#746 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 October 2013 - 08:32 PM

View Postblockly, on 11 October 2013 - 11:40 AM, said:

I should have said in the original post that I got the source code from github [https://github.com/M...penPeripheral].
How'd you get the source from there?! Its here.

View Postblockly, on 11 October 2013 - 11:40 AM, said:

The README file shown on that page says that it is buildable with "ant", but I got the errors described above.
The buildfile will download forge and mcp and decompile Minecraft and everything for you. In order to change and test (run) your code all you need to do is run the source in Eclipse (or your IDE of choice). You can also have other mods installed in mcp/jars/mods as long as you have chicken_bones core (which installs chicken_bones lib) you will be able to run obfuscated mods in the deobfuscated environment.

#747 blockly

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

Posted 11 October 2013 - 11:13 PM

View Posttheoriginalbit, on 11 October 2013 - 08:32 PM, said:

View Postblockly, on 11 October 2013 - 11:40 AM, said:

I should have said in the original post that I got the source code from github [https://github.com/M...penPeripheral].
How'd you get the source from there?! Its here.
Thanks so much! I'll try there. (The wiki added a bracket, in case that wasn't clear. It was a good link to a bad repo.)

View Posttheoriginalbit, on 11 October 2013 - 08:32 PM, said:

View Postblockly, on 11 October 2013 - 11:40 AM, said:

The README file shown on that page says that it is buildable with "ant", but I got the errors described above.
The buildfile will download forge and mcp and decompile Minecraft and everything for you. In order to change and test (run) your code all you need to do is run the source in Eclipse (or your IDE of choice). You can also have other mods installed in mcp/jars/mods as long as you have chicken_bones core (which installs chicken_bones lib) you will be able to run obfuscated mods in the deobfuscated environment.

The build.xml file I downloaded also includes recompiling, which is where the process is failing. I'll see what happens with the newer repo.

UPDATE: It worked! Woo hoo! Next time I'll be more careful to use the official repo and not a fork. Thanks again!

#748 infinitehavoc

  • Members
  • 13 posts
  • LocationHis mothers basement... I meant the batcave

Posted 13 October 2013 - 08:57 AM

Please re-add compatibility with SGcraft. It is such an awesome mod, and this made it so much better.

#749 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 October 2013 - 09:16 AM

View Postkarelmikie3, on 06 October 2013 - 05:22 AM, said:

-snip-

View Postinfinitehavoc, on 13 October 2013 - 08:57 AM, said:

Please re-add compatibility with SGcraft. It is such an awesome mod, and this made it so much better.
Can't be done for now.

#750 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 13 October 2013 - 05:38 PM

I should really be following this topic, BIT you're doing a wonderful job of keeping up with issues and requests, need some assistance? :D
*Followed*

#751 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 October 2013 - 05:47 PM

View PostNeverCast, on 13 October 2013 - 05:38 PM, said:

I should really be following this topic, BIT you're doing a wonderful job of keeping up with issues and requests, need some assistance? :D
*Followed*
Sure why not, would be good to have someone else covering it, if only we were more staggered with our timezones :P

#752 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 13 October 2013 - 07:33 PM

View Posttheoriginalbit, on 13 October 2013 - 05:47 PM, said:

-snip-
Sure why not, would be good to have someone else covering it, if only we were more staggered with our timezones :P
Haha staggered enough that I can reply while you have dinner :P

#753 Kieran

  • Members
  • 4 posts

Posted 14 October 2013 - 04:40 PM

I had no luck using the Terminal Glasses Module in the 0.1.10 build, so I made an attempt at fixing it: Unofficial 0.1.12 download

This was tested with MPS 0.7.1 build 635.

Source on GitHub.

#754 infinitehavoc

  • Members
  • 13 posts
  • LocationHis mothers basement... I meant the batcave

Posted 14 October 2013 - 05:36 PM

View Posttheoriginalbit, on 13 October 2013 - 09:16 AM, said:

View Postkarelmikie3, on 06 October 2013 - 05:22 AM, said:

-snip-

View Postinfinitehavoc, on 13 October 2013 - 08:57 AM, said:

Please re-add compatibility with SGcraft. It is such an awesome mod, and this made it so much better.
Can't be done for now.

If openperipheral isn't 1.6.4 yet, why should it matter about sg craft not being 1.6.4 yet, and the crashes it causes?

#755 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 October 2013 - 05:54 PM

View Postinfinitehavoc, on 14 October 2013 - 05:36 PM, said:

If openperipheral isn't 1.6.4 yet, why should it matter about sg craft not being 1.6.4 yet, and the crashes it causes?
OpenPeripheral IS 1.6.4

#756 infinitehavoc

  • Members
  • 13 posts
  • LocationHis mothers basement... I meant the batcave

Posted 15 October 2013 - 05:00 AM

View Posttheoriginalbit, on 14 October 2013 - 05:54 PM, said:

View Postinfinitehavoc, on 14 October 2013 - 05:36 PM, said:

If openperipheral isn't 1.6.4 yet, why should it matter about sg craft not being 1.6.4 yet, and the crashes it causes?
OpenPeripheral IS 1.6.4

Ah, did not know that, as the site only lists it as 1.6.2, and the topic title was listing as 1.5.2

#757 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 15 October 2013 - 05:46 AM

Considering just throwing some wiki pages up for people to edit as they please.

#758 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 October 2013 - 06:00 AM

View PostMikeemoo, on 15 October 2013 - 05:46 AM, said:

Considering just throwing some wiki pages up for people to edit as they please.
Sounds good, means that the wiki can stay more up-to-date

#759 blockly

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

Posted 16 October 2013 - 06:22 PM

I'd like to attach a sensor to a ComputerCraft turtle so the turtle's behavior can depend on what it senses. A problem is that I can't physically place a sensor on a turtle. If I put the sensor next to the turtle, it will be left behind as soon as the turtle moves. Any suggestions?

#760 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 16 October 2013 - 06:35 PM

Try it in a crafting table, if that doesn't work then the version that you have does not support a sensor on a Turtle, meaning that you'll have to get the Turtle to pickup and move the sensor with it.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users