This tutorial will teach you how to add the RuneScape font's from a 474 client into your 317 client. This allows new symbol's such as infinity and it gives the differences between zero's and o's, it also has a few other characters which you were not able to type in 317.
I spent quite a long time refactoring a 474 so i could dump this and ive been working for about an hour on it since and found out it was a stupid mistake by drawing the pixels in the wrong order lol.
So anyway;
Tutorial:
First, go into your "TextDrawingArea" class.
Add this;
Code:
public TextDrawingArea(String s)
{
ZeeFont zee = new ZeeFont(this, s);
zee.loadFont();
}
Now, scroll down to your variables at the bottom, replace with these;
Code:
public byte[][] aByteArrayArray1491;
public int[] anIntArray1492;
public int[] anIntArray1493;
public int[] anIntArray1494;
public int[] anIntArray1495;
public int[] anIntArray1496;
public int anInt1497;
public Random aRandom1498;
public boolean aBoolean1499;
Now go into client.java, search for;
Code:
titleStreamLoader = streamLoaderForName
Now, you have a choice, if you want to add the font's to replace your old ones so that it works with interfaces and chat etc without setting then replace;
Code:
aTextDrawingArea_1270 = new TextDrawingArea(false, "p11_full", titleStreamLoader);
aTextDrawingArea_1271 = new TextDrawingArea(false, "p12_full", titleStreamLoader);
chatTextDrawingArea = new TextDrawingArea(false, "b12_full", titleStreamLoader);
With;
Code:
aTextDrawingArea_1270 = new TextDrawingArea("./font_0.dat");
aTextDrawingArea_1271 = new TextDrawingArea("./font_1.dat");
chatTextDrawingArea = new TextDrawingArea("./font_2.dat");
You can change the "font_0.dat", to the location of your cache if you add the font files there.
Or, do this;
If you want to leave your old font's but add these as new ones add this;
Code:
474fonts = new TextDrawingArea[3];
for (int i = 0; i < 474fonts.length; i++)
474fonts[i] = new TextDrawingArea("./font_"+i+".dat");
Then declare;
Code:
TextDrawingArea[] 474fonts;
Now.
Download this class file and font cache's to your client directory.
[Only registered and activated users can see links. ]
Now here is the finished outcome.
Ingame:
Interfaces:
Login screen:
Have fun.
[Only registered and activated users can see links. ]
Nice Zee_best. Just release a way for us to create .dat files for out own fonts instead of using yours then were good to go!
Well, you would have to use my font dumper anyway, just specify a text style. Only problem is that it's not perfect, due to there being "yOffsets" which basically means the line is leveled, for example.
If i have the message;
"Hello", all 5 letters would be drawn at the top of the specified text area, therefore to get the "e" and "o" to be level with the other text it takes a bit, i almost had it perfect with a few fonts.
But if i released i would have to make it so you have to do it manually in a GUI or something, but ill wait until tomorrow.
[Only registered and activated users can see links. ]
Well, you would have to use my font dumper anyway, just specify a text style. Only problem is that it's not perfect, due to there being "yOffsets" which basically means the line is leveled, for example.
If i have the message;
"Hello", all 5 letters would be drawn at the top of the specified text area, therefore to get the "e" and "o" to be level with the other text it takes a bit, i almost had it perfect with a few fonts.
But if i released i would have to make it so you have to do it manually in a GUI or something, but ill wait until tomorrow.
Ok. Kool, Ill be waiting for it.
[Only registered and activated users can see links. ]
nice don't really get it though to drunk to read the hole thing
Lol, basically instead of loading the original font's via the cache you load via my class which is the 317 format but using DIS instead of the client's stream, which are actually both the same.
[Only registered and activated users can see links. ]
Aww, I was working with Dophert on this and we tried to edit the old 317
to math the new 0's and O's, we haven't succeeded yet tho, so thanks for this !