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

Electro OS 2012 Edition

Started by ElectricOverride, 25 November 2012 - 01:13 PM
ElectricOverride #1
Posted 25 November 2012 - 02:13 PM
Hello!

ElectroSystems™ here!

So, a few days ago I decided I needed to make something more advanced than my usual programs like calculators or screen size checkers, and thought: "Hey! I'll make a OS" So here we are now.

Keep in mind that I am still developing this OS and will try to update fairly regularly (Hopefully 1-2 updates a day?)

Please report any bugs in the comments!

To install type:


pastebin get scDrKxx4 startup




Then after them files have downloaded succesfully, restart your computer!

Note: To download these you need the http API anabled. :3


I am going to let you explore the OS yourselves, but heres a hint: The brown dot and blue dots in the corners do things if you click them. :P/>/>/>/>/>

Enjoy!!! :D/>/>/>/>/>

Here's some screenies :lol:/>/>/>/>

Desktop:



Start menu:



Run a entered program!:
ElectricOverride #2
Posted 25 November 2012 - 02:27 PM
:D/>/>/> Screenies?
Okay, coming right up!
ElectricOverride #3
Posted 25 November 2012 - 02:59 PM
:3 thank you!
xD Np.
rhyleymaster #4
Posted 25 November 2012 - 09:10 PM
Very nice

btw: How do you spell so good is MSpaint?!
ElectricOverride #5
Posted 26 November 2012 - 01:36 AM
Very nice btw: How do you spell so good is MSpaint?!
I'm sorry, what?
ElectricOverride #6
Posted 26 November 2012 - 01:38 AM
Ah! That is a clever idea to make a start menu like that. :D/>/>/>/> However, I must request something as a feature of the OS. Icons? :P/>/>/>/> like actual icons, 3x3 or 5x5? or 4x4 or something like that? This gives a wider range of area for us to click xD *serious face* I WILL CLICK YOU TINY BUTTON THING!
Yeah, I would have done that but the only way I can think of is putting a ton of elseifs, but thats kind of inefficient. Do you have a better way of detecting if the icons are clicked?
ElectricOverride #7
Posted 26 November 2012 - 01:47 AM
Very nice btw: How do you spell so good is MSpaint?!
I'm sorry, what?
Oh, and thanks!
Jasonfran #8
Posted 26 November 2012 - 10:47 AM
Ah! That is a clever idea to make a start menu like that. :D/>/>/>/>/> However, I must request something as a feature of the OS. Icons? :P/>/>/>/>/> like actual icons, 3x3 or 5x5? or 4x4 or something like that? This gives a wider range of area for us to click xD *serious face* I WILL CLICK YOU TINY BUTTON THING!
Yeah, I would have done that but the only way I can think of is putting a ton of elseifs, but thats kind of inefficient. Do you have a better way of detecting if the icons are clicked?

You check that the mouse is clicked WITHIN an area, not on one cell. For example, if the box is in coordinates (3,3) (3,4) (4,3) (4,4) you do:


If mousex <= 4 and mousex >=3 and mousey <= 4 and mousey >= 3 then

--Do stuff

End
Should work but I haven't tested as I am on tablet
rhyleymaster #9
Posted 26 November 2012 - 05:54 PM
Man, i love this OS.
I can't belive it took me so ling to figure it out…..
ElectricOverride #10
Posted 27 November 2012 - 07:26 AM
Man, i love this OS. I can't belive it took me so ling to figure it out…..
Thanks, I appreciate it!

Ah! That is a clever idea to make a start menu like that. :D/>/>/>/>/&amp;gt;/&amp;gt; However, I must request something as a feature of the OS. Icons? :P/>/>/>/>/&amp;gt;/&amp;gt; like actual icons, 3x3 or 5x5? or 4x4 or something like that? This gives a wider range of area for us to click xD *serious face* I WILL CLICK YOU TINY BUTTON THING!
Yeah, I would have done that but the only way I can think of is putting a ton of elseifs, but thats kind of inefficient. Do you have a better way of detecting if the icons are clicked?
You check that the mouse is clicked WITHIN an area, not on one cell. For example, if the box is in coordinates (3,3) (3,4) (4,3) (4,4) you do:
 If mousex <= 4 and mousex >=3 and mousey <= 4 and mousey >= 3 then --Do stuff End 
