209 posts
Location
Denmark
Posted 11 January 2015 - 12:16 PM
hey again.. now that i finally finished my power program :D/>
thanks to a few helpfull people here, that also came with a few good ideas to my Frankenstein :D/> hehe
now i started working on my spawner program..
pastebinbut i get the error on the picture
463 posts
Location
Germany
Posted 11 January 2015 - 02:50 PM
what touch api do you use?
when does this error happen? (when you click the button / when the button is drawn)
209 posts
Location
Denmark
Posted 11 January 2015 - 03:19 PM
a custom API that works fine with my power program..
but the error happens when i press the button
28 posts
Location
Polen
Posted 11 January 2015 - 03:25 PM
Hmm, maybe a loop that takes too long to complete? AFAIK that is main cause of this problem, I'm probably mistaken trough.
463 posts
Location
Germany
Posted 11 January 2015 - 03:28 PM
Could you send the code of the custom API?
209 posts
Location
Denmark
Posted 11 January 2015 - 03:35 PM
957 posts
Location
Web Development
Posted 11 January 2015 - 04:51 PM
This uses Lyqyd's Touchpoint API (
Original Post)
Just for the record I suppose
Second, when I get this error in my programs, it is usually a stack overflow; a function has called itself over 256 times
(Might not be 256 tho :P/> )
Anyway, I downloaded it into a test world. It works fine (doesn't throw a java error)
but you forgot to turn the
modem on after you wrapped it. So it isn't actually sending any messages, but otherwise its working fine.
Perhaps you are on an older version of Computer Craft? What version was this on?
EDIT: silly me that isn't a thing
Edited on 11 January 2015 - 11:34 PM
209 posts
Location
Denmark
Posted 11 January 2015 - 05:31 PM
This uses Lyqyd's Touchpoint API (
Original Post)
Just for the record I suppose
Second, when I get this error in my programs, it is usually a stack overflow; a function has called itself over 256 times
(Might not be 256 tho :P/> )
Anyway, I downloaded it into a test world. It works fine (doesn't throw a java error) but you forgot to turn the
modem on after you wrapped it. So it isn't actually sending any messages, but otherwise its working fine.
Perhaps you are on an older version of Computer Craft? What version was this on?
its CC1.65
957 posts
Location
Web Development
Posted 11 January 2015 - 06:29 PM
its CC1.65
Really?
Ok, maybe its your java version? If you have the latest Java 7 update, you should be fine.
Personally, I'm on Java 8 but I believe 7 works
If THAT isn't it, then maybe its MC. Whats your Minecraft version? And is that a custom mod pack?
EDIT: You refered to the API as custom. Does that mean you modified it? I didn't use yours, I used the pastebin Lyqyd provided.
Edited on 11 January 2015 - 05:30 PM
209 posts
Location
Denmark
Posted 11 January 2015 - 06:45 PM
its CC1.65
Really?
Ok, maybe its your java version? If you have the latest Java 7 update, you should be fine.
Personally, I'm on Java 8 but I believe 7 works
If THAT isn't it, then maybe its MC. Whats your Minecraft version? And is that a custom mod pack?
EDIT: You refered to the API as custom. Does that mean you modified it? I didn't use yours, I used the pastebin Lyqyd provided.
Java: 7 build 71
MC 1.7.10 (direwolf20 pack - 1.0.3)
for the API, you should ask Dragon35353 as it was him who made customized it for me
1080 posts
Location
In the Matrix
Posted 11 January 2015 - 06:48 PM
I believe I actually figured out the problem. The edited API requires the button's functions to return the active name and inactive name because it renames, he wasn't doing so, and so it errored. I've updated it myself so that it validates that the buttons are returning values, and if so, then it renames.
957 posts
Location
Web Development
Posted 11 January 2015 - 09:35 PM
Try using Lyqyd's original code:
http://pastebin.com/pFHeia96If that doesn't work then I'm not sure :wacko:/>
1080 posts
Location
In the Matrix
Posted 11 January 2015 - 10:18 PM
Try using Lyqyd's original code:
http://pastebin.com/pFHeia96If that doesn't work then I'm not sure :wacko:/>
It works now, it was just a case of returned values expected, and thus it crashed when the returned values weren't given.
7083 posts
Location
Tasmania (AU)
Posted 11 January 2015 - 10:23 PM
It works fine (doesn't throw a java error) but you forgot to turn the modem on after you wrapped it. So it isn't actually sending any messages, but otherwise its working fine.
I'm not sure what you're meaning by this - you don't need to open any channels in order to transmit, if that's what you're thinking. The rednet API makes you do it if you want to transmit through that, but that's not in use here.
957 posts
Location
Web Development
Posted 12 January 2015 - 12:34 AM
It works now, it was just a case of returned values expected, and thus it crashed when the returned values weren't given.
Im glad we got it worked out :D/>
It works fine (doesn't throw a java error) but you forgot to turn the modem on after you wrapped it. So it isn't actually sending any messages, but otherwise its working fine.
I'm not sure what you're meaning by this - you don't need to open any channels in order to transmit, if that's what you're thinking. The rednet API makes you do it if you want to transmit through that, but that's not in use here.
I didn't know that was a thing. When you open at least one channel on a modem it turns the black ring on the physical modem red so I've always taken that to mean black = no sending/reciving and red = can send/recieve. Learn something new every day I guess