This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Exerro's profile picture

Sky Os

Started by Exerro, 11 October 2013 - 03:19 PM
Exerro #1
Posted 11 October 2013 - 05:19 PM
Sky OS
Where speed, reliability, usability and compatibility meet.

What is Sky OS? What does it add? Why should I use it?

Well, firstly, it's multitasking.
Click to view:
Spoiler-This means you can paint a masterpiece, write an award winning novel, and play your favorite game all at once.
-Open multiple apps/programs, and switch between them with ease. Nothing will be broken, there is full compatability with programs designed for CraftOS ( apps are slightly different, if you wish to create an app, pm me )

Secondly, it has a couple of nice apps like a filebrowser and a more advanced paint program.
Click to view:
Spoiler-The filebrowser uses clicking to browse through files and opens files with different apps. The apps you use to open it also vary depending on the file extention, for example a lua file can be opened by the Edit and Run program.
-The image viewer also has support for a new way of saving images, that includes text and text colour instead of just background colour. More on this later…

Thirdly, it has a bunch of tools that makes app creation really easy.
Click to view:
Spoiler-The filebrowser can be used as a function ( utilities.filebrowser( mode, { path } ) ) where path is the initial path it displays, and mode is "Save", "Browse" or "Open"
-An image API, allowing you to create the text & colour images that were mentioned earlier. Also has functions like flood fill, rectangle, circle, and the support to save as multiple different filetypes, and load in multiple filetypes as well. For example you could create an image, add in a .tif image, add in a paint image, and then save it as a paint image ( this would lose the text of course, but you can use the .tif save if you want to keep the text )
-Adds an interface API, which allows you to create buttons, textboxes, and lists
–This also has a word wrapping function
-Adds window functions to change the look of the window of the program

Finally, you can screenshot programs!
Click to view:
SpoilerYeah, you saw it. This OS allows you to screenshot apps and it will save the screenshot to a file, which can later be viewed using the image viewer or filebrowser. The yellow "S" by the program name will screenshot it and save it to OS/screenshots/[os.time( )].tif
Text and text colour is saved, infact, the only thing that isn't saved it the cursor, and I am working on that…

It also has multi user support, meaning you can have 20 different users with different files etc

Sounding good already?
If not, how about some images to inspire you:
Screenshots:
Spoiler







I haven't really said much about the apps…
App list:
Spoileredit - the normal edit program with it's own process
filebrowser - the filebrowser shown above
paint - lets you see images ( including paint )
run - runs lua files, normal programs will work if you use this.
user controls - lets you change the look and behaviour of the OS
shell - a normal computercraft shell

A couple of things you should know:
Press f3 to toggle between fullscreen and tab mode.
To shutdown and reboot, click the 2 pixels on the top left of the screen

Install:
pastebin get VUc0PdRa install

If you find any bugs, please let me know, either by PM or in the comments below.
Thanks for reading!

A couple of questions:
Would you prefer the OS if it had windows?
Would you prefer the OS if it had a different GUI?
Would you prefer the OS if it had more/different apps?
Is the interface easy to use?
Are there any features that could do with improving?

Please feel free to answer one to all of the questions above. It really helps me out knowing what you prefer, and it is likely that your suggestion will change how this OS will be in the final release.
svdragster #2
Posted 12 October 2013 - 08:23 AM
This looks really nice! Good job
Agoldfish #3
Posted 15 October 2013 - 02:36 PM
Looks good! Might use it in my survival world!
nutcase84 #4
Posted 15 October 2013 - 09:00 PM
Good job! But I think the buttons in the corner could be bigger and have text in them.
joshmanisdabomb #5
Posted 18 October 2013 - 08:08 PM
I like this OS.
  • I like the animation when you toggle between fullscreen and not fullscreen.
  • It's different from the standard windowed OS.
  • Has it's own apps and seems to let you create your own.
Good work, can't wait to see user support and other things.
Exerro #6
Posted 01 November 2013 - 07:59 PM
New Update!
To install:
1: Get the file either through pastebin or stypi
2: Type [the name of the file] into the shell, this will unpack the 3750 lines into an unpacked directory
3: Type "Sky/Start.lua install" into the shell
4: Enter your user details in the specified textboxes
5: Use these details to log in when the computer reboots
If anything ever goes wrong with your user and means you cannot log in, use Ctrl-T to exit, then use this to reset all users and get back into the PC


Updated Screenshots:
Spoiler







What's New?
Spoiler-A complete re-write of the entire OS
-A whole new system for apps
–More window functions
–Access to everything in the Sky table
–Access to utilities such as login, filebrowser, and app
-Far better APIs
–Improved Graphics API ( the latest version )
–Improved Interface API
–New Database API ( encryption and data saving etc )
-A slightly different GUI
–Removed the line seperating the menu and the open apps
–Made the running process have a different background colour in the menu and have the buttons coloured
-User Control app
–This lets you add users in the OS without having to use windows
-Great apps
–Custom edit app built for the OS
–Custom mouse file browser built for the OS
–Custom paint program built for the OS with text support

What's Gone?
Spoiler-The nice little animation when switching between fullscreen and halfscreen
-Some APIs, only unnecessary ones though

Interested in developing apps? Even you're own version of the OS?
SpoilerApps are in Sky/Apps. They have a folder, and in the folder should have a main.lua file and properties.txt file
In the properties.txt file there should be the following lines
-database_password:"Sky OS App Properties"
-canOpenFiles:true/false ( whether it can open files or not )
-extensions: ( for all the extensions it can be opened with, put [the extension]:true below, make sure it is tabbed once or it won't be recognised ) ( look through other apps if you don't understand )
–extension:true
In main.lua, it has a slightly modified environment
-it is a metatable of _G with shell too
-global is a table of _G with shell too
-Sky is a table containing all Sky things
-window is a table containing window functions
–window.close( ) - closes the app
–window.setFocusColor( col ) – sets the focus colour of the app
–window.setTitle( title ) – sets the app name in the side menu to title
–window.isFocussed( ) – returns whether the app is focussed ( the top level & being rendered )
–window.isFullscreen( ) – returns whether the OS is fullscreen or half screen
–window.onEvent – callback that is called with the event, … . events are:
—"Close" with – returning true here will prevent the program from closing
—-"Shutdown" or "Reboot" – if the OS is shutting down
—–true or false depending whether it will be force closed
—-"Self" – from window.close( )
—-"Select" – when the use does it
—"UnFocus" – when a new program goes to the top level and gets rendered
—-"Select" – when the user does it
—-"New Process" – when a new process is added to the stack
—"Focus" – when this program is put on the top level and gets rendered
—-"Select" – when the user does it
—– more coming soon

Download:
pastebin get VUc0PdRa install