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

MasonOs

Started by ThyMason122, 22 December 2015 - 04:20 AM
ThyMason122 #1
Posted 22 December 2015 - 05:20 AM
Hi, Im fairly new to the computercraft forum and making OS'es. But I've done tutorials and all sorts of things to try to make a decent OS.

This OS has a few features:
Tabs/Menus,
More menu (Includes the "paint" program. which ill talk about later.)
Changeable backgrounds! You can make one by adding it into the coding, ill try to make it easier though. (Has 3 defaults)
Close button on tabs.
Redset, a controller for redstone, rednet integration soon!
And thats as much as I can fit into it! (yet)

The paint program is the standard CC program, except you dont need to terminate the OS to get to it.
You go to Menu, More, CC Paint and a input tab comes up with an option to name it. If you just hit enter it returns you
to the desktop.

The background changer or "BgPick" can be accessed by going to Menu, BgPick. This pops up a menu with a + to go up a background or a - to go down. It wont allow you to go below 1 or above 3. The backgrounds are as follows:
Snakey
Landmarks
Dream World

Notes: There is monitor support for most of the buttons!
Power simply turns of the computer.
If you download this then you type OS to get started!

Things to do:
Updater (Main Priority)
More Programs
Games
File Explorer

If you would like to give it a shot and leave some feed back run the following command on your computer!

pastebin run yR0Ektwq

Thanks in advance! -Mason :)/>
Edited on 19 March 2017 - 04:43 AM
Creator #2
Posted 22 December 2015 - 09:39 AM
Screenies?
ThyMason122 #3
Posted 22 December 2015 - 07:35 PM
Ah.. I thought you meant the backgrounds. I will put some screenshots fairly soon
Blue #4
Posted 23 December 2015 - 08:45 PM
Bug report: You're trying to run a function( init() ) before it has been defined. Just move your updater to the end of your code.
ThyMason122 #5
Posted 23 December 2015 - 09:18 PM
Ok, will fix.

Updated.
DannySMc #6
Posted 23 December 2015 - 10:42 PM
I have to admit for a first OS, this is not bad considering most of the communities first OS's ;)/> (Including mine), so well done, I think with more additions and adding more to it, this could be really good! :D/>
ThyMason122 #7
Posted 24 December 2015 - 02:27 AM
Thanks alot! :)/>
Admicos #8
Posted 24 December 2015 - 05:19 PM
i get this error when starting up: os:15: attempt to call nil
it seems like it cannot find the drawDeskTop() function.

EDIT: I could fix it by moving

init = function()
    _ms = 0
    drawDeskTop()
    drawTaskBar()
    runTime()
  end
  local response = http.get("http://pastebin.com/raw/PaXjFWdk")
  if response then
    local ver = response.readAll()
    if tonumber( ver ) > tonumber( version ) then
	  print("There's a new update, going to install!")
    shell.run("pastebin get", "a26Gz7Js")
    else
	  print("Running Latest Version")
	  sleep(1)
	  init()
    end
end
to the bottom of the file.
Edited on 24 December 2015 - 04:23 PM
ThyMason122 #9
Posted 25 December 2015 - 12:41 AM
Yeah, I derped up. Im still trying to get the updating function to work.
Pyuu #10
Posted 25 December 2015 - 04:06 AM
Holy pastebin spam, try using an alternative hosting solution like Dropbox to hold your files, and keep the plain updater on pastebin. This way no one gets restricted from pastebin temporarily.

Edit:
Additionally, nice os:15: attempt to call nil.

Edit 2:
Pastebin installers which draw all their files from Pastebin are baaaaaaaaaaaaaaaaaaaaaaad.
Edited on 29 December 2015 - 07:10 PM
ThyMason122 #11
Posted 29 December 2015 - 07:21 AM
I wouldnt know how to use dropbox. And yes, I know about line 15
Creator #12
Posted 29 December 2015 - 09:29 AM
Don't use Dropbox. Use pastebin.
Blue #13
Posted 29 December 2015 - 09:46 AM
Don't use Dropbox. Use pastebin.
I agree. Pastebin installers are much better,plus,you can use them on severs without access to the sever's files.

