Jump to content




touchpoint error


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

#1 CCJJSax

  • Members
  • 262 posts

Posted 09 December 2013 - 06:35 PM

I'm hesitant to post this cause the code is rather long. But I have been trying to add buttons using Lyqyd's touchpoint API. When I push a button it bugs on line 104 of touchpoint.

My main program http://pastebin.com/jtavdHcW (see spoiler for where I think some key points of this is.)
Spoiler

Lyqyd's touchpoint API CC page http://www.computerc...touchpoint-api/
Direct link to pastebin link for Lyqyd's touchpoint http://pastebin.com/pFHeia96 ( I wanted to give proper credit )

Spoiler

itemList.lua (I wouldn't bother looking at the spoiler)

Spoiler

note that the program is largely unfinished and dirty right now. feedback is always appreciated however. I hope I covered all the bases.

Edited by CCJJSax, 09 December 2013 - 06:38 PM.


#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 09 December 2013 - 07:01 PM

I believe the problem is in line 236:
touch:toggleButton(p1)
The variable "p1" isn't actually in this scope. Touchpoint tries to toggle self.buttonList[nil], essentially.

#3 CCJJSax

  • Members
  • 262 posts

Posted 09 December 2013 - 07:18 PM

View PostKingdaro, on 09 December 2013 - 07:01 PM, said:

I believe the problem is in line 236:
touch:toggleButton(p1)
The variable "p1" isn't actually in this scope. Touchpoint tries to toggle self.buttonList[nil], essentially.

I don't know why I didn't see that before lol. thanks. You're right.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users