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

[Tekkit] The Plague Corporation

Started by Backplague, 17 June 2012 - 07:29 PM
Backplague #1
Posted 17 June 2012 - 09:29 PM
UPDATED: http://forums.technicpack.net/threads/the-plague-corporation-mod-edit-dis-shits-wikked-awesome-yo.12182/

Plague Corporation is a huge company, located in my local Tekkit server world, "World". The main purpose is to product a lot of different items and resources. It contains many many advanced machines which need constant supervising. That is where ComputerCraft comes in. Using one computer in the center of the base, you can control everything in there if you know the passwords. Here are a few images from inside of the base.

I will be only showing the CC part, not the whole system.

The Plague Corporation F*cking Huge Information Screen (is swearing allowed?)


This screen shows all information needed about the system. It has indicators for each machine, state will be "true" if the machine is on, "false" if the machine is off and "FAIL" if the state was failed to receive from the PCMF server. As you can see, power is generated with solar power, a lot of redstone engines and water mills. There are also indicators for light states. Using a light sensor from RP2, it can show whether it is dark or bright outside. Ingame clock is also shown. The computer below the screen is the computer used to control everything in the base. The button to the right is used to reset the computer behind the screen that is controlling the screen. MFSU power levels will be shown as soon as ccSensors is ported to bukkit.

The Server Room




This is the server room. In the first image, you can see the wireless transmitters that control the machines. The computer to the right is for getting the light states. In the second image, you can see the three main servers. The first from the left is the Plague Corporation Machine State server, AKA the PCMS server. It is used to get machine states, mostly for the information screen. The middle computer is the main machine server, Plague Corporation Main server, AKA PCM server. It handles the machines, nothing else. The third computer is the Plague Corporation Main File server, AKA PCMF is used to retrieve all passwords and software. The one receiver is used to know when the base main door is open. If the Tekkit server is reset or the PCM is rebooted, it can save and load the previous state of the machines to continue where they left off.

For some odd reason, i have not yet covered the whole base with construction foam, i will come around to that some day.

The Software
Using the Plague Corporation Machine System Installer disk, you can install the software used to control the machines to any computer. The software is stored in the PCMF and it can be retrieved using rednet. When you start the computer and login to the system, it will check which version of the software you have and compare that to the latest version, retrieved from the PCMF. If they are not a match, it will ask you if you want to update. If you do, it will update the software and reboot the computer for the changes to take effect. Editing the software is easy for me, since i am the server owner, i can access the computer files and edit them with Notepad++.

Security
All rednet messages are secured, so someone can not set up a computer to send fake messages to any of the servers or the main computer. There is also a new server (not shown in the image) that authenticates all computers trying to use the software. Only i can authenticate computers. The passwords are quite well secured, you can not access them with Lua commands unless you know what message to send which computer. The only way for someone to hack into the system would be to get to the main computer, open the different programs in the editor and see how they retrieve the passwords. I have not yet figured out a way how to block this, since crunching all the different programs into one single program would make a huge mess.

Thats about it, please give feedback if you do want to. I am very very proud of this system. There are many problems yet to be fixed but i am working on them all the time. I did this all in creative mode.
kazagistar #2
Posted 18 June 2012 - 06:23 PM
This is really frikkin cool. The only real way to do security is to not have a boot drive near the computer, and have a plugin or mod that prevents people from building in your stuff. But since computer IDs are guaranteed to be unique (as far as I know) you could just make it so there is only one computer that can send commands, and any others are just ignored, which seems like pretty good security.
Backplague #3
Posted 19 June 2012 - 12:36 AM
I now added the authentication server that will check if the computer that is trying to log in to the system is allowed. Works fine :(/>/>
Yurameki #4
Posted 28 June 2012 - 03:00 AM
What are those numbered blocks and those things that look like little satellite dishes? what mod is that??
deus101 #5
Posted 28 June 2012 - 09:13 AM
What are those numbered blocks and those things that look like little satellite dishes? what mod is that??
Chickenbones wireless redstone.
Yurameki #6
Posted 30 June 2012 - 03:44 AM
woah it got a facelift since I last saw it…damn thanks
Wolvan #7
Posted 01 July 2012 - 03:00 PM
Wow I love it! I would look to look at it in reality if you know what I mean
Teraminer #8
Posted 02 July 2012 - 08:49 PM
Freaking awesome and how much server cash do you make?
schrolock #9
Posted 03 July 2012 - 01:50 PM
IP?
tfoote #10
Posted 03 July 2012 - 04:09 PM
The only way for someone to hack into the system would be to get to the main computer, open the different programs in the editor and see how they retrieve the passwords. I have not yet figured out a way how to block this, since crunching all the different programs into one single program would make a huge mess.

Ah… Well you can block editing of a program through the edit [program] program… don't ask me how but some dude did it… here is his thread. HERE!
Deathknight0897 #11
Posted 05 July 2012 - 06:36 AM
Ok so i was talking to my mate the server host and apperently he bugged computercraft on are server its now fixed however i just found a really easy way to stop edit from working type the following

edit edit

os.shutdown()

or if u dont want it to kill everything

os.reboot()

That will 100% lock the edit guaranteed even on server that havent been buggered by ur mate :P/>/>
:)/>/> send diamonds to me any time :D/>/>
Deathknight0897 #12
Posted 06 July 2012 - 10:55 AM
oh btw you want to go to this link to find out how to lock edit forever we discussed it in full and there is only one foo proof method and it requires you to have access to the rom ie be the server host :P/>/>
HERE!
also this will not protect it from a disk drive so you need to look up how to block that or start a topic to get people talking :)/>/>
Wolvan #13
Posted 07 July 2012 - 11:59 AM
It is kinda easy to blog disk drives if you know how to
The sides have different priorities as far as I know. Just put a disk in the a drive of the highest prioritie, copy your startup scripts on the disk/Make a startup on the disk that launches the startup on the PC and you are good to go
Sxw #14
Posted 10 July 2012 - 05:23 PM
The top drive is of highest priority, otherwise, awesome… For DF fans(if not PLAY IT) Sxw1212 withdraws from society…
Backplague #15
Posted 11 July 2012 - 12:06 AM
For all of you who are here, http://forums.technicpack.net/threads/the-plague-corporation-mod-edit-dis-shits-wikked-awesome-yo.12182/ is the very much updated version. I dont update this thread anymore.
Sxw #16
Posted 15 July 2012 - 05:16 PM
404 Not Found
The server can not find the requested page:

forums.technicpack.net/threads/the-plague-corporation-mod-edit-dis-shits-wikked-awesome-yo.12182/ (port 80)
Please forward this error screen to forums.technicpack.net's WebMaster.


Is technic down? Im checking in a sec.
Edit:Its screwed up ATM. Are they resetting the webserver?