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

Only top field changing

Started by Djhiphop8, 25 October 2014 - 07:23 PM
Djhiphop8 #1
Posted 25 October 2014 - 09:23 PM
No matter what I type only the top option is changing, typing any of the bottom options doesn't change the mode.
Bomb Bloke #2
Posted 25 October 2014 - 11:42 PM
read() returns a string value, but the values in the ConPC table are all numbers. Because of this, input will never match ConPC, no matter what you type.

tonumber(read()) can be used to convert the returned data type.

If you have access to your world save (ie, it's stored on your computer, not some remote server you don't own), looking inside it will reveal a "computers" folder. You can access the files saved on your systems directly there. Makes for easier editing, not to mention copy/pasting.

If you don't have access to the world save directly, try the inbuilt pastebin script. Assuming the http API is enabled (and on most servers, you'd expect it to be), this will allow you to send scripts to or pull scripts from pastebin.com.
Djhiphop8 #3
Posted 26 October 2014 - 01:05 AM
But then why would only the first one work?
Bomb Bloke #4
Posted 26 October 2014 - 01:25 AM
I dunno, maybe if you revealed the rest of your code I could comment further.