←  Operating Systems

ComputerCraft | Programmable Computers for Minecraft

»

Linear Operating System [Discontinued]

Lyqyd's Photo Lyqyd 31 Oct 2014

Of course it will be executed. These are equivalent:

return func()
return
func()
Quote

mrdawgza's Photo mrdawgza 07 Nov 2014

Regarding release 1.5.2 (not out yet):
I have planned release 1.5.2 to include desktop icons, however I will require some help with this.
I have tried using Bedrock however I can't seem to get Bedrock working, at all.
I had ideas on using a table inside the current users folder which would store the icons and the programs the icons would lead to, but there are too
many things I can't think of that would go wrong.

Quote

Dahknee's Photo Dahknee 21 Nov 2014

Looks good, just add more functionality to it, like programs that will help users to make things or help them in minecraft day-to-day life!
Quote

mrdawgza's Photo mrdawgza 22 Nov 2014

View PostDannySMc, on 21 November 2014 - 11:11 AM, said:

Looks good, just add more functionality to it, like programs that will help users to make things or help them in minecraft day-to-day life!

I plan to have a rebuilt OS in the next update :P


EDIT
This is my 100th post :D/>:D:D:D:D
Edited by mrdawgza, 23 November 2014 - 10:37 AM.
Quote

oscar124's Photo oscar124 22 Nov 2014

After entering information in the register option it crashes and outputs:

Saving details...
userScreen.ls:95: ././world/computer/165/linear/userfolders/triple/imgs/desktopBg.lsg (No such file or directory)

.3. Fix this, and that FAST!

View Postoscar124, on 22 November 2014 - 04:12 PM, said:

After entering information in the register option it crashes and outputs:

Saving details...
userScreen.ls:95: ././world/computer/165/linear/userfolders/triple/imgs/desktopBg.lsg (No such file or directory)

.3. Fix this, and that FAST!

Also this is ingame and not any emulator.
Quote

Exerro's Photo Exerro 22 Nov 2014

View Postoscar124, on 22 November 2014 - 04:13 PM, said:

After entering information in the register option it crashes and outputs:

Saving details...
userScreen.ls:95: ././world/computer/165/linear/userfolders/triple/imgs/desktopBg.lsg (No such file or directory)

.3. Fix this, and that FAST!

-snip (seriously, why did you quote yourself?)-

Also this is ingame and not any emulator.
Pretty sure this is because you are running an older version of computercraft. In 1.6.5, that error should never occur as it automatically creates the directories. Do you know which version of computercraft you are running?
Edited by awsumben13, 26 November 2014 - 05:04 PM.
Quote

mrdawgza's Photo mrdawgza 22 Nov 2014

View Postawsumben13, on 22 November 2014 - 04:26 PM, said:

View Postoscar124, on 22 November 2014 - 04:13 PM, said:

-snip
Pretty sure this is because you are running an older version of computercraft. In 1.6.5, that error should never occur as it automatically creates the directories. Do you know which version of computercraft you are running?


Yeah, this never happens. It doesn't happen to me ingame or in my emulator.
As for the rest of the OS, I'm rebuilding it :D
Edited by mrdawgza, 23 November 2014 - 10:38 AM.
Quote

mrdawgza's Photo mrdawgza 26 Nov 2014

Release 1.6 (WIP)

As for release 1.6, I am expecting it to be finished soon.
I have had to restart the rebuild like 6 times before I finally got onto a proper route.

The current alpha I have right now is only doing one thing, logging in - then it sits braindead...
However, the rebuild will look and work a lot better then Release 1.5.1, since it be using NovaUI by awsumben13.

I am currently implementing multitasking and desktop icons, is there anything else I can try put in?
-- Edit: I am postponing the multitasking to a later date.
Edited by mrdawgza, 11 February 2015 - 06:42 PM.
Quote

Dahknee's Photo Dahknee 27 Nov 2014

View Postmrdawgza, on 22 November 2014 - 08:42 AM, said:

View PostDannySMc, on 21 November 2014 - 11:11 AM, said:

Looks good, just add more functionality to it, like programs that will help users to make things or help them in minecraft day-to-day life!

I plan to have a rebuilt OS in the next update :P


EDIT
This is my 100th post :D/> :D:D:D:D

