Results 1 to 14 of 14
  1. #1
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive

    font for any language

    hi

    I've defined a language for games
    i edit the "gamefonts_pc.iwi" for my language

    now require to GSC code for using in game

    plz give me source of font.gsc for create font.

  2. #2
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    hudsmall
    hudbig
    objective

    thats all i could think of off the top of head

  3. #3
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive
    I know

    hudsmall
    hudbig
    objective
    and more....

    all font above using of gamefonts_pc.iwi
    but i edit gamefonts_pc.iwi and i've use of this

    now i need to font.gsc(or any GSC ) for edit it for other language(persian or arabic or ...)

    can you know i mean !?!

  4. #4
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    I'm not sure what you mean...
    Other players won't be able to see it anyways.
    (unless they have the file)

  5. #5
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    Quote Originally Posted by EpicPlayer View Post
    I'm not sure what you mean...
    Other players won't be able to see it anyways.
    (unless they have the file)
    @EpicPlayer me either this guy is confusing

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

    EpicPlayer (09-13-2011)

  7. #6
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive
    TNX EpicPlayer ؛ I know

    baw
    source code for create font in game
    also

    i found a GSC for this project
    but not sure right and
    also what i use it

    Code:
    static const char *g_he_font[] =
    {
    	"default",		// HE_FONT_DEFAULT
    	"bigfixed",		// HE_FONT_BIGFIXED
    	"smallfixed",	// HE_FONT_SMALLFIXED
    	"objective",	// HE_FONT_OBJECTIVE
    };
    
    
    // These values correspond to the defines in q_shared.h
    static const char *g_he_alignx[] =
    {
    	"left",   // HE_ALIGN_LEFT
    	"center", // HE_ALIGN_CENTER
    	"right",  // HE_ALIGN_RIGHT
    };
    
    
    static const char *g_he_aligny[] =
    {
    	"top",    // HE_ALIGN_TOP
    	"middle", // HE_ALIGN_MIDDLE
    	"bottom", // HE_ALIGN_BOTTOM
    };
    
    
    // These values correspond to the defines in menudefinition.h
    static const char *g_he_horzalign[] =
    {
    	"subleft",			// HORIZONTAL_ALIGN_SUBLEFT
    	"left",				// HORIZONTAL_ALIGN_LEFT
    	"center",			// HORIZONTAL_ALIGN_CENTER
    	"right",			// HORIZONTAL_ALIGN_RIGHT
    	"fullscreen",		// HORIZONTAL_ALIGN_FULLSCREEN
    	"noscale",			// HORIZONTAL_ALIGN_NOSCALE
    	"alignto640",		// HORIZONTAL_ALIGN_TO640
    	"center_safearea",	// HORIZONTAL_ALIGN_CENTER_SAFEAREA
    };
    cassert( ARRAY_COUNT( g_he_horzalign ) == HORIZONTAL_ALIGN_MAX + 1 );
    
    
    static const char *g_he_vertalign[] =
    {
    	"subtop",			// VERTICAL_ALIGN_SUBTOP
    	"top",				// VERTICAL_ALIGN_TOP
    	"middle",			// VERTICAL_ALIGN_CENTER
    	"bottom",			// VERTICAL_ALIGN_BOTTOM
    	"fullscreen",		// VERTICAL_ALIGN_FULLSCREEN
    	"noscale",			// VERTICAL_ALIGN_NOSCALE
    	"alignto480",		// VERTICAL_ALIGN_TO480
    	"center_safearea",	// VERTICAL_ALIGN_CENTER_SAFEAREA
    };
    cassert( ARRAY_COUNT( g_he_vertalign ) == VERTICAL_ALIGN_MAX + 1 );
    
    
    init()
    {
    	level.uiParent = spawnstruct();
    	level.uiParent.horzAlign = "left";
    	level.uiParent.vertAlign = "top";
    	level.uiParent.alignX = "left";
    	level.uiParent.alignY = "top";
    	level.uiParent.x = 0;
    	level.uiParent.y = 0;
    	level.uiParent.width = 0;
    	level.uiParent.height = 0;
    	level.uiParent.children = [];
    	
    	if ( level.console )
    		level.fontHeight = 12;
    	else
    		level.fontHeight = 12;
    }
    And

    Code:
    /*
    =============
    ///ScriptDocBegin
    "Name: createFontString( <font>, <fontScale> )"
    "Summary: Creates a hud element for font purposes"
    "Module: Hud"
    "MandatoryArg: <font>: Apparently this is always set to default."
    "MandatoryArg: <fontScale>: The scale you want."
    "Example: level.hintElem = createFontString( "default", 2.0 );"
    "SPMP: singleplayer"
    ///ScriptDocEnd
    =============
    */
    
    createFontString( font, fontScale )
    {
    	fontElem = newHudElem( self );
    	fontElem.elemType = "font";
    	fontElem.font = font;
    	fontElem.fontscale = fontScale;
    	fontElem.x = 0;
    	fontElem.y = 0;
    	fontElem.width = 0;
    	fontElem.height = int(level.fontHeight * fontScale);
    	fontElem.xOffset = 0;
    	fontElem.yOffset = 0;
    	fontElem.children = [];
    	fontElem setParent( level.uiParent );
    	
    	return fontElem;
    }
    
    
    createServerFontString( font, fontScale )
    {
    	fontElem = newHudElem( self );
    	fontElem.elemType = "font";
    	fontElem.font = font;
    	fontElem.fontscale = fontScale;
    	fontElem.x = 0;
    	fontElem.y = 0;
    	fontElem.width = 0;
    	fontElem.height = int(level.fontHeight * fontScale);
    	fontElem.xOffset = 0;
    	fontElem.yOffset = 0;
    	fontElem.children = [];
    	fontElem setParent( level.uiParent );
    	
    	return fontElem;
    }
    Last edited by mohammadhosin; 09-13-2011 at 03:04 AM.

  8. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,309
    My Mood
    Breezy
    I don't think creating your own fonts will work for MW2 since we don't have any mod tools but I'm not sure.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  9. The Following User Says Thank You to master131 For This Useful Post:

    EpicPlayer (09-15-2011)

  10. #8
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,537
    My Mood
    Angelic
    Ah, you mean create your own letter type. K.
    Well, it would be a massive work I suppose.
    Make line for line....
    10-20 lines for 1 letter.

    or, it might be possible to texture edit it. Won't say for sure but...

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  11. #9
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive
    Let me say this way

    i want when press (for example) "H" in game view

    or when me typing "Hello" in game view

    in other word; with press "H" load imag" س.iwi" and ...

    Of course
    i add "س.iwi" in image fastfile in "iw_01.iwd"

    "persian language"

  12. #10
    myoldaccountissgtbighacks's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    My Mood
    Happy
    i think for different languages u would need different versions of the game

  13. #11
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    You need some other language files to do that. And as far as i know there aren't any Arabian language files...

    Maybe you can change the font file but does anyone a a .ttf to .iwi converter?


    The lines in my Steam are i's

  14. #12
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    I remember playing once a mod that had plenty russian words in HUD, btw, try this 2 shaders, they look arabian,

    Code:
    decode_characters
    decode_characters_glow

  15. #13
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    Not sure if this is right, But make a new iwd font file. Name it the same as the one you want to change. And drag and drop it in. Or something..

  16. The Following User Says Thank You to cgallagher21 For This Useful Post:

    mohammadhosin (09-26-2011)

  17. #14
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive
    TNX cgallagher21

    but you proposed for this code?

Similar Threads

  1. trading lvl 83 runescape acc for any level guardian on aq
    By dragonftw in forum BattleOn Games Hacks, Cheats & Trainers
    Replies: 8
    Last Post: 02-17-2009, 03:34 AM
  2. trading lvl 79 runescape account for any lvl guardian account on aq
    By fobii3 in forum BattleOn Games Hacks, Cheats & Trainers
    Replies: 8
    Last Post: 01-23-2009, 09:16 AM
  3. trading gunz accs for any level battleon gardian acc
    By dragonftw in forum BattleOn Games Hacks, Cheats & Trainers
    Replies: 0
    Last Post: 07-25-2007, 07:16 PM
  4. lvl 18 AQ ACC looking for any offer
    By bobowham in forum Trade Accounts/Keys/Items
    Replies: 7
    Last Post: 06-11-2007, 08:13 AM