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

Open Files Outside of CC?

Started by Noodle, 11 September 2012 - 02:01 AM
Noodle #1
Posted 11 September 2012 - 04:01 AM
Title really sums it up..
I wanted to know if you could write to files outside of CC, like not on a ComputerCraft Computer.
GopherAtl #2
Posted 11 September 2012 - 04:10 AM
God, I hope not. That'd be a pretty major security hole.
lord_darkis #3
Posted 11 September 2012 - 04:13 AM
Yes, in your saves folder select the save you want (with the computer program you want in it) then open the computer folder then the folder of the ID of your computer (you can learn this by typing "id" into your computer) then opening the programs name with a text editor (Wordpad, Notepad++ or other) Hope this helps :D/>/>

NOTE: you DO NOT have to close minecraft to do this. you do have to reboot the computer for the changes to take place.
Blazednlovinit #4
Posted 11 September 2012 - 04:24 AM
@ lord_darkis thats editting a CC program outside of MC, he wants to save a file while in MC into a directory that isnt a computercraft computer directory
lord_darkis #5
Posted 11 September 2012 - 04:36 AM
@ lord_darkis thats editting a CC program outside of MC, he wants to save a file while in MC into a directory that isnt a computercraft computer directory

Ahhh, I see.

Title really sums it up..
I wanted to know if you could write to files outside of CC, like not on a ComputerCraft Computer.

So what do you mean by other files?
KaoS #6
Posted 11 September 2012 - 06:38 AM
anything I guess. I doubt such things would be permitted though or you could paste batch files in people's startup folders etc etc. It would be insane
Noodle #7
Posted 11 September 2012 - 09:54 PM
Yes, in your saves folder select the save you want (with the computer program you want in it) then open the computer folder then the folder of the ID of your computer (you can learn this by typing "id" into your computer) then opening the programs name with a text editor (Wordpad, Notepad++ or other) Hope this helps :)/>/>

NOTE: you DO NOT have to close minecraft to do this. you do have to reboot the computer for the changes to take place.
Thankyou for actually answering my question. I don't care about the files on my computer since I know for sure they can't be edited. I just wanted to know if there was anything else that exists that I could edit. (possibly config editing (even though its already made))
Cranium #8
Posted 11 September 2012 - 10:02 PM
The only thing I could think of, would be some sort of web-based editing. I have no idea how to do this, but it's a thought, at least.
KaoS #9
Posted 12 September 2012 - 07:33 AM
@Noodle I think we misunderstood you, the question is very ambiguous. Now that I know what you mean I would recommend that you get notepad++ and save a file as the .lua type, it then uses syntax highlighting and manipulation that is incredibly useful, you just have to rename the file when you are done or unclude .lua in the programming
Noodle #10
Posted 12 September 2012 - 09:39 PM
@Noodle I think we misunderstood you, the question is very ambiguous. Now that I know what you mean I would recommend that you get notepad++ and save a file as the .lua type, it then uses syntax highlighting and manipulation that is incredibly useful, you just have to rename the file when you are done or unclude .lua in the programming
What do you think I do?
Program in a computer inside a box (in mc)?
Grim Reaper #11
Posted 12 September 2012 - 11:26 PM
You can edit other files that exist within your computer folder in the save folder. These files can be of any format, but you cannot edit files outside of ROM or your computer folder.

To sum it up:
No, you cannot edit files outside of CC within a Computer in Minecraft.
KaoS #12
Posted 13 September 2012 - 06:45 AM
No, but if these permissions were enabled I think lots of people would. it would be an incredible hacking opportunity - able to paste files right into the server's computer
Noodle #13
Posted 14 September 2012 - 12:30 AM
No, but if these permissions were enabled I think lots of people would. it would be an incredible hacking opportunity - able to paste files right into the server's computer
Not only that.. You would be able to edit the ROM if you were allowed to..
Cranium #14
Posted 14 September 2012 - 12:32 AM
What you may be able to set up, is some sort of web based interface, using the HTTP API. THis would require that you have the web interface created and waiting for commands, but it is entirely possible, if a little annoying. If you create this, I would love to see it in action, because that would be really neat.
Noodle #15
Posted 14 September 2012 - 12:33 AM
What you may be able to set up, is some sort of web based interface, using the HTTP API. THis would require that you have the web interface created and waiting for commands, but it is entirely possible, if a little annoying. If you create this, I would love to see it in action, because that would be really neat.
Its simple!
Actual lua console works best with this type of stuff… I'm too lazy to create it though, I have a game to work on!