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

Editing on a server

Started by Carden, 05 May 2013 - 12:01 PM
Carden #1
Posted 05 May 2013 - 02:01 PM
I'm running Direwolf_20 FTB server on Windows 7. When I attempt to save using computercraft's built in editor I get access denied the issue is the same for existing files as well as attempting to create new files. This isn't a issue personally however if I open up the server other players will be unable to edit without some kind of FTP access. Are there any changes to the directory tree or to the permissions the server is started under that would allow the ingame editor to work?
theoriginalbit #2
Posted 05 May 2013 - 02:05 PM
you cannot edit anything in the directory '/rom/' only in the root or disks. make sure that, that's where you're editing the files.
Carden #3
Posted 05 May 2013 - 02:08 PM
Ah that explains part of the issue (maybe all of the issue) would the /ocs/programs/ also have this restriction?
theoriginalbit #4
Posted 05 May 2013 - 02:25 PM
yes it would indeed.

programs that install with CC are all read-only… you need to load the ocs APIs at the top of your code with os.loadAPI, and you can run the programs with shell.run… however you cannot edit them…