Jump to content




CCLite for CraftOS 1.8


66 replies to this topic

#1 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 05 July 2017 - 01:30 PM

First: This is a fork of CCLite from gamax92
A Computercraft Emulator
Changes:
-Update to Löve2D 11.0
-Update to CraftOS 1.8
-Added Commandline Arguments
-Added non Advanced Computer
-Drag and drop programs into the Computer
Download
Official Snap for Linux User
Bugtracker
Commandline Arguments
CCLite API
Screenshots
Data Folder
Visit GitLab Repo

Edited by Wilma456, 06 June 2018 - 05:43 PM.


#2 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 07 July 2017 - 02:39 AM

Looks good. Just tried it out.

#3 supernicejohn

  • Members
  • 98 posts
  • LocationSweden

Posted 08 July 2017 - 09:12 AM

Bug: (Don't know if it is your version or cclite in general) Non-Ascii characters are all '?'s.
If It's something on my end, oops :)

#4 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 08 July 2017 - 05:41 PM

I have updated ccemu to Version 2.1:
-You can make screenshots with escape
-Each ID has a own data folder
-Fixed many Bugs
-The Label is now saved in a file

@supernicejohn
The Problem is, that I need the Chars in a image file with transparency Background.

#5 Bomb Bloke

    Hobbyist Coder

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

Posted 08 July 2017 - 11:00 PM

View PostWilma456, on 08 July 2017 - 05:41 PM, said:

The Problem is, that I need the Chars in a image file with transparency Background.

ComputerCraft.jar\assets\computercraft\textures\gui\term_font.png

#6 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 12 July 2017 - 05:50 PM

Builds are now aviable

#7 Dahknee

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

Posted 12 July 2017 - 05:55 PM

Wilma456 you are amazing! Thank you, this is my chosen emulator and at last someone has updated it!! I am forever in your debt.

Edit: Do you have a mac version?

Edited by DannySMc, 13 July 2017 - 07:50 AM.


#8 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 13 July 2017 - 10:50 AM

Mac and Android Build are now aviable, but the Mac Built is not testet, because I don't have a Mac.

#9 Dahknee

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

Posted 13 July 2017 - 10:58 AM

View PostWilma456, on 13 July 2017 - 10:50 AM, said:

Mac and Android Build are now aviable, but the Mac Built is not testet, because I don't have a Mac.

Will test for youl

#10 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 20 July 2017 - 12:15 PM

Update to Version 2.2

Changelog

btw:
Can somebody help me to put the font in the right format? I'm a Noob with Gimp.

#11 Bomb Bloke

    Hobbyist Coder

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

Posted 20 July 2017 - 11:17 PM

Describe "the right format"?

#12 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 21 July 2017 - 12:10 PM

The Letters must be lined up and must be separeted with a red line. And at the begin must be a red line.Look here for a example. The Hight of the image must be 8 Pixel.

#13 Bomb Bloke

    Hobbyist Coder

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

Posted 22 July 2017 - 02:20 AM

That isn't a job for Gimp, that's a job for code which can load the original font file. Which makes me think you should drop such code directly into the emulator and ditch that other weird format. You're gonna have to deviate from it anyway, as actual CC characters are up to 9px tall.

#14 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 22 July 2017 - 10:30 AM

The Code to load this formated font is not fron CCLite, it's from Love2d see the Wiki of Löve2d. So it must be in that format.

#15 Bomb Bloke

    Hobbyist Coder

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

Posted 23 July 2017 - 01:24 AM

That page suggests that you can use any image height. Or, at least, it doesn't say you can't, and their example is certainly taller than 8px.

So I guess this file should work, so long as Love doesn't try to center the glyphs or something. Judging by your link, I believe this code should load it:

local charString = {}
for i = 0, 255 do charString[ i + 1 ] = i end
charString = string.char( table.unpack( charString ) )

local font = love.graphics.newImageFont( "font.png", charString )

Edited by Bomb Bloke, 23 July 2017 - 01:26 AM.


#16 apemanzilla

  • Members
  • 1,421 posts

Posted 23 July 2017 - 07:01 AM

You'd be better off using love.graphics.newImage( filename ), Image:getData( ), and love.graphics.newImageFont( imagedata, glyphs ) to programmatically generate a suitable font image from a standard CC font.

Edited by apemanzilla, 23 July 2017 - 07:01 AM.


#17 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 23 July 2017 - 04:01 PM

@BombBloke Thank you! Your file works.

#18 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 03 August 2017 - 05:09 PM

Version 2.3 is out. You now have alls Chars up to 127 thanks BombBloke. I have some Problems with UTF-8 Encondinga at the moment, so I can't load all Chars from the File but I try to fix it. And I add a Program called "perman" which allows you to manage Peripherals.

#19 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 30 August 2017 - 06:26 PM

Version 2.4 is out!
Changelog


#20 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 20 February 2018 - 04:28 PM

Good News for all Linux Users: CCLite is now aviable as snap. To install CCLite and get automatic updates just run:
sudo snap install cclite






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users