15 posts
Posted 16 March 2012 - 08:08 PM
I'm not sure why this is occurring. Here is the line it occurs on:
print("\")
Here is the full code:
http://pastebin.com/3CESnrmKIt seems like you need to do something else to have a / in a print.
EDIT:
updated scripts:
SCARY:
http://pastebin.com/VBJPqPSkstatic:
http://pastebin.com/7q8btpZz
454 posts
Location
London
Posted 16 March 2012 - 08:25 PM
''s escape characters in strings; you'll have to use this:
print("")
The first escapes the second ,meaning that it won't escape the quotation mark).
15 posts
Posted 16 March 2012 - 08:32 PM
Now it says:
bios|278| bad argument| string expected, got function
454 posts
Location
London
Posted 16 March 2012 - 08:55 PM
That's (possibly) because of the first line; strings need to be in quotes.
os.loadAPI(static) -> os.loadAPI("static")
It could also be something inside that API that's causing the error.
15 posts
Posted 17 March 2012 - 12:29 AM
That helped, and after a lot of fiddling, it now starts to make the first frame and then says:
SCARY|19| attempt to call nil
that line says:
setCursorPos(middlex - holesize, middley + holesize - prog)
link to SCARY:
http://pastebin.com/VBJPqPSklink to static:
http://pastebin.com/7q8btpZz
454 posts
Location
London
Posted 17 March 2012 - 12:46 AM
You're looking for term.setCursorPos. Try to make sure you're using the right API when calling functions.