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

string.char(...)

Started by Sewbacca, 25 January 2016 - 07:19 PM
Sewbacca #1
Posted 25 January 2016 - 08:19 PM
Which chars are not available on ComputerCraft 1.75 (Minecraft: 1.7.10)?
Please give me a List of bytes (which are not available in string.char(byte)).
Creator #2
Posted 25 January 2016 - 08:30 PM
Everything can be used in string, but not all can be printed.
Sewbacca #3
Posted 25 January 2016 - 08:42 PM
Is there a way to hack this?
Creator #4
Posted 25 January 2016 - 09:10 PM
You can change the bitmap font file through a resource pack. Not sure how that works exactly.

1,777 posts is special.
Edited on 25 January 2016 - 09:08 PM
SquidDev #5
Posted 25 January 2016 - 10:05 PM
Anything between 32 (' ') and 126 ('~') can be printed. Everything else is replaced with a question mark. This is hard coded into ComputerCraft, so a resource pack won't change this. 1.76+ (Minecraft 1.8+) allows printing more characters, but this won't be backported to 1.75.
Bomb Bloke #6
Posted 26 January 2016 - 12:05 AM
Regardless of version, string.byte/char supports values 0 through to 255. However, just because you can stick it into or extract it from a string, doesn't mean that ComputerCraft will print it, send it through rednet, write it to a file correctly, or transmit it over the web… you need 1.76+ for that.

ComputerCraft also only has a font file of its own as of 1.76. Earlier versions use some characters from whatever texture pack you're using - as SquidDev says, characters it doesn't use are represented as question marks, and there's not a thing you can do about that.
Sewbacca #7
Posted 26 January 2016 - 08:11 PM
Thanks