Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Ta©ti Tac0Z

wtf openOs is showing me the blue screen

Question

Posted

hallo weren i try to run one of my programs the screen truns blue and seying:

/lib/term.lua:333 attempt to perform arithetic on local '_y' (a nil value)

 

2017-01-20_19.30.50.png

 

i can see weren i go in at line 333 and yes it do try to make a math as it says.

is this like a fail by me or openos?

or a 3 fing plese help me

 

the pastebin code is: gpf27zhf

use: http://pastebin.com/gpf27zhf

11 answers to this question

Recommended Posts

  • 0
Posted (edited)

I would recommend using strictly local variables. Your problem is coming from the fact that the variables _rpx and _rpy are expected to be global but are only initialized in the 'printBack' function.

This is a problem for the definition of 'readUrl' above that which expects _rpx and _rpy to be able to do its job. I believe a simple fix would be this....

I think this is your issue... Im afraid i haven't had the chance to test. Good luck

I was stupid.. Your problem is on line #52.

term.setCursor(rpx, rpy)

should be

term.setCursor(_rpx, _rpy) -- you named the variables with underscores

Hope that helps... :/

Edited by Molinko
Im dumb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.