Jump to content




print('\someNumber')


  • You cannot reply to this topic
14 replies to this topic

#1 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 25 April 2016 - 02:18 PM

I am trying to use ascii chars.
I'm using the code
print('\128\32\32\32')
But it's not working

#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 25 April 2016 - 02: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.

#3 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 25 April 2016 - 03: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.

#4 Bomb Bloke

    Hobbyist Coder

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

Posted 25 April 2016 - 03:17 PM

View PostLDDestroier, on 25 April 2016 - 03:02 PM, said:

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.

View PosteveryOS, on 25 April 2016 - 02:18 PM, said:

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.

#5 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 25 April 2016 - 03:52 PM

View PostLDDestroier, on 25 April 2016 - 03:02 PM, said:

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

View PostBomb Bloke, on 25 April 2016 - 03:17 PM, said:

View PostLDDestroier, on 25 April 2016 - 03:02 PM, said:

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.

View PosteveryOS, on 25 April 2016 - 02:18 PM, said:

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

#6 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 25 April 2016 - 04:20 PM

View PosteveryOS, on 25 April 2016 - 03:52 PM, said:

emulator

There's your problem.

#7 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 25 April 2016 - 04:25 PM

View PostKingofGamesYami, on 25 April 2016 - 04:20 PM, said:

View PosteveryOS, on 25 April 2016 - 03:52 PM, said:

emulator

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

#8 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 April 2016 - 04:31 PM

What happens when you run that code in Minecraft?

#9 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 25 April 2016 - 04:43 PM

View PosteveryOS, on 25 April 2016 - 02:18 PM, said:

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?

#10 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 25 April 2016 - 04:51 PM

View PosteveryOS, on 25 April 2016 - 04:25 PM, said:

View PostKingofGamesYami, on 25 April 2016 - 04:20 PM, said:

View PosteveryOS, on 25 April 2016 - 03:52 PM, said:

emulator

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

So, Mimic?

#11 Anavrins

  • Members
  • 775 posts

Posted 25 April 2016 - 04:52 PM

View PosteveryOS, on 25 April 2016 - 04:25 PM, said:

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.

#12 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 25 April 2016 - 05:24 PM

View PostAnavrins, on 25 April 2016 - 04:52 PM, said:

View PosteveryOS, on 25 April 2016 - 04:25 PM, said:

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)

#13 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 25 April 2016 - 05:26 PM

More like these two pages of issues on the github repo.

#14 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 25 April 2016 - 07:40 PM

Even in MC it is just empty for me. Seems like they are chars like " " or some control chars.

#15 Anavrins

  • Members
  • 775 posts

Posted 25 April 2016 - 10:58 PM

View PosteveryOS, on 25 April 2016 - 05:24 PM, said:

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users