Jump to content




CraftOS 2.0 - Dan's Secret Project

computer help

  • You cannot reply to this topic
798 replies to this topic

#623 apemanzilla

  • Members
  • 1,421 posts

Posted 06 February 2016 - 08:29 PM

View PostCreator, on 06 February 2016 - 08:14 PM, said:

Would binaries allow someone to break out of the sandbox?

No, binary loading loads the string as Lua bytecode instead of Lua code.

It actually will load either as long as you pass nil or "t", despite "b" being disabled.

#624 FUNCTION MAN!

  • Members
  • 292 posts

Posted 06 February 2016 - 11:00 PM

View Postapemanzilla, on 06 February 2016 - 08:29 PM, said:

View PostCreator, on 06 February 2016 - 08:14 PM, said:

Would binaries allow someone to break out of the sandbox?

No, binary loading loads the string as Lua bytecode instead of Lua code.

It actually will load either as long as you pass nil or "t", despite "b" being disabled.

Or if you pass "bananas". It's a == check.

#625 cyanisaac

  • Members
  • 369 posts
  • LocationSan Diego, CA

Posted 07 February 2016 - 12:46 AM

View Postapemanzilla, on 06 February 2016 - 08:29 PM, said:

View PostCreator, on 06 February 2016 - 08:14 PM, said:

Would binaries allow someone to break out of the sandbox?

No, binary loading loads the string as Lua bytecode instead of Lua code.

It actually will load either as long as you pass nil or "t", despite "b" being disabled.

What's bad about Lua bytecode though?

#626 apemanzilla

  • Members
  • 1,421 posts

Posted 07 February 2016 - 01:26 AM

View Postcyanisaac, on 07 February 2016 - 12:46 AM, said:

View Postapemanzilla, on 06 February 2016 - 08:29 PM, said:

View PostCreator, on 06 February 2016 - 08:14 PM, said:

Would binaries allow someone to break out of the sandbox?

No, binary loading loads the string as Lua bytecode instead of Lua code.

It actually will load either as long as you pass nil or "t", despite "b" being disabled.

What's bad about Lua bytecode though?

Absolutely nothing. Creator was under the impression that it would allow users to escape the sandbox, but it doesn't. It's just another form of Lua code.

#627 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 07 February 2016 - 09:21 AM

View Postapemanzilla, on 07 February 2016 - 01:26 AM, said:

View Postcyanisaac, on 07 February 2016 - 12:46 AM, said:

What's bad about Lua bytecode though?

Absolutely nothing. Creator was under the impression that it would allow users to escape the sandbox, but it doesn't. It's just another form of Lua code.

IIRC there is a lack of verification in the C implementation of the Lua VM which means you can access locals outside your function. However no such bugs exist in the LuaJ implementation.

#628 Creeper9207

  • Members
  • 211 posts

Posted 08 February 2016 - 04:11 PM

Posted Image
Someone tell the skype team at microsoft!

#629 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 09 February 2016 - 01:28 AM

Context.

To be fair, it does sound like the sort of thing you could wrap a loading screen around, but on the other hand it also sounds like the sort of thing where you shouldn't have to resort to browsing through bug reports to determine the cause of the behaviour.

#630 Creeper9207

  • Members
  • 211 posts

Posted 05 March 2016 - 01:37 AM

New grain! :D
Posted Image

Edited by Creeper9207, 05 March 2016 - 01:38 AM.


#631 wilcomega

  • Members
  • 466 posts
  • LocationHolland

Posted 05 March 2016 - 04:11 PM

how much time was in between the first and the second, and the second and the third? maybe we can estimate a release date! or whatever its couting down to

#632 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 20 March 2016 - 09:01 AM

View Postwilcomega, on 05 March 2016 - 04:11 PM, said:

how much time was in between the first and the second, and the second and the third? maybe we can estimate a release date! or whatever its couting down to
~2 months = Something will happen ~14 months later.

#633 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 20 March 2016 - 07:37 PM

View PostKonlab, on 20 March 2016 - 09:01 AM, said:

View Postwilcomega, on 05 March 2016 - 04:11 PM, said:

how much time was in between the first and the second, and the second and the third? maybe we can estimate a release date! or whatever its couting down to
~2 months = Something will happen ~14 months later.

I think that it should be a bit faster. Not saying your guess is wrong, just HOPING it is.

#634 Elttob

  • Members
  • 22 posts
  • LocationLondon, UK

Posted 03 April 2016 - 03:06 PM

16 colours are definitely enough to work with.

I present to you this palette:

Posted Image

It contains 6 shades of grey, 6 shades of any colour (in this case r=0, g=0, b=255), black, white, and one colour spare (useful if you want a close button on an operating system.)
Very useful for any anti-aliasing you may want to do; I used it on the back button in the images below, but I could've done it for all the text too.

Here's a few examples of different colours on an interface:

Posted Image
Posted Image
Posted Image

#635 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 03 April 2016 - 06:03 PM

View PostCreator, on 20 March 2016 - 07:37 PM, said:

View PostKonlab, on 20 March 2016 - 09:01 AM, said:

View Postwilcomega, on 05 March 2016 - 04:11 PM, said:

how much time was in between the first and the second, and the second and the third? maybe we can estimate a release date! or whatever its couting down to
~2 months = Something will happen ~14 months later.

I think that it should be a bit faster. Not saying your guess is wrong, just HOPING it is.
One year is not a long time, I also hope that CC for minecraft eventually gets diamond computers that run CO 2.0.

#636 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 03 April 2016 - 08:29 PM

View PostKonlab, on 03 April 2016 - 06:03 PM, said:

View PostCreator, on 20 March 2016 - 07:37 PM, said:

View PostKonlab, on 20 March 2016 - 09:01 AM, said:

View Postwilcomega, on 05 March 2016 - 04:11 PM, said:

how much time was in between the first and the second, and the second and the third? maybe we can estimate a release date! or whatever its couting down to
~2 months = Something will happen ~14 months later.

I think that it should be a bit faster. Not saying your guess is wrong, just HOPING it is.
One year is not a long time, I also hope that CC for minecraft eventually gets diamond computers that run CO 2.0.

But what is it isn't written in Java?

#637 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 03 April 2016 - 09:01 PM

View PostH4X0RZ, on 03 April 2016 - 08:29 PM, said:

But what is it isn't written in Java?

I can't find the tweet, but I'm pretty sure it is using .Net instead of Java.

Edit: Found it

View PostSquidDev, on 07 January 2016 - 09:01 PM, said:

No "new features", but some interesting implementation detail: these three tweets suggest there is some .Net/C/Lua interop going on, which implies that the core is written in .Net, with a conventional Lua VM (rather than a pure Java or .Net implementation). If its written in .Net there might be some scope for plugins, but we will have to see :).

Much later edit:
Also this recent tweet

Edited by SquidDev, 31 May 2016 - 07:05 AM.


#638 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 03 April 2016 - 09:15 PM

View PostElttob, on 03 April 2016 - 03:06 PM, said:

It contains 6 shades of grey, 6 shades of any colour (in this case r=0, g=0, b=255), black, white, and one colour spare (useful if you want a close button on an operating system.)

Doesn't that only account for fifteen colours?

#639 Elttob

  • Members
  • 22 posts
  • LocationLondon, UK

Posted 04 April 2016 - 08:37 AM

View PostBomb Bloke, on 03 April 2016 - 09:15 PM, said:

View PostElttob, on 03 April 2016 - 03:06 PM, said:

It contains 6 shades of grey, 6 shades of any colour (in this case r=0, g=0, b=255), black, white, and one colour spare (useful if you want a close button on an operating system.)

Doesn't that only account for fifteen colours?
Looking at it now, you're right! But that's not a bad thing; it's better than going over the limit :P

#640 Elttob

  • Members
  • 22 posts
  • LocationLondon, UK

Posted 04 April 2016 - 09:14 AM

Back again with another example to show you the power of antialiasing. Notice how few colours you need to do it!
Posted Image

EDIT: Wow, nobody's here! I'll just throw out another mock up of an antialiased interface. The text was.. interesting but I did it with only 8 colours.
Posted Image

Edited by Elttob, 06 April 2016 - 03:23 PM.


#641 Creeper9207

  • Members
  • 211 posts

Posted 10 April 2016 - 03:26 PM

Posted Image
YES!

#642 wilcomega

  • Members
  • 466 posts
  • LocationHolland

Posted 13 April 2016 - 03:56 PM

question, is COs still going to run as a minecraft mod on in game computers, i am getting cofused now





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users