Results 1 to 7 of 7
  1. #1
    matypatty's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    866
    Reputation
    229
    Thanks
    2,693
    My Mood
    Amused

    Cool Alternate text rendering method with custom font.

    Not 100% sure this will work but I don't see why not.

    Pros:
    -Less addresses than regular engine font.
    -Use your own dtx font. (wow custom fonts yay)
    -It's just fucking awesome.

    Cons:
    -Not using this is the only con.

    All the following info is for the current patch of CANA.

    Code:
    g_ITexInterface = 0x7C4B50
    g_IFontManager = 0x7C4B4C
    g_ITexInterface + 0x8 = g_ITexInterface->CreateTextureFromName()
    g_IFontManager + 0x20 = g_IFontManager->CreateFont()
    
    m_Font + 0x58 = SetDefCharWidth()
    m_Font + 0x5C = SetDefCharHeight()
    
    
    m_Font + 0x70 = SetDefColor()
    m_Font + 0x78 = DrawString()
    Example:
    Code:
    CUIFont*	m_Font;
    SharedTexture*	m_Tex;
    ILTFontManager*  g_IFontManager;
    ILTTexInterface* g_ITexInterface;
    
    void DrawText(float x, float y, char* text)
    {
    if(m_Font)
    {
    if (g_IFontManager && g_ITexInterface) 
    {
    g_ITexInterface->CreateTextureFromName(m_Tex,"console\\console_font.dtx");
    if(m_Tex)
    {
    m_Font = g_IFontManager->CreateFont(m_Tex,9,9);
    m_Font->SetDefCharWidth(7);
    m_Font->SetDefCharHeight(9); 
    }
    else
    {
    m_Font->SetDefColor(textColor);
    m_Font->DrawString((float)10,(float)10,"wow ty based matt"); 
    }
    }
    }
    }
    All the missing shit should be in the attached sdk files.


    VirusTotal
    Jotti
    <b>Downloadable Files</b> Downloadable Files
    Last edited by maddoggy00; 04-11-2014 at 07:04 PM. Reason: VS

  2. The Following 5 Users Say Thank You to matypatty For This Useful Post:

    Dylancool16 (04-14-2014),gibam761 (04-11-2014),pDevice (01-07-2015),Timboy67678 (04-11-2014),topblast (05-01-2014)

  3. #2
    diegosarria12's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Min ser o incrível Hulk
    Posts
    326
    Reputation
    10
    Thanks
    689
    My Mood
    Cheerful
    Good job friend

    @maddoggy00
    @Flengo

  4. #3
    maddoggy00's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Philly
    Posts
    3,414
    Reputation
    637
    Thanks
    5,324
    Approved .

    As of 9/17, I will be away for a few days due to medical reasons. Should be back up soon. Please refer to a GM or other mods in whatever particular section you need help with.



    Quote Originally Posted by Nico View Post
    I'm playing legit with my hacks
    MSN/Email/Skype: maddoggy00@aol.com
    If you add me on skype without an explicit message stating who you are on MPGH, you will be denied and blocked.

    Feel free to donate if I helped you earn some $$

    Tutorials for consoles and hacks

    Woo.exe Oath Mode with Next Map option, Follow-Bot, Master map (runs any S1 map), Two Moons, Mining. Requires a .dll with hacks for full functionality.

  5. #4
    ZysorceN's Avatar
    Join Date
    Aug 2012
    Gender
    female
    Location
    California
    Posts
    68
    Reputation
    10
    Thanks
    912
    My Mood
    Aggressive
    muchos thanks friend

  6. The Following User Says Thank You to ZysorceN For This Useful Post:

    matypatty (04-12-2014)

  7. #5
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,064
    Reputation
    323
    Thanks
    3,394
    My Mood
    Doh
    you could expand this with the rez bypass Jeff made. Load your own modified console_font.dtx from the Mods folder... if i'm looking at this right anyway

    commando: You're probably the best non-coder coder I know LOL


  8. #6
    Timboy67678's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    85
    Reputation
    25
    Thanks
    80
    My Mood
    Aggressive
    Quote Originally Posted by supercarz1991 View Post
    you could expand this with the rez bypass Jeff made. Load your own modified console_font.dtx from the Mods folder... if i'm looking at this right anyway
    you mean the rez bypass matypatty and jeff both worked on right?

  9. #7
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,064
    Reputation
    323
    Thanks
    3,394
    My Mood
    Doh
    Quote Originally Posted by Timboy67678 View Post
    you mean the rez bypass matypatty and jeff both worked on right?
    the way jeff is doing it now is different than that one, that one no longer worked

    commando: You're probably the best non-coder coder I know LOL


Similar Threads

  1. Gitorla presents: cx4 storm to g3 with custom plates
    By Gitorla in forum Combat Arms Mods & Rez Modding
    Replies: 31
    Last Post: 07-15-2010, 01:34 AM
  2. Nexon fails with customer support....
    By sakone54 in forum Combat Arms Discussions
    Replies: 12
    Last Post: 07-08-2010, 07:38 PM
  3. [Request]Ak-47 to Ak-103 with custom skin
    By halo2fan120 in forum Combat Arms Mod Request
    Replies: 3
    Last Post: 06-04-2010, 09:33 AM
  4. [RELEASE] L96A1 to L115A2 with Custom Textures
    By InCognito in forum Combat Arms Mods & Rez Modding
    Replies: 11
    Last Post: 04-11-2010, 03:39 PM
  5. [REQUESTTUT]Text to Phone with attachment
    By Pixie in forum Visual Basic Programming
    Replies: 7
    Last Post: 03-01-2010, 06:34 AM