This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Salival's profile picture

Odd error messages and getting code from in-game on a server to cc forum

Started by Salival, 18 December 2014 - 04:48 PM
Salival #1
Posted 18 December 2014 - 05:48 PM
I've been getting some very strange errors lately, and its been eating up my time trying to figure them out. I am on a minecraft modded server and since a few hours ago i've been getting the number 165 or 166 printed whenever the program doesnt work for any reason. I'd like to post the code that this is related to but i made it in-game, and am not sure how to retrieve it without typing it line for line. Also, this 165-166 error seems universal to all programs that have any kind of error. Thank you, and i hope you guys can figure this out (obviously first i need to know how i can get this code to the site)
Edited on 18 December 2014 - 04:58 PM
KingofGamesYami #2
Posted 18 December 2014 - 06:31 PM
You can post code in two ways, with code brackets (
)


--#like this
or post a pastebin link. In game, you can upload a script to pastebin by using

pastebin put <program_name>

The full error is necessary for us to help, but since it is referring to a line you don't have, it's probably a syntax error.
Exerro #3
Posted 18 December 2014 - 09:19 PM
Is it literally just a number? If so, I've had this before when there is a stack overflow. Try looking for a recursive function call (a function that calls itself).
Other than that, we need the whole error message to help.
Bomb Bloke #4
Posted 18 December 2014 - 09:38 PM
There's no point in asking for a full error message when he's already stated that there isn't one to give.

My bet is the reason there's "just a number" has something to do with CC 1.6 making use of the window API on all advanced systems. If the code runs on a regular black &amp; white computer (eg it doesn't try to write using other colours), try running it on one of those and see what happens.