Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
jakendrick3

Having trouble loading CC-Ported API

Question

So, my problem occurs when trying to use this api, converted from CC:

 

http://pastebin.com/qwt98zmj

 

Original:

 

http://pastebin.com/XZS4eF9Z

 

Basically, all I am doing is:

cselected = jenisis.drawScreen(static, menu)

And I did this at the top (yes, before the function, and also the tables were declared as well):

jenisis = require("jenisis")

It's located inside the lib folder, and it's not about not finding/loading the API, because I already sorted that out. It's returning a rather unique error for an API:

/jentest:17: attempt to index global 'jenisis' (a boolean value)
stack traceback:
     /jentest:17: in main chunk
     (...tail calls...)

Full 'test' program here: http://pastebin.com/ZfNvZ6Xk

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hey, sorry, I posted this a while back and it didn't get approved for a while, managed to figure out the problem. As a CC user, not used to declaring a table at the beginning of an API then having it return it. Sorry!

 

EDIT - ran into a new problem. Whilst attempting to use term.read("*"), the pc that is running it crashes. Trying to make an autorun with a password.

Link to post
Share on other sites

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.