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

How do I edit each Computer on a Server? Server-Side

Started by Thoradal, 24 October 2012 - 01:32 PM
Thoradal #1
Posted 24 October 2012 - 03:32 PM
Hello, I really enjoy the ComputerCraft mod and have had to manually input code from various tutorials on Lua such as a Keycard programs. This has become a slight hassle to manually input long programs, and especially tedious with several Security Gates using the same Program. Since I am the Server Owner on the Tekkit Server I run, I was wondering how to edit programs per computer on the Notepad ++ end. I want to find the actual database of the Computer, then edit the programs on that one Computer block. Once I find the location, I can get the hang of it myself. Where would the database for each Computer be? I am not using MySQL or similar on that server. Thank you very much,
Thoradal. ^_^/>/>
remiX #2
Posted 24 October 2012 - 03:46 PM
In the world folder of your server folder, you will find numbers (starting at 0) which represent ID's of each computer. Insert programs into the corresponding ID you want to use for the computer.
GopherAtl #3
Posted 24 October 2012 - 03:46 PM
They're in the directory that contains the world save, by default "world," in a directory called "computers." It has a folder for each computer in the world, using the
id # of the computer as the directory name. It also has a "disks" directory, which contains similar directories for each floppy disk.

:edit: ninja'd, doh.
Thoradal #4
Posted 24 October 2012 - 03:47 PM
Ah, thank you very much. I'll check that.
I was looking in the completely wrong place, haha.
remiX #5
Posted 24 October 2012 - 03:50 PM
Well copy the code from that website, and paste it into a Notepad++ file and save it into ID 0 or whatever. Then, in game, go to computer with ID 0 (type id to check the id number) and type the program name.
Thoradal #6
Posted 24 October 2012 - 03:51 PM
Thank you, I have it now! Now the awesomeness can begin! Also this will help with videos, I really appreciate the help.
Thoradal #7
Posted 24 October 2012 - 03:55 PM
Would it be bad to delete computer files from deleted worlds? Or will ComputerCraft just keep adding the numbers normally, example if I deleted file 0 through 10, would it still create 11, 12, 13, 14 every time when a computer is placed? As it usually does.
Thoradal #8
Posted 24 October 2012 - 03:57 PM
It has worked, thank you so much! The code is in the Computer, now to see if it actually works.
remiX #9
Posted 24 October 2012 - 07:23 PM
If you have folders for ID 0 - 100 and you delete 0 - 50. and then place a BRAND new computer, it will become 0… etc until 50 then 101
ChunLing #10
Posted 25 October 2012 - 01:17 AM
I'm going to start needing to do that in my testbed world, I'm placing computers left and right and forward and back and up and down.
remiX #11
Posted 25 October 2012 - 04:47 PM
I'm going to start needing to do that in my testbed world, I'm placing computers left and right and forward and back and up and down.

Lmao same ^_^/>/> For my one server on my PC i had folders up to 2000 XD
Mehh_ #12
Posted 26 October 2012 - 01:19 AM
How do I do it if im on someone elses server? HALP! D:
KillaVanilla #13
Posted 26 October 2012 - 01:21 AM
How do I do it if im on someone elses server? HALP! D:

You can't.