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

[ICBM] Need some help with wireless controlling.

Started by Andrew2060, 10 July 2015 - 02:27 PM
Andrew2060 #1
Posted 10 July 2015 - 04:27 PM
Hey Guys.

General Story:

I am an ICBM fanatic and recently have launched a minecraft 1.5 server and have hit a pretty thick brick wall.

My friend is a ComputerCraft expert and has some how managed to get the timing sequence correct for his wireless missiles. The problem is ICBM missiles have to be loaded atleast 7-8 ticks after a launch or else the missiles collide and explode above.

The problem i am facing is, my friend can fire a barrage of Nuclear Cluster missiles capable of dropping 3 nukes each. His system can fire about 8 missiles per two seconds, i have no idea what he did and how he is able to do so.

Now, to combat such a situation i built an Anti-Ballistic Missile System, or what i call PATRIOT (ABM) System.
These missiles have delays of launching 10 seconds after the other to kill any missiles within a 500 block vicinity.

Due to the fact that this requires lots of comparters, repeaters and rednet cabling, i wanted to condense it all so that it uses the least space possible, the only way to do that is with Computers and modems.

OverView of CC Problem:

- I need help creating a CC program that is capable of (1) wireless firing, (2) delayed launches.
- I have very little knowledge on how to use wireless modems and what not.
- No i cannot ask my friend as i am trying to keep my discovery that ICBM peripherals do indeed work, a secret.

Supposed Function Required:

=>Radar Detects missile, outputs RedStone signal to a computer a block apart.
=>Computer informs the ABM array consisting of (8 computers) that a incoming missile is arriving.
=>The ABM Array does timed launches of 15 second intervals at my friends base to stop any missiles.

[Notice] We require two things only, wireless help and some help with controlling delays.
[Notice] icbm = peripheral.wrap("back")
[Notice] icbm.launch()

^^ That is how we wish to launch missiles.

Could we please have some help with this, our server is very new and this array would help us keep players too!
It is a custom mod-pack and we do not have any peripheral mods at all. Just ComputerCraft and other technicals.

Screenshots of Current System:




This is the older system:


Thank you :)/>
Bomb Bloke #2
Posted 10 July 2015 - 04:57 PM
I can tell you that you're better off using wireless modems than redstone signals, where possible. Redstone takes up to two ticks to enable/disable. Modem transmissions are more or less instant.

MineCraft 1.5 means you'd be using ComputerCraft 1.51… I don't remember there being many 1.5 packs around though, are you sure you're not using MC 1.5.2 with CC 1.53?

The rednet API is generally the easiest way to deal with modem transmissions. Open the side with the modem attached, then use the send/receive functions.

Implementing a delay is as simple as calling sleep(<timeInSeconds>). Remember that a server tick is a twentieth of a second.
Andrew2060 #3
Posted 10 July 2015 - 05:11 PM
Im using 1.5.2, its a custom modpack a friend and i made.

ABMS Require precision timing or else they will not function and will kill each other a few blocks up without doing the job.
TYKUHN2 #4
Posted 10 July 2015 - 05:16 PM
The ICBM radar station (from what I can tell with it's soon to be deleted wiki) has a computercraft API which means you don't need any redstone. However it bundles missile and players together which could cause issues. As a result you may still want to stick with Redstone regardless of what Mr. Bloke has said :D/> just to filter out missiles.

If you use rednet API I woudl recommend rednet.broadcast() so that all computers recieve it within one command. Just simplier :)/>

And as for the sleep command you can get fairly precise (the smallest you can go is 0.05, and any increment smaller than 0.05 will be rounded)
Andrew2060 #5
Posted 10 July 2015 - 08:43 PM
Nope.

Broadcast would cause them to run into each other

http://pastebin.com/JcyVY1QT
TYKUHN2 #6
Posted 24 September 2015 - 03:05 AM
I was looking through my content and saw this. Your latest post was never answered, is this still a thing? I assume not (as it is old) but better safe than sorry!