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

General guidance for people used to CC

Recommended Posts

Hello there. Shall we begin? Okay, good.
 
Right, first difference between Open Computers and Computer Craft is that Open Computer uses Lua 5.2 whereas Computer Craft uses Lua 5.1.

 

OC & CC have differences in loading APIs/libraries. In CC you would do:

os.loadAPI( "MyAPI" )

print( MyAPI.version() )
print( os.time() )

Where as OC would be something like:

local MyAPI = require( "MyAPI" )
local os = require( "os" )

print( MyAPI.version() )
print( os.time() )

If you feel that something needs to be added changed then just post a reply ( I am a bit rusty with what CC has to offer these days... )

Link to post
Share on other sites

In CC you have to write your OS from /startup

In OC you have to write your OS from /init.lua (Assuming you have the default BIOS)

 

In CC if /disk/startup exists, it gets executed on Computer reboot

In OC if /mnt/[address]/autorun.lua exists, it get executed as soon as the hard drive/floppy gets inserted

 

In OC if you start an OS from scratch you do not have as many functions as in CC( Refer to this: http://ocdoc.cil.li/tutorial:custom_oses#what_s_available )

 

In CC pressing CTRL in edit will open a save/exit menu

In OC you need to press CTRL +  S to save and CTRL + W to close

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
Reply to this topic...

×   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.