1
help! Been up all night...
Started by cornmanv2, Jul 30 2015 07:25 AM
18 replies to this topic
#1
Posted 30 July 2015 - 07:25 AM
So I'm playing direwolf20 1.5.0 with big reactors. I wanted to make a controling program for it well my program failed terribly.. When ever I try and run it I get this error
BIOS :367: [string "reactors"] '<name>' expected
I have no idea how to correct this.
BIOS :367: [string "reactors"] '<name>' expected
I have no idea how to correct this.
#2
Posted 30 July 2015 - 02:53 PM
Post your code.
#3
Posted 30 July 2015 - 03:00 PM
Sounds like you added a stray equals sign somewhere, or some unexpected data. Post your code so we can help.
#4
Posted 30 July 2015 - 03:54 PM
Don't forget to post your code as well as your error.
We cannot give 100%, if we dont know every possibility
We cannot give 100%, if we dont know every possibility
#5
Posted 30 July 2015 - 04:04 PM
Spoiler
Edited by Cranium, 30 July 2015 - 04:35 PM.
spoiler tags, yo
#6
Posted 30 July 2015 - 06:06 PM
So now I have the Bios error I know have
Attempt to perform arithmetic __mull on nil and number
Attempt to perform arithmetic __mull on nil and number
#7
Posted 30 July 2015 - 08:39 PM
That's the error, but we need the full error message, which also includes the line number on which the error occurred, including the name of the program or API the error occurred in.
#8
Posted 30 July 2015 - 08:54 PM
Reactors:49: attempt to perfrom arthmetic __mul on nil number
#9
Posted 31 July 2015 - 01:43 AM
Within the actual script file the computer is trying to run, double check the spelling of "deltaEnergy" on lines 49 and 45. If they look fine post the current version of the script.
#10
Posted 31 July 2015 - 01:49 AM
Ok thanks!... But now another one ( I'm not gonna try and write programs again hah)
Error
Reactors:132: attempt to call nil
Error
Reactors:132: attempt to call nil
#11
Posted 31 July 2015 - 02:00 AM
Ok nevermind that fixed that error.
Now this
Reactors:79: attempt to ondex? (a number value)
Now this
Reactors:79: attempt to ondex? (a number value)
#12
Posted 31 July 2015 - 02:13 AM
You've defined something as a number and you're trying to index it like it were a table.
Hard to elaborate further without seeing the code in concern.
Hard to elaborate further without seeing the code in concern.
#13
Posted 31 July 2015 - 02:22 AM
This is the codes lines from 66 to 81
-- Parameters:
-- mon - handle of monitor
-- color - text color
-- text - text to write
--
function writeColor(mon, color, text)
if (mon.isColor()) then
mon.setTextColor(color)
end
mon.write(text)
if (mon.isColor()) then
mon.setTextColor(colors.white)
end
end
-- Parameters:
-- mon - handle of monitor
-- color - text color
-- text - text to write
--
function writeColor(mon, color, text)
if (mon.isColor()) then
mon.setTextColor(color)
end
mon.write(text)
if (mon.isColor()) then
mon.setTextColor(colors.white)
end
end
Edited by cornmanv2, 31 July 2015 - 02:39 AM.
#15
Posted 31 July 2015 - 03:26 AM
That error shouldn't be possible with that script. You successfully index both the colors API and the mon object immediately before the problematic line, and nothing in that script ever assigns any new values to the colors API. I suspect that this is not an exact match for the script that's actually erroring.
#16
Posted 31 July 2015 - 04:05 AM
Ok fixed that now. I'm really sorry for all this.. Frist time doing this.
:144: attempt to call nil
:144: attempt to call nil
#17
Posted 31 July 2015 - 04:25 AM
And the latest code, please?
#19
Posted 31 July 2015 - 04:45 AM
Looks like it didn't completely copy.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users