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

[WIP] graphical output (solved[at least almost])

Started by notgodsarmy666, 04 March 2012 - 05:13 PM
notgodsarmy666 #1
Posted 04 March 2012 - 06:13 PM
Just a stupid beginner question
I am sure that it is possible, especially after seeing MIM
I am in need to do some colored / graphical output, but I have no idea how to do it.
Ascii frames and colored spaces would work, but I don't know how to do that.
I found a tutorial to color text and such for the PSP, but this lua here seems to have less functions.

Can someone explain how to do it to me?



_________________________________________
P.S.: I am still looking for a good general lua documentation.
All I need is something like e.g. this:
Spoiler … and its not in the official lua documentation, which I totally don't get. Or I missed an important link
[array .. erm table in lua] = f**k=(boolean[,string,string,int])
[indent=5]=>is making a lot of fun[/indent]
another examples:

[bolean]=turtle.up() => moves a turtle up
print([string/int]) => writes to screen with an additional linefeed at the end
Edited on 05 March 2012 - 12:17 PM
tommyroyall #2
Posted 04 March 2012 - 06:31 PM
Well, look at the source of MiM.
He redoes the default.png and essentially has colored the letters etc.
No-one else has ever done that, but it's definetly possible. People just usually don't do it because of the massive amount of work for it.
In general bro, trust me on this. Learn EVERYTHING else before you learn that. Casper (who made that) Is like, a demi-god among CC.
notgodsarmy666 #3
Posted 04 March 2012 - 07:00 PM
anyway how do i use the chars which comes at the end? like the borders and such?
Casper7526 #4
Posted 04 March 2012 - 07:19 PM
Look inside the minecraft.jar there is a lonely txt file among the class files named font.txt it shows you all the valid characters inside minecraft. Those are the ones you can edit and use within default.png.
notgodsarmy666 #5
Posted 04 March 2012 - 08:33 PM
yay finally I know why I only got "?" instead of frames.
Funny, the texturepack that I am using has a updated Hires version of all those characters, even thought that minecraft dosn't support it at all
notgodsarmy666 #6
Posted 05 March 2012 - 01:15 PM
yay, almost done!
had to got Notches font.txt file to korrekt (one error, and expending it)
Then I thought I am done,
Spoiler
but while using them in detail I got some unexpected glitches with the char functions and such.
and some elements aren't placed right (I assume it depends on if the source letter was a capital or not)
Finally, col 49 can't be written (I get an line break then)
but this is what I got, so far:
Spoiler
its manual char by char written. I have to put it in functions … and I have to see if I can't remove those empty pixels
Sebra #7
Posted 12 March 2012 - 06:20 PM
but while using them in detail I got some unexpected glitches with the char functions and such.
and some elements aren't placed right (I assume it depends on if the source letter was a capital or not)
Finally, col 49 can't be written (I get an line break then)
its manual char by char written. I have to put it in functions … and I have to see if I can't remove those empty pixels
It looks not bad. Try term.write( text ) instead of write( text )