Jump to content




Mining software erroring out


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

#1 Tiberium_117

  • Members
  • 23 posts

Posted 30 October 2016 - 11:25 PM

Hello there, i am a basic coder trying big for my first Solo code, i am making this code able to operation a Frame Quarry from project red, (the replacement of red power) via a Project red Bundled Cable and wireless redstone Chicken bone editon.


All Crashing bugs and GPS problems fixed, now the code it complete with only one problem...

when i right click any of the buttons i made, it does not register that i clicked them, and does nothing....

The Code i am making is using Direwolf20's Button API...

if anyone can help, It would be really apprehiated and save what is left of my hair :P

Updated Code: http://pastebin.com/FhLhELH2

Button API: http://pastebin.com/z2GAGDBW

Edited by Tiberium_117, 01 November 2016 - 12:15 AM.


#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 30 October 2016 - 11:33 PM

function getClick()
  event,side,z,y = os.pullEvent("monitor_touch") --# issue is in this line, see if you can spot it ;)/>
  button.checkxy(x, y)
end

Hint: You're passing a nil argument to button.checkxy

#3 Tiberium_117

  • Members
  • 23 posts

Posted 30 October 2016 - 11:49 PM

View PostKingofGamesYami, on 30 October 2016 - 11:33 PM, said:

function getClick()
  event,side,z,y = os.pullEvent("monitor_touch") --# issue is in this line, see if you can spot it ;)/>/>
  button.checkxy(x, y)
end

Hint: You're passing a nil argument to button.checkxy

Thank you. It stopped Crashing, now just to figure out why it is not doing anything :P

#4 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 31 October 2016 - 12:18 AM

Not that this will fix everything, but I did notice that on line 15 of your first program you have
modem = peripheral.find("top")

That probably should be
modem = peripheral.wrap("top")


#5 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 31 October 2016 - 12:43 AM

... or:

modem = peripheral.find("modem")


#6 Tiberium_117

  • Members
  • 23 posts

Posted 31 October 2016 - 06:17 PM

View PostDog, on 31 October 2016 - 12:18 AM, said:

Not that this will fix everything, but I did notice that on line 15 of your first program you have
modem = peripheral.find("top")

That probably should be
modem = peripheral.wrap("top")

View PostBomb Bloke, on 31 October 2016 - 12:43 AM, said:

... or:

modem = peripheral.find("modem")

That didn't work, I am going to change the code to make it mandatory to have wireless modem on it since the if then statement didn't work....

#7 Tiberium_117

  • Members
  • 23 posts

Posted 31 October 2016 - 11:56 PM

I got new problem :( updated the Topic.

#8 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 01 November 2016 - 11:45 AM

Please don't wipe your initial posts; this makes the ensuing conversation harder to read. Just post new issues about your projects at the bottom of their threads, and let the discussion continue from there.

Anyway:

function getClick()
  event,side,z,y = os.pullEvent("monitorTouch")
  button.checkxy(x, y)
end

z?





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users