Jump to content




Linear Operating System [Discontinued]


35 replies to this topic

#21 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,458 posts

Posted 31 October 2014 - 06:26 PM

Of course it will be executed. These are equivalent:

return func()
return
func()


#22 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 07 November 2014 - 04:05 PM

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.



#23 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 21 November 2014 - 11:11 AM

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!

#24 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 22 November 2014 - 08:42 AM

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.


#25 oscar124

  • Members
  • 11 posts
  • Locationomg, im in sweden!!!!!!!

Posted 22 November 2014 - 04:13 PM

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.

#26 Exerro

  • Members
  • 801 posts

Posted 22 November 2014 - 04:26 PM

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.


#27 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 22 November 2014 - 06:49 PM

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.


#28 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 26 November 2014 - 04:28 PM

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.


#29 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 27 November 2014 - 12:22 PM

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?

#30 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 27 November 2014 - 12:34 PM

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.

#31 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 27 November 2014 - 02:36 PM

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?

#32 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 27 November 2014 - 03:29 PM

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.


#33 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 27 November 2014 - 04:40 PM

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!

#34 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 27 November 2014 - 04:49 PM

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.

#35 Exerro

  • Members
  • 801 posts

Posted 27 November 2014 - 04:56 PM

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.

#36 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 28 November 2014 - 09:24 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users