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

[1.74] Refuses to print ASCII Art

Started by PieCrafted, 04 August 2015 - 04:44 AM
PieCrafted #1
Posted 04 August 2015 - 06:44 AM
My code:


local file = fs.open("piecinema/logo", "r")
if file then
  local text = file.readAll()
  file.close()
  print(text)
else
  print("PieCinema Logo Doesn't Exist! Downloading!")
  shell.run("pastebin get x0yd4h9D piecinema/logo")
end

ASCII Art: http://pastebin.com/x0yd4h9D

It works perfectly fine in 1.73
flaghacker #2
Posted 04 August 2015 - 07:07 AM
What does it do instead?
PieCrafted #3
Posted 04 August 2015 - 03:19 PM
What does it do instead?

Prints the number of lines the file is, blank, and then continues on with the script.

For example, instead of printing 5 lines of the art, it prints 5 blank lines.
MKlegoman357 #4
Posted 04 August 2015 - 03:23 PM
Are you sure the text and background colors aren't the same?
Bomb Bloke #5
Posted 05 August 2015 - 11:55 PM
Are you printing to a monitor, as your PieCinema thread suggests? If so, do you have the same problem if your script changes the text scale before attempting to print?
PieCrafted #6
Posted 06 August 2015 - 03:04 AM
Are you printing to a monitor, as your PieCinema thread suggests? If so, do you have the same problem if your script changes the text scale before attempting to print?

Yes, and yes.

As for the above:

I have edited the script a little bit to change the color to white and still nothing displays.
TheOddByte #7
Posted 06 August 2015 - 04:22 AM
My guess is that it probably has something todo with the escape character( \ )
Try replacing your ascii-art with something else that contains simple characters like # or something and see if it truly is the escape character that's causing problems.
Lyqyd #8
Posted 06 August 2015 - 05:33 AM
My guess is that it probably has something todo with the escape character( \ )

That won't be the issue. Reading the string in from the file means that the resulting Lua string will contain a literal backslash.
Bomb Bloke #9
Posted 06 August 2015 - 07:22 AM
Yes, and yes.

Did you specifically CHANGE the text scale, or did you just try to set it to what it already was?

Does it do the same thing when using the computer's own display?

Now that we've established that you're only showing us part of the problematic script, please link to the rest of it.
Waitdev_ #10
Posted 06 August 2015 - 08:55 AM
just a random question, what did you use to make the ascii art?
otherwise you made it?
TheOddByte #11
Posted 07 August 2015 - 01:30 PM
just a random question, what did you use to make the ascii art?
otherwise you made it?
My guess would be that he either used this: http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 or it was custom made.
Waitdev_ #12
Posted 08 August 2015 - 05:22 AM
just a random question, what did you use to make the ascii art?
otherwise you made it?
My guess would be that he either used this: http://patorjk.com/s...%20Something%20 or it was custom made.
thanks ;)/>
Edited on 08 August 2015 - 03:43 AM
PieCrafted #13
Posted 08 August 2015 - 11:42 PM
just a random question, what did you use to make the ascii art?
otherwise you made it?

Custom made.

Yes, and yes.

Did you specifically CHANGE the text scale, or did you just try to set it to what it already was?

Does it do the same thing when using the computer's own display?

Now that we've established that you're only showing us part of the problematic script, please link to the rest of it.

http://pastebin.com/pX1n482D
Bomb Bloke #14
Posted 09 August 2015 - 01:28 PM
I can't reproduce the problem with that script.

At this point I'm pretty well convinced the issue is 1.74's monitor rendering bug. There's a number of threads about it, this being the most recent.
Creator #15
Posted 09 August 2015 - 08:40 PM
Well, let's hope the issue will soon be fixed