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

print('\someNumber')

Started by EveryOS, 25 April 2016 - 01:18 PM
EveryOS #1
Posted 25 April 2016 - 03:18 PM
I am trying to use ascii chars.
I'm using the code

print('\128\32\32\32')
But it's not working
MKlegoman357 #2
Posted 25 April 2016 - 03:59 PM
ComputerCraft can only write the printable characters of 7-bit ASCII. In the latest versions of ComputerCraft Dan extended the printable characters, but as far as I know, they are not really mapped to a certain extended ASCII character set, you'll have to find them manually by printing them on the screen.
LDDestroier #3
Posted 25 April 2016 - 04:02 PM
To my knowledge, CC 1.75 and before cannot view special unicode characters (like "\128"), but later versions (for MC 1.8.x and later, boo hoo) can.
Bomb Bloke #4
Posted 25 April 2016 - 04:17 PM
To my knowledge, CC 1.75 and before cannot view special unicode characters (like "\128"),

Certain characters you can, but it's a bit tricky.

But it's not working

Define "not working".

If you see a bunch of question marks, then you aren't on Minecraft 1.8+.

If a bunch of blank spaces get printed, then you're on MC 1.8+, and you're getting exactly what you asked for.
EveryOS #5
Posted 25 April 2016 - 04:52 PM
To my knowledge, CC 1.75 and before cannot view special unicode characters (like "\128"), but later versions (for MC 1.8.x and later, boo hoo) can.
I know 1.74 and 1.75 can. I'm pretty sure Blittle API uses that type of character, and it creates pixels in those versions

To my knowledge, CC 1.75 and before cannot view special unicode characters (like "\128"),

Certain characters you can, but it's a bit tricky.

But it's not working

Define "not working".

If you see a bunch of question marks, then you aren't on Minecraft 1.8+.

If a bunch of blank spaces get printed, then you're on MC 1.8+, and you're getting exactly what you asked for.
I'm currently using an emulator. No on question marks
KingofGamesYami #6
Posted 25 April 2016 - 05:20 PM
emulator

There's your problem.
EveryOS #7
Posted 25 April 2016 - 05:25 PM
emulator

There's your problem.
It's a really good html-based emulator
Lyqyd #8
Posted 25 April 2016 - 05:31 PM
What happens when you run that code in Minecraft?
Luca_S #9
Posted 25 April 2016 - 05:43 PM
I am trying to use ascii chars. I'm using the code
 print('\128\32\32\32') 
But it's not working

Could you tell us what the specific result you actually WANT is?
Creator #10
Posted 25 April 2016 - 05:51 PM
emulator

There's your problem.
It's a really good html-based emulator

So, Mimic?
Anavrins #11
Posted 25 April 2016 - 05:52 PM
It's a really good html-based emulator
If you're talking about Mimic, it's not, I've had lots of annoying and inaccurate behavior in the past with it.
I've been using this type of typing bytes since at least CC 1.6, if nothing is showing it's simply because 0x20 and 0x80 are actual space characters.
EveryOS #12
Posted 25 April 2016 - 06:24 PM
It's a really good html-based emulator
If you're talking about Mimic, it's not, I've had lots of annoying and inaccurate behavior in the past with it.
I've been using this type of typing bytes since at least CC 1.6, if nothing is showing it's simply because 0x20 and 0x80 are actual space characters.
Like term.blit doesn't work, and it always freezes? Plus main roots don't work. Those are the only problems I've seen. Plus, it's a lot better than the one here (But not as good as CCemuredux)
KingofGamesYami #13
Posted 25 April 2016 - 06:26 PM
More like these two pages of issues on the github repo.
Luca_S #14
Posted 25 April 2016 - 08:40 PM
Even in MC it is just empty for me. Seems like they are chars like " " or some control chars.
Anavrins #15
Posted 25 April 2016 - 11:58 PM
Like term.blit doesn't work, and it always freezes? Plus main roots don't work. Those are the only problems I've seen. Plus, it's a lot better than the one here (But not as good as CCemuredux)
That's mainly because mimic is on a version prior to 1.74 which doesn't have term.blit, let alone the character set used by BLittle.