Jump to content




addIcon question


  • You cannot reply to this topic
8 replies to this topic

#1 Neywiny

  • Members
  • 36 posts
  • LocationUSA, east coast

Posted 03 April 2014 - 09:54 PM

so sine this is the closest thread to my problem, and they overlap, I thought why not here. Anyways; I'm trying to make a program that when I chat in something like "$$Main_Base_Power", it will draw an icon and do other irrelevant things, but I can't seem to get this drawIcon thing to work. first, I tried just wrapping it and using drawIcon, but that didn't work, so I typed in the public ILuaObject, and when I ran it it said that on the first line of that block of code there is a missing '='. exact message is as follows: "bios:339: [string "b"]:2: '=' expected. I tried to draw a box to check if it was wrapped right, and that worked, but drawIcon doesn't.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 04 April 2014 - 01:22 AM

Split into new topic.

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 04 April 2014 - 06:09 AM

please post your code and we will asset further, please also post the full error message when you're trying to add an icon.

typing the 'public ILuaObject' definitely won't do anything as this is Java code, not Lua code.

#4 Neywiny

  • Members
  • 36 posts
  • LocationUSA, east coast

Posted 04 April 2014 - 05:42 PM

bridge = peripheral.wrap("right")
bridge.addIcon(0, 0, 1, 0)
I used the value 1 b/c I thought that maybe it didn't work with resonant energy cells, of which gave me an id of 2004 with a meta of 4. error code is as follows:
t:2: attempt to call nil
I named the program t for test, just incase you were wondering.

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 04 April 2014 - 10:51 PM

And OpenPeripheral-Addon version?

 Neywiny, on 04 April 2014 - 05:42 PM, said:

I named the program t for test, just incase you were wondering.
that's okay, figured that from the error message ;)

#6 Neywiny

  • Members
  • 36 posts
  • LocationUSA, east coast

Posted 04 April 2014 - 11:55 PM

OpenPeripheral-0.2.1-preview8

#7 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 05 April 2014 - 12:05 AM

 Neywiny, on 04 April 2014 - 11:55 PM, said:

OpenPeripheral-0.2.1-preview8
ah, there's your problem. addIcon is only available in the newsier versions of OpenPeripheral... basically from about 112 or so builds after the version you're running.

#8 Neywiny

  • Members
  • 36 posts
  • LocationUSA, east coast

Posted 05 April 2014 - 12:16 AM

oh my god that fixed it. I will now make a new thread due to certain people (everyone) not liking how I always tangent on forums. I'd prefer if you looked at it, no Idea what to name it, but it will be very help needed and I understand this is the place to get it. Essentially I need a complicated code and have 1% of the knowledge necessary for it.

#9 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 05 April 2014 - 12:25 AM

 Neywiny, on 05 April 2014 - 12:16 AM, said:

I will now make a new thread
if it is anything to do with this same program/problem then do no create a new thread. you should try to keep everything related in the same thread.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users