Despite the bugs,I think that this is a good OS,I like the Win-XP design.
Lyqyd #14
Posted 29 December 2015 - 03:49 PM
There was only one version of ComputerCraft where http was turned on by default but the whitelist wasn't "*". Installers can pull the data from anywhere just as well as pastebin. It is better to grab from the URLs involved directly rather than running the pastebin program, though.
Cloud Ninja #15
Posted 29 December 2015 - 04:49 PM
There was only one version of ComputerCraft where http was turned on by default but the whitelist wasn't "*". Installers can pull the data from anywhere just as well as pastebin. It is better to grab from the URLs involved directly rather than running the pastebin program, though.
Yea instead of using pastebin, i honestly recommend for files that change very rarely hosting them somewhere like dropbox so that you don't get pastebin blacklisted on your IP or on a server.
cyanisaac #16
Posted 30 December 2015 - 02:16 AM
There was only one version of ComputerCraft where http was turned on by default but the whitelist wasn't "*". Installers can pull the data from anywhere just as well as pastebin. It is better to grab from the URLs involved directly rather than running the pastebin program, though.
Yea instead of using pastebin, i honestly recommend for files that change very rarely hosting them somewhere like dropbox so that you don't get pastebin blacklisted on your IP or on a server.

Y'all are crazy IMO. I've never had Pastebin blackmail me, and when I was doing OTOS I would be pulling from and pushing to Pastebin for EVERY change I made, with it replacing many files. I don't think it makes that much of a difference, you would have to REALLY, REALLY spam Pastebin to get blocked.
Pyuu #17
Posted 30 December 2015 - 02:23 AM
Y'all are crazy IMO. I've never had Pastebin blackmail me, and when I was doing OTOS I would be pulling from and pushing to Pastebin for EVERY change I made, with it replacing many files. I don't think it makes that much of a difference, you would have to REALLY, REALLY spam Pastebin to get blocked.

Trust me, Pastebin will blacklist people after so many connections are made, it took about 1 month of me using pastebin nonstop for OS related things back in the day before I noticed I was unable to even connect to pastebin (Connection time out). It starts off gradually slowing your connection until you just can't connect anymore, unless you run a program that while true do's it, in which case you'll just be blacklisted for a week.
cyanisaac #18
Posted 30 December 2015 - 04:26 AM
Y'all are crazy IMO. I've never had Pastebin blackmail me, and when I was doing OTOS I would be pulling from and pushing to Pastebin for EVERY change I made, with it replacing many files. I don't think it makes that much of a difference, you would have to REALLY, REALLY spam Pastebin to get blocked.

Trust me, Pastebin will blacklist people after so many connections are made, it took about 1 month of me using pastebin nonstop for OS related things back in the day before I noticed I was unable to even connect to pastebin (Connection time out). It starts off gradually slowing your connection until you just can't connect anymore, unless you run a program that while true do's it, in which case you'll just be blacklisted for a week.

I did OS stuff nonstop for three months or so, I never noticed anything throttlewise.

Anyways, to keep the thread train on its tracks, I would recommend to MasonOS that he do whatever he want with it. However, I will definitely suggest that you use a tool like Creator's Compress to consolidate all of the various files into ONE downloadable from Pastebin.
ThyMason122 #19
Posted 14 January 2016 - 07:49 PM
I personally agree with cyanisaac because I wouldn't really care if I got banned because as you guys said I would only be banned for a week. I got back from my holiday break and Im gonna try to work on this further more. This is kinda cutting in to my other post in Ask a Pro about my update system. So you guys can also post there.
ThyMason122 #20
Posted 18 March 2017 - 05:17 AM
I'm back after a year and I am planning on making desktop backgrounds more integrated with the computercraft paint program.