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

Getting bios:267: attempt to write to global

Started by CaughtException, 19 October 2014 - 04:56 PM
CaughtException #1
Posted 19 October 2014 - 06:56 PM
Hi! I'm currently making an OS, and recently I have made a multiuser system, but me being me, I stupidly didn't test it until now. I, of course, expect it to run and ask me to create a new user, and then take me to the login screen, but instead gives me an error. I know this can be because you have to put "local" (without double quotes) before a variable and if you try to add something to the API, it'll error. I am using tekkit classic (so CraftOS 1.3). Here is the code: http://pastebin.com/GLE9aYKd. I am sorry for any messy code, but I appreciate any help given. ~CaughtException
Lyqyd #2
Posted 19 October 2014 - 07:31 PM
What's the error message it's giving you?
CaughtException #3
Posted 19 October 2014 - 08:22 PM
This is all I get: "bios:267: attempt to write to global"
Bomb Bloke #4
Posted 20 October 2014 - 01:07 AM
I'd start out by pinpointing the line in your code which leads to that error. Because the error itself doesn't seem to be occurring within your script, you need to determine what part of your script is triggering it.

If you put more print statements temporarily all-throughout, you should be able to use them to narrow it down.