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

Running CraftOS 1.8 on Computercraft 1.79

Started by Wilma456, 05 September 2017 - 05:48 PM
Wilma456 #1
Posted 05 September 2017 - 07:48 PM
Thanks VirtualOS it is possible to run CraftOS 1.8 on older Versions.

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.
Exerro #2
Posted 05 September 2017 - 09: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.
Wilma456 #3
Posted 06 September 2017 - 05: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.
Lupus590 #4
Posted 06 September 2017 - 09:11 PM
Basically, it can only emulate 'software' (really Lua side stuff), where as setPaletteColour is a 'hardware' (Java) change.
Exerro #5
Posted 06 September 2017 - 11: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 on 06 September 2017 - 09:38 PM
Lupus590 #6
Posted 07 September 2017 - 09:08 AM
That's more complex to do than it's worth.
Bomb Bloke #7
Posted 07 September 2017 - 10:29 AM
That's…. very subjective.
Exerro #8
Posted 08 September 2017 - 06: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.
Wilma456 #9
Posted 11 September 2017 - 05:22 PM
It is now relased! Just run pastebin run B05YGPPy and try it yourself.