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

Custom eeprom Errom

Question

I was creating a Bios to My Computer and It Had Not The Storage capacity required to store the Code So I sent the code to Pastebin , I created a new file and put the Code: (pastebin run PRIVATE)
And I put the file in the EEPROM but when I tried to start on another computer An Error Has Occured Saying ( failed bios loading : 1: syntax error near 'run' ) and I 'm pretty new to programming on OC and do not know how to fix that error ,

 

sorry if I made some mistakes writing (i used google translator) :D
Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi! The syntax error is occurring because the command "pastebin" is a program built into openOS, the proper way to launch the pastebin command from your code is shell.execute("pastebin run <YourThing>"), unfortunately the shell API is part of openOS as well, so in order to get your EEPROM to run the script on pastebin you would need to use the internet card component, 

  https://github.com/MightyPirates/OpenComputers/wiki/Component-Internet (sorry for linking to the old documentation). Unfortunately I am somewhat out of my depth with HTTP so can't really help you with that, you may be able to find something useful in the source for Lyras TitanBIOS https://oc.cil.li/index.php?/topic/553-titan-bios-http-booting/ ), which seems to be doing something pretty similar to what you want to do. 

 

Hope that helped!

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.