Unfortunately when I went to display the current fuel rod insertion level, it threw the error "touchpoint:13: vm error: (next line) java.lang.NegativeArraySizeException"
Oddly enough I used the exact same code as I did on the statistics page, which worked fine, to create this "button" (the function is nil, it's basically just text. I haven't implemented the actual changing of the insertion level yet) that displays the current fuel rod insertion level except I have it under a different page.
Here is my code: http://pastebin.com/J6UUWKf4
Basically I wrote
stats:add(("Rod Insertion: "..tostring(reactor.getControlRodLevel(1)).."%"), nil, 1, 6, 22, 6, colors.black, colors.black)
(line 29)
for the statistics page (which worked fine, no errors) and I wrote
control:add(("Control Rod Insertion: "..tostring(reactor.getControlRodLevel(1)).."%"), nil, 1, 3, 20, 3, colors.black, colors.black)
for the control page, again keep in mind this is just to display the insertion level so the user can see what it is as they're adjusting the insertion level.For the touchpoint, you can simply look at Lyqyd's Touchpoint API found at http://www.computerc...touchpoint-api/ .
And again, the error is "touchpoint:13: vm error: (next line) java.lang.NegativeArraySizeException". If anyone has an explanation of why it is doing this and what I can do to fix my code, please let me know. I apologize if this post was poorly put together or against some rule or another, I just joined this community. Thank you for your help!