Should work but I haven't tested as I am on tablet
Okay, i'll go cook something up!
ArchAngel075 #11
Posted 27 November 2012 - 08:07 AM
About detecting mouse click, im not sure how i managed it that day but by saving 2 coords in a single string line (cords X1,Y1,X2,Y2 seperated by #) in a table and then a function takes mouse click Y and X and looks to see if the coords are within the box drawn by the coords,

the thing is i forgot how i made it know what coords are within that box, i think something like looking at the box Cord X1+1 and Y1+1 to set the inner corner of the box(thats if the box has borders that should not be included)

Sorry i cant dig up the code since that world was deleted :(/>/&amp;gt;

–looking around to see if i cant find it maybe–
ElectricOverride #12
Posted 28 November 2012 - 07:12 AM
New version! Now the paint desktop icon is 2x2 and the start menu button that opens it is 2x2!


pastebin get 3nDb6Pe4 startup
ElectricOverride #13
Posted 04 December 2012 - 05:53 AM
Another version, just updates something i'll put it in a spoiler so it wont spoil the feature for the OS. :)/>
SpoilerThe credits. :D/>

Heres the link for download. :)/>

pastebin get bFrbUbqS startup
bjornir90 #14
Posted 04 December 2012 - 06:39 AM
Look cool ! It's original !
Ps : if you want to detect a mouse click, look here :
Spoilerhttp://www.computercraft.info/forums2/index.php?/topic/6355-api-mouse-and-graphic-api-v13-add-a-buffer-and-color-customisation/page__pid__56403#entry56403
ElectricOverride #15
Posted 04 December 2012 - 07:16 AM
Look cool ! It's original !
Ps : if you want to detect a mouse click, look here :
Spoilerhttp://www.computerc...6403#entry56403

Thanks!
ElectricOverride #16
Posted 14 December 2012 - 06:31 AM
Small bug fix! Just fixes the paint icon so that It will actually run paint!


pastebin get 7dEL55eJ startup
NDFJay #17
Posted 14 December 2012 - 10:04 AM
Hey man, nice OS, it has a lot of potential ^_^/> I'm currently working on my own too so if you want any help ill be happy to assist you :)/>

none the less good job, keep working on it ^_^/> would love to see the final product!

~NDFJay
ElectricOverride #18
Posted 14 December 2012 - 10:53 AM
Hey man, nice OS, it has a lot of potential ^_^/> I'm currently working on my own too so if you want any help ill be happy to assist you :)/>

none the less good job, keep working on it ^_^/> would love to see the final product!

~NDFJay

Thanks! :)/> It means alot!
ElectricOverride #19
Posted 28 March 2013 - 12:04 PM
I have FINALLY decided to start to work on this again, and have come up with an installer that installs all the files you need automatically!
Code:

pastebin get LUABT7MS startup

Enjoy!
svdragster #20
Posted 29 March 2013 - 03:28 AM
Please no fake loading screen >.<

btw for that "credits" screen you could use os.pullEvent(), so it will continue when the users wants to, and not after like felt 0.2 seconds :P/>
ElectricOverride #21
Posted 29 March 2013 - 04:45 AM
Please no fake loading screen >.<

btw for that "credits" screen you could use os.pullEvent(), so it will continue when the users wants to, and not after like felt 0.2 seconds :P/>

Ill get rid of it.

And thanks
ElectricOverride #22
Posted 29 March 2013 - 05:09 AM
New update! Removes loading time and fixes some things.


pastebin get scDrKxx4 startup
svdragster #23
Posted 29 March 2013 - 07:33 AM
Hey cool :D/>

Btw you could check before running a file with the brown button, if it even exists with

if not fs.exists(run) then
  --blah
else
  shell.run(run)
end
ElectricOverride #24
Posted 30 March 2013 - 07:50 AM
Hey cool :D/>

Btw you could check before running a file with the brown button, if it even exists with

if not fs.exists(run) then
  --blah
else
  shell.run(run)
end
I kinda feel stupid for not doing that now. :P/>