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

require() not working on a EEPROM

Question

So i'm trying to make a micro controller that makes a hologram projector say welcome. Here's the code for it (I basically just stuck stuff together from the hologram api page because, why not? Its good code) and when i flashed it i got a bluescreenCapture.thumb.PNG.a9f584d29150c44727f990b1c9a50dec.PNG

I have little lua experience (mostly from this mod and a bit from wow) so i don't really know whats going on here. I first thought of trying to find the file in the line(component) but i couldn't find it. I looked in /boot, /bin, /lib, /dev /lib/core My second thought was going here so... Here i am!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The `require` function is implemented by the OS and is not in the default Lua environment. It needs a filesystem to search for packages and because the eeprom is basically a one file filesystem.. There's nowhere to look for packages. Either install OpenOS or see package.lua from OpenOS source to get an idea for how to write your own require function.

Share this post


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.