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

Is there a way to have a custom config value for all of CC?

Started by distantcam, 11 October 2013 - 12:04 PM
distantcam #1
Posted 11 October 2013 - 02:04 PM
Similar to the enableAPI_http setting for example, I was hoping to store a value for all computers/turtles. Is this possible and if so how?

Thanks!
Grim Reaper #2
Posted 11 October 2013 - 06:57 PM
Unless you write all of your files directly to the ROM folder from outside the game, I don't think that this is possible if I've understood your question correctly, sorry.
distantcam #3
Posted 11 October 2013 - 10:50 PM
Well, I was hoping to use an OAuth2 system, which requires storing a long hash as the authentication token.

So the user would allow the app access, receive the hash token, put that in the config file and then in ComputerCraft my app could read that token.

I wouldn't need full access to a config file, just read access to a single value.


EDIT: Wait, I just realized I can't modify headers in the http get call. Serves me right for trying to deal with an unfamiliar API at 3am.