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

File System Of Computer In Ccdesk

Started by bentallea, 26 October 2013 - 08:05 PM
bentallea #1
Posted 26 October 2013 - 10:05 PM
There are a few ways to get the code from CCDesk:
  1. Pastebin,
  2. File Manager
First: pastebin:
SpoilerWhen creating the computer, make sure to have the HTTP API enabled. See Picture

if not set properly then restart CCDesk and mark that checkbox.
then for uploads: pastebin put <filename>
and do not forget the pastebinID given in the output of the program.

for downloads: pastebin get <pastebinid> <filename>
Second:
SpoilerThe file Locations are different depending on your operating system.
For Windows:
SpoilerFiles for specific computers: %appdata%\.ccdesk\computer\<computerID>
To modify the rom code:
Spoilerchange the extension of %appdata%\.ccdesk\bin\computercraft.jar to a .zip file
Open or extract the file and navigate to lua/rom
Recommended apps for windows are Explorer and 7zip
Make Changes only within this directory and subdirectories
Close, make an archive, and rename to a jar file
reload CCDesk
For Mac OS X:
SpoilerFiles for specific computers: /Users/<username>/.ccdesk/computer/<computerID>
To modify the rom code:
Spoilerchange the extension of /Users/<username>/.ccdesk/bin/computercraft.jar to a .zip file
Open the file and navigate to lua/rom
Make Changes only within this directory and subdirectories
Close, and rename to a jar file
reload CCDesk
For Linux:
SpoilerFiles for specific computers: /home/<username>/.ccdesk/computer/<computerID>
To modify the rom code:
SpoilerOpen /home/<username>/.ccdesk/bin/computercraft.jar with the Archive Manager
Navigate to lua/rom
Make Changes only within this directories and subdirectories
Close file
reload CCDesk
theoriginalbit #2
Posted 27 October 2013 - 01:55 AM
You're a Windows user aren't you? The path's for OSX and Linux are wrong.

OSX
~/Library/Application Support/ccdesk/

Linux
~/.ccdesk/
or
/home//.ccdesk/
varies between distros
AgentE382 #3
Posted 27 October 2013 - 07:03 AM
Um, I'll just point out that ~/.ccdesk and /home/<user>/.ccdesk are usually equivalent. In fact, the ~ means "The current user's home directory".
theoriginalbit #4
Posted 27 October 2013 - 07:14 AM
Um, I'll just point out that ~/.ccdesk and /home/<user>/.ccdesk are usually equivalent. In fact, the ~ means "The current user's home directory".
And now I would like to point out that ~ is a shell directive that is not default to Unix, meaning that while OSX and major distro's of Linux have it, not all distro's have the support, requiring them to use /home// instead, hence me including both.
AgentE382 #5
Posted 27 October 2013 - 08:58 PM
Very true. However, note that /home// isn't an absolute standard, either. User's home directories can be wherever you want to put them.

Nevertheless, I shouldn't assume that every Linux distro uses a Bourne-compatible shell by default.

However, because of the extreme configurability of GNU/Linux, someone who doesn't have a Bourne-compatible shell can install one alongside the one he already has with no issues whatsoever.