Yes but make sure to add them in so they are useful, and make sure they can't error and are physically unbreakable?
Quote

mrdawgza's Photo mrdawgza 27 Nov 2014

View PostDannySMc, on 27 November 2014 - 12:22 PM, said:

View Postmrdawgza, on 22 November 2014 - 08:42 AM, said:

View PostDannySMc, on 21 November 2014 - 11:11 AM, said:

-snip
-snip

Yes but make sure to add them in so they are useful, and make sure they can't error and are physically unbreakable?

Hmm? I am rebuilding the OS and it will have useful programs. I am not so sure what you mean by physically unbreakable.
Quote

Dahknee's Photo Dahknee 27 Nov 2014

View Postmrdawgza, on 27 November 2014 - 12:34 PM, said:

View PostDannySMc, on 27 November 2014 - 12:22 PM, said:

View Postmrdawgza, on 22 November 2014 - 08:42 AM, said:

View PostDannySMc, on 21 November 2014 - 11:11 AM, said:

-snip
-snip

Yes but make sure to add them in so they are useful, and make sure they can't error and are physically unbreakable?

Hmm? I am rebuilding the OS and it will have useful programs. I am not so sure what you mean by physically unbreakable.

Use:
local status, err = pcall(YOUR_FUNCTION)

as this will stop the program from automatically terminating your code?
Quote

mrdawgza's Photo mrdawgza 27 Nov 2014

View PostDannySMc, on 27 November 2014 - 02:36 PM, said:

View Postmrdawgza, on 27 November 2014 - 12:34 PM, said:

View PostDannySMc, on 27 November 2014 - 12:22 PM, said:

View Postmrdawgza, on 22 November 2014 - 08:42 AM, said:

View PostDannySMc, on 21 November 2014 - 11:11 AM, said:

-snip
-snip
-snip
-snip

Use:
local status, err = pcall(YOUR_FUNCTION)

as this will stop the program from automatically terminating your code?


Well, not sure if my code can be terminated through a program; however this is the prevention I have.

local oldPull = os.pullEvent;
os.pullEvent = os.pullEventRaw;
--
--code goes here - such as proceeding to load the OS
--
os.pullEvent = oldPull;

Edited by mrdawgza, 27 November 2014 - 04:06 PM.
Quote

Dahknee's Photo Dahknee 27 Nov 2014

View Postmrdawgza, on 27 November 2014 - 03:29 PM, said:

View PostDannySMc, on 27 November 2014 - 02:36 PM, said:

View Postmrdawgza, on 27 November 2014 - 12:34 PM, said:

View PostDannySMc, on 27 November 2014 - 12:22 PM, said:

View Postmrdawgza, on 22 November 2014 - 08:42 AM, said:

View PostDannySMc, on 21 November 2014 - 11:11 AM, said:

-snip
-snip
-snip
-snip

Use:
local status, err = pcall(YOUR_FUNCTION)

as this will stop the program from automatically terminating your code?


Well, not sure if my code can be terminated through a program; however this is the prevention I have.

local oldPull = os.pullEvent;
os.pullEvent = os.pullEventRaw;
--
--code goes here - such as proceeding to load the OS
--
os.pullEvent = oldPull;

No if an error occurs it will terminate the program, you need to catch the errors and not let it stop the program!
Quote

mrdawgza's Photo mrdawgza 27 Nov 2014

View PostDannySMc, on 27 November 2014 - 04:40 PM, said:

No if an error occurs it will terminate the program, you need to catch the errors and not let it stop the program!

Ohh, I believe this will be supported in the rebuild.
Quote

Exerro's Photo Exerro 27 Nov 2014

I believe he is using NovaUI and a UICanvas to run each program, in which case errors are handled by the UICanvas object, and shouldn't cause any problems in the OS.
Quote

Dahknee's Photo Dahknee 28 Nov 2014

View Postmrdawgza, on 27 November 2014 - 04:49 PM, said:

View PostDannySMc, on 27 November 2014 - 04:40 PM, said:

No if an error occurs it will terminate the program, you need to catch the errors and not let it stop the program!

Ohh, I believe this will be supported in the rebuild.

Ahh good :) Well happy coding, make sure to tell me when you update it so I can look :P
Quote