9 posts
Posted 12 July 2012 - 10:30 PM
Hey everyone! I am generally new to ComputerCraft and I have just learned how to code very basically, and a few other things. Well, in one of my servers, I am trying to develop a factory. Sounds easy right? Well I want to be able to view stats on my whole factory from 1-3 Computers in a control room. I want the computers to display which machines are running, which lights are on and which doors are open. And by machines I mean things such as Macerators and Compressors from IC2. I use Tekkit to run these mods, so I have all mods installed in the current tekkit version. I have been searching for a way to do this, and I could not find any way at all, I hope someone can help me.
Thanks,
Snowmaster97
504 posts
Location
Seattle, WA
Posted 12 July 2012 - 10:33 PM
Checkout this peripheral (mod):
ccSensorsThis mod allows you to grab information about the world around you with functions only available through ccSensors.
I have never used this mod but I am sure there are some tutorials out there.
if not, check out this post:
Nuclear Reactor Control ProgramHope I helped! :)/>/>
9 posts
Posted 12 July 2012 - 11:58 PM
I look foward to downloading the programs from the post, but since i am using tekkit, i am hesitant to download any outside mods as i have not experimented before. I am looking for a way to code what i an looking for if possible.
196 posts
Location
Norway
Posted 13 July 2012 - 12:45 AM
You can use rednet to mannage it with a program
Maby I'll make a code for it
8543 posts
Posted 13 July 2012 - 01:13 AM
I look foward to downloading the programs from the post, but since i am using tekkit, i am hesitant to download any outside mods as i have not experimented before. I am looking for a way to code what i an looking for if possible.
You can use rednet to mannage it with a program
Maby I'll make a code for it
This cannot be coded to meet the stated requirements without another mod such as the ccSensor peripheral. Adding the ccSensor peripheral mod shouldn't break anything if done correctly.
9 posts
Posted 13 July 2012 - 01:20 AM
I am worried tht if i add the mod, and then tekkit gets the mod, my worlds will be destroyed, will that happen? If not i will download that immediately:D
8543 posts
Posted 13 July 2012 - 01:32 AM
I am worried tht if i add the mod, and then tekkit gets the mod, my worlds will be destroyed, will that happen? If not i will download that immediately:D
The worst that could possibly happen is that you'd have to deal with a block ID conflict at some point down the road, which is both unlikely and easily fixed without losing any world data.
9 posts
Posted 13 July 2012 - 01:46 AM
Really? I was told otherwise. Well thankyou for the info. Also, how do I go about installing new mods through tekkit? I know how to install mods woth regualr minecraft but not through tekkit.
8543 posts
Posted 13 July 2012 - 05:27 AM
Well, I'm fairly certain that tekkit is Forge-based, so you'd install it like any other Forge mod. Drop the mod's .zip or folder into the mods directory, just like any other Forge mod.
351 posts
Posted 13 July 2012 - 07:23 AM
This cannot be coded to meet the stated requirements without another mod such as the ccSensor peripheral. Adding the ccSensor peripheral mod shouldn't break anything if done correctly.
Sure it can.
"Display which machines are running".
You can count, using a redpower item detector, how many items go into and out of a machine, to determine if it is running or not.
"Which lights are on/ doors are open"
Instead of connecting switches directly to lights and doors, pass them through a computer, so the computer is aware of the state.
Seems pretty doable.
9 posts
Posted 13 July 2012 - 03:42 PM
but how would i code that? i am not very good with coding.
9 posts
Posted 13 July 2012 - 03:58 PM
I just tried downloading that ccsensor mod. I dragged both files into the mods folder within tekkit, and both have failed to work. now whenever i load a game, it says building terrain, then it gets about 80% done and after that it crashes. help???
8543 posts
Posted 13 July 2012 - 06:41 PM
This cannot be coded to meet the stated requirements without another mod such as the ccSensor peripheral. Adding the ccSensor peripheral mod shouldn't break anything if done correctly.
Sure it can.
"Display which machines are running".
You can count, using a redpower item detector, how many items go into and out of a machine, to determine if it is running or not.
"Which lights are on/ doors are open"
Instead of connecting switches directly to lights and doors, pass them through a computer, so the computer is aware of the state.
Seems pretty doable.
Recyclers. Mass Fabricators. Pumps, where the water is used immediately from an attached chest.
Sure, you can make guesses about whether or not the machine is running. It's not going to update quickly, and it'll probably be inaccurate. And once the chunk is unloaded and reloaded, the system falls apart. These are technical limitations that just watching redstone pulses from equipment monitoring side effects of the machines in question cannot overcome.
I wasn't intending to imply that the lights/doors monitoring was problematic.
9 posts
Posted 14 July 2012 - 01:52 PM
So i just need the sensors mod then. But as i said , my game glitches out and crashes on loading it.
8543 posts
Posted 14 July 2012 - 09:11 PM
You should probably ask for help in the ccSensors topic. I'm not sure what would have gone wrong.