Jump to content


Y.Petremann's Content

There have been 10 items by Y.Petremann (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#57017 Simple bootloader

Posted by Y.Petremann on 06 December 2012 - 07:37 AM in Programs

Because if a script has booted correctly, it don't boot with other script.



#56909 Simple bootloader

Posted by Y.Petremann on 06 December 2012 - 12:11 AM in Programs

This is a very simple bootloader that can verify if the file exist and run it.
CODE :
Spoiler
TODO :
Spoiler



#56521 Unicode Character Support

Posted by Y.Petremann on 04 December 2012 - 03:09 PM in Suggestions

I don't really agree with Unicode support since it's more dificult to work with Unicode ( UTF-x ) than with ASCII, since for now ComputerCraft don't have a full ASCII support and since /font/default.png font can be easily monospaced and that not pretty good for Unicode charset.



#56518 Black and white computers having lightGray and Gray colors

Posted by Y.Petremann on 04 December 2012 - 03:02 PM in Suggestions

I think that grayscale support should be natural, havng white on white or black on black should write in gray, so no more problem and no big change in the apis and programs



#56517 Full ASCII support + codepage

Posted by Y.Petremann on 04 December 2012 - 02:54 PM in Suggestions

View PostPixelToast, on 04 December 2012 - 08:02 AM, said:

Do you want a full ASCII support :?

No

Do you want codepage support ?

That's a priority

Your responses are contradictory, codepage need support full ASCII (the type shown in defined / font / default.png) to work. Please change your answer for the first or the last question.



#56516 Full ASCII support + codepage

Posted by Y.Petremann on 04 December 2012 - 02:48 PM in Suggestions

The first problem is simple, when you look at /font/default.png, there is so much unusable character because for a reason we don't really know ComputerCraft hasn't a full ascii support, ComputerCraft don't need to parse the special formating character §, and it don't need to convert core functions to things like unicode. ( I say that for those that have not understand that ... )

For the second part, I have seen that changing /font/default.png don't affect ComputerCraft. I have seen somes people that have changed this image to correspond to what they want in computercraft. I think that not good.

I saw a real program ( "Schism Tracker" ) that use two color characters (Back/Front) and a codepage to create his interface. Since we have Advanced computers, we could make somes more fancy "graphical" interfaces without using something else than 256 diferent characters.



#56265 Full ASCII support + codepage

Posted by Y.Petremann on 03 December 2012 - 12:47 PM in Suggestions

Firstly I think that implementing unicode is not a good idea, since there is so many glyph and not created to be used in monospace

But I think that we must being able to use the full ASCII chart, and additionnaly, like old computer setting codepages.

If we don't change the actual character size, the codepage file would be 2ko
the graphical appearance of the characters would be defined in binary format like that by 64 bit :


00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000

01111110
10000001
10100101
10000001
10111101
10011001
10000001
01111110

01111110
11111111
11011011
11111111
11000011
11100111
11111111
01111110
...

When running a program could load a codepage or modify directly the character by setting directly codes

One implementation I have though could be :
term.glyph(char,line,value) -- to change the way a glyph is draw ( don't apply directly)
term.apply() -- apply modification make by glyph()
term.codepage(string or filename) -- directly change all glyph depending to the codepage

Firstly it could be good for somes person making programs that require special characters, but with glyph() it could be possible to animate without rewriting text, and finaly to make localized programs.



#5694 [CC 1.33] [Beta 1.8.1] CCInput 0.27 (Big update!) - Play games on your gi...

Posted by Y.Petremann on 23 March 2012 - 02:52 PM in Peripherals and Turtle Upgrades

One thing that could be cool, ( and making it multiplayer compatible ) is to read the keyboard from person that are near or on your block and because there is virus in computercraft, to send somes messages to this player when he is "listened"



#5138 Unicode in computercraft

Posted by Y.Petremann on 20 March 2012 - 03:26 AM in Ask a Pro

View PostCasper7526, on 14 March 2012 - 11:09 PM, said:

Open your minecraft.jar, look for a lonely file called font.txt (it's int UTF8 format)

Those are all your available characters for not only ComputerCraft, but Minecraft.
Minecraft now suport unicode character ( look at font and lang folder, change the language to russian ...)
I am trying to make a texture pack with the old look of character with language that use unicode ...
The character I ask for are possible in minecraft, but It could be a good idea to have computercraft unicode compatible



#4223 Unicode in computercraft

Posted by Y.Petremann on 14 March 2012 - 07:40 PM in Ask a Pro

I would like to use these character in a program for making somes "graphics" on monitor
▀█▖▗▘▙▚▛▜▝▞▟
Is it posible