Thread: [Refactored] Adding 474 font's to your 317 client, including "0" and "O" differences

Page 1 of 7 123 ... LastLast
Results 1 to 10 of 61
  1. #1 [Refactored] Adding 474 font's to your 317 client, including "0" and "O" differences 
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    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. ]
    Reply With Quote  
     

  2. #2  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    Simply amazing. Very nice.

    I'll be sure to use this.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    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!


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Quote Originally Posted by Stewart View Post
    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. ]
    Reply With Quote  
     

  5. #5  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by Zee best View Post
    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. ]
    Reply With Quote  
     

  6. #6  
    F*ck the rest join the best, WoR

    sigex's Avatar
    Join Date
    Mar 2008
    Age
    31
    Posts
    2,088
    Thanks given
    122
    Thanks received
    146
    Rep Power
    690
    nice don't really get it though to drunk to read the hole thing


    The wor has begun.

    Reply With Quote  
     

  7. #7  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Quote Originally Posted by sigex View Post
    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. ]
    Reply With Quote  
     

  8. #8  
    GinGee
    Guest
    nice for awsome
    Reply With Quote  
     

  9. #9  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    Awsome Zee, does this update the hit bubble 0s?

    EDIT: Yay it does, thanks alot!



    Reply With Quote  
     

  10. #10  
    Squidward
    Guest
    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 !
    Reply With Quote  
     

Page 1 of 7 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •