Posted 03 August 2012 - 06:02 PM
So i didn't even know I had computercraft1.3 until about two days after i downloaded tekkit. I've learned from a LOT of trial and error, but I finally was able to write a program that would play any song I wanted simply by typing in its name.
Here's the script if you feel like typing it up. I'll even tell you what all you need. Aren't I nice? :P/>/>
1st, you'll need a main computer that will be your "Dj hub", the place where you select the song. it will need a modem.
2nd, for every disc you want to add to your library, you'll need a disk drive, computer, and a modem.
OPTIONAL 3rd, if you want to display song recently selected, you'll need one computer, 6 monitors and a modem.
Here's the code for the "Dj hub"
[attachment=359:DJ Hub.rtf]
you can shut down the system by typing stop, or break into the main computer by typing debug.
Here's an optional script for DJ Hub if you want it to start by default.
The file currently opens "cd", but you can rename it to whatever you name the DJ Hub script.
[attachment=360:DJ HUB startup.rtf]
This is for the computer holding the disc.
Place the computer with a modem on the FRONT. make sure that the computer does not touch any other disk drives and that the song you want to designate this computer to is in the disk drive.
[attachment=361:Dj receiver.rtf]
if you want the computer to automatically run the program, edit startup and type shell.run( "(name of DJHub script)" )
If you want to display what songs have played on a billboard, use this script.
[attachment=362:Monitor for DJ.rtf]
You'll have to type monitor top (name of script) to have it display on the monitors. I used a 3x2 arrangement for mine.
Ok, that's it! I hope it works for you guys. I'd love to hear some feedback of how it worked for you, some ways I could improve the code, and anything else.
Here's the script if you feel like typing it up. I'll even tell you what all you need. Aren't I nice? :P/>/>
1st, you'll need a main computer that will be your "Dj hub", the place where you select the song. it will need a modem.
2nd, for every disc you want to add to your library, you'll need a disk drive, computer, and a modem.
OPTIONAL 3rd, if you want to display song recently selected, you'll need one computer, 6 monitors and a modem.
Here's the code for the "Dj hub"
[attachment=359:DJ Hub.rtf]
you can shut down the system by typing stop, or break into the main computer by typing debug.
Here's an optional script for DJ Hub if you want it to start by default.
The file currently opens "cd", but you can rename it to whatever you name the DJ Hub script.
[attachment=360:DJ HUB startup.rtf]
This is for the computer holding the disc.
Place the computer with a modem on the FRONT. make sure that the computer does not touch any other disk drives and that the song you want to designate this computer to is in the disk drive.
[attachment=361:Dj receiver.rtf]
if you want the computer to automatically run the program, edit startup and type shell.run( "(name of DJHub script)" )
If you want to display what songs have played on a billboard, use this script.
[attachment=362:Monitor for DJ.rtf]
You'll have to type monitor top (name of script) to have it display on the monitors. I used a 3x2 arrangement for mine.
Ok, that's it! I hope it works for you guys. I'd love to hear some feedback of how it worked for you, some ways I could improve the code, and anything else.