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

Need help with an OS

Question

Okay, so here's my problem.

I am trying to make my own custom OS for OpenComputers. However, I am having issues with the GPU displaying on-screen.

I have code that should, as far as I can tell, do what I need it to, but doesn't.

How to reproduce:

Download the attached .lua files, and put them on a floppy disk. Place init.lua in the root directory (of the floppy), and boot.lua in sys/boot/ (so the files on the floppy should be /init.lua and /sys/boot/boot.lua). Boot from the floppy, and you will see what I mean.

If anyone can help me, or knows what I can change or look at, your help would be greatly appreciated :)

Before you ask, I have already looked at the Wiki entries on Component, GPU, Screen, Writing Custom OSes, and that one forum post about 'Custom OSes under OpenComputers' Lua architecture'.

 

I am probably a moderate to intermediate Lua programmer by now, and this code is the result of around an hour of work.

 

Thanks in advance!

boot.lua

init.lua

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

You never executed the loaded function on init.lua:13.

Also, look at your print function in boot.lua. It won't work. You need to define w, h, cx, and cy outside of the "if not gpu then ... end" block.

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, AdorableCatgirl said:

You never executed the loaded function on init.lua:13.

Also, look at your print function in boot.lua. It won't work. You need to define w, h, cx, and cy outside of the "if not gpu then ... end" block.

Ohhhh, okay. Thank you! :)

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.