Please give me a List of bytes (which are not available in string.char(byte)).
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
string.char(...)
Started by Sewbacca, 25 January 2016 - 07:19 PMPosted 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)).
Please give me a List of bytes (which are not available in string.char(byte)).
Posted 25 January 2016 - 08:30 PM
Everything can be used in string, but not all can be printed.
Posted 25 January 2016 - 08:42 PM
Is there a way to hack this?
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.
1,777 posts is special.
Edited on 25 January 2016 - 09:08 PM
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.
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.
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.
Posted 26 January 2016 - 08:11 PM
Thanks