Jump to content




help! Been up all night...


18 replies to this topic

#1 cornmanv2

  • Members
  • 10 posts

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.

#2 Balthamel

  • Members
  • 86 posts

Posted 30 July 2015 - 02:53 PM

Post your code.

#3 apemanzilla

  • Members
  • 1,421 posts

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 LuckyLuke

  • Members
  • 52 posts
  • LocationMinecraft

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 :)

#5 cornmanv2

  • Members
  • 10 posts

Posted 30 July 2015 - 04:04 PM

Spoiler

Edited by Cranium, 30 July 2015 - 04:35 PM.
spoiler tags, yo


#6 cornmanv2

  • Members
  • 10 posts

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



#7 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

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 cornmanv2

  • Members
  • 10 posts

Posted 30 July 2015 - 08:54 PM

Reactors:49: attempt to perfrom arthmetic __mul on nil number


#9 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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 cornmanv2

  • Members
  • 10 posts

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

#11 cornmanv2

  • Members
  • 10 posts

Posted 31 July 2015 - 02:00 AM

Ok nevermind that fixed that error.
Now this
Reactors:79: attempt to ondex? (a number value)

#12 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.

#13 cornmanv2

  • Members
  • 10 posts

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

Edited by cornmanv2, 31 July 2015 - 02:39 AM.


#14 cornmanv2

  • Members
  • 10 posts

Posted 31 July 2015 - 03:02 AM

http://pastebin.com/nXr7TUQk

#15 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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 cornmanv2

  • Members
  • 10 posts

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

#17 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 31 July 2015 - 04:25 AM

And the latest code, please?

#18 cornmanv2

  • Members
  • 10 posts

Posted 31 July 2015 - 04:31 AM

http://pastebin.com/aEWtTjUz

#19 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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