Jump to content




Running CraftOS 1.8 on Computercraft 1.79


8 replies to this topic

#1 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 05 September 2017 - 06:48 PM

Thanks VirtualOS it is possible to run CraftOS 1.8 on older Versions.
Posted Image
btw. This is just a beta. This is not possible with the current release of VirtualOS. It will be released when I have fixed all Bugs.

#2 Exerro

  • Members
  • 801 posts

Posted 05 September 2017 - 08:24 PM

Does it emulate term.setPaletteColour too? It could find the closest colour match to something in the palette so things don't look terrible.

#3 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 06 September 2017 - 04:43 PM

term.setPaletteColor just changing numbers in a table. It only there to prevent CraftOS from Crashing. On the screen there is no change.

#4 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 06 September 2017 - 08:11 PM

Basically, it can only emulate 'software' (really Lua side stuff), where as setPaletteColour is a 'hardware' (Java) change.

#5 Exerro

  • Members
  • 801 posts

Posted 06 September 2017 - 10:32 PM

I know that, but say you re-map white to a cyan-ish colour, when it draws using this remapped white, rather than drawing it as white it could use cyan.

Edited by Exerro, 06 September 2017 - 10:38 PM.


#6 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 07 September 2017 - 08:08 AM

That's more complex to do than it's worth.

#7 Bomb Bloke

    Hobbyist Coder

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

Posted 07 September 2017 - 09:29 AM

That's.... very subjective.

#8 Exerro

  • Members
  • 801 posts

Posted 08 September 2017 - 05:17 PM

It's genuinely not that difficult, providing you've got access to the native colour palette... Just compare each colour to the native palette and choose the one with the smallest difference squared. Store the result in a table do you've got a mapping between your buffer's colours and the ones to draw with.

#9 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 11 September 2017 - 04:22 PM

It is now relased! Just run pastebin run B05YGPPy and try it yourself.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users