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

ICBM program

Started by cissh, 24 May 2016 - 05:50 PM
cissh #1
Posted 24 May 2016 - 07:50 PM
hi all,
first of all, english is not my mother tongue. Sorry for that.

I recently started a new server(1.7.10) with computercraft and the new ICBM mod. but i have a problem.
I want to configure the laucher control panel by computercraft.

ICBM mod: http://www.planetmin...ech-explosives/

I found this good looking program on the internet: http://www.computerc...issile-control/ .

its splitted in 3 parts (so 3 computers) and 2 of them works (or just start without an error)

-ICBM missile launcher: http://pastebin.com/ssFKX7Kp
-ICBM main server: http://pastebin.com/y2WDjsz8
-ICBM control panel: http://pastebin.com/esZ0Xvhx

The problem is "ICBM control pannel" when i start the script i get an error: bios:14: [string "startup"]:221: no loop to break

i hope u can help me!
if u need more information just ask!
Gsck #2
Posted 24 May 2016 - 08:46 PM
Try this: Lq0a23SY
TYKUHN2 #3
Posted 24 May 2016 - 09:30 PM
Change

local function checkLoadbarLib()
	f = fs.exists("/lib/loadBar")
	if f == true then
		break
to

local function checkLoadbarLib()
	f = fs.exists("/lib/loadBar")
	if f == true then
		return
Edited on 24 May 2016 - 07:30 PM
cissh #4
Posted 25 May 2016 - 02:52 PM
Try this: Lq0a23SY
hey, thanks for ure help!
But now i get another error

temp:136 attempt to index ? (a nil value)
Dragon53535 #5
Posted 25 May 2016 - 03:57 PM
You're trying to use the LoadBar api without ever loading it.move lines 217-227 up above line 136.

And then move line 152, (The line in missile_launch that runs os.loadAPI) to below what you just moved and outside of the function.
Edited on 25 May 2016 - 01:58 PM
cissh #6
Posted 25 May 2016 - 04:16 PM
You're trying to use the LoadBar api without ever loading it.move lines 217-227 up above line 136.

And then move line 152, (The line in missile_launch that runs os.loadAPI) to below what you just moved and outside of the function.
tanks for ure help!

but im not a pro in computercraft, can u give me a pastebin link because i dont get what u mean with: And then move line 152, (The line in missile_launch that runs os.loadAPI) to below what you just moved and outside of the function."

tis is my script now ( with lines 217-227 moved above line 139)
http://pastebin.com/0GEb9t0R
Edited on 25 May 2016 - 02:21 PM
Dragon53535 #7
Posted 25 May 2016 - 04:29 PM
line 164 above line 148
cissh #8
Posted 25 May 2016 - 05:37 PM
line 164 above line 148

ok thanks, now te program gives a starting screen. and the wireless modum on top went red. but i still got an error its says: startup:76: attempt to index ? (a nil value)

tis is how my script looks now: http://pastebin.com/qcWECtq6

i hope u can fix this
Edited on 25 May 2016 - 03:43 PM
Dragon53535 #9
Posted 25 May 2016 - 08:09 PM
There is no .users file to read.