2 questions after new patch

axamdeepaxamdeep Shanghai, China Join Date: 2010-07-02 Member: 72226Members, Squad Five Blue
edited March 2012 in NS2 General Discussion
<div class="IPBDescription">1. fonts 2.say messages</div>After the game update to build 200, my in-game frames improving to about 60 apparently, so i can shoot at last. this is a great update.
but something that follows.

1. the fonts has changed. as shown here, it's the default font of simplified chinese windows OS. that's a font for displaying chinese characters so the english characters in this font is not beautiful to look at, quite without sense of Sci-fi.
<img src="http://images.cjb.net/be32b.jpg" border="0" class="linked-image" />
<img src="http://images.cjb.net/c0e11.jpg" border="0" class="linked-image" />

anybody could tell me how to change the in-game display fonts, i want to change it to Arial, Tahoma or something else.

2.cannot type chinese characters at say messages, as shown here.
<img src="http://images.cjb.net/20afe.jpg" border="0" class="linked-image" />

you can see, in build 199, the chinese characters could be shown.
in build 200, it become garbled codes.

i perfer beta build 199 because we can communicate easily in the game by typing.
is this problem could be fix at next beta build?

Comments

  • Salraine_ChiSalraine_Chi Join Date: 2011-07-03 Member: 107669Members, Reinforced - Shadow
    I am in England and my text/font has gone like this also. I noticed you are using the menu mod as I am so this could be the cause. If you start the game without the menu mod the text should look ok again but the gun ammo counter still looks as in your second picture. Preferred the one from 199. This could be linked to the GUI scale change mentioned in the change log.

    Sal
  • axamdeepaxamdeep Shanghai, China Join Date: 2010-07-02 Member: 72226Members, Squad Five Blue
    <!--quoteo(post=1914336:date=Mar 18 2012, 01:52 AM:name=Salraine_Chi)--><div class='quotetop'>QUOTE (Salraine_Chi @ Mar 18 2012, 01:52 AM) <a href="index.php?act=findpost&pid=1914336"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I am in England and my text/font has gone like this also. I noticed you are using the menu mod as I am so this could be the cause. If you start the game without the menu mod the text should look ok again but the gun ammo counter still looks as in your second picture. Preferred the one from 199. This could be linked to the GUI scale change mentioned in the change log.

    Sal<!--QuoteEnd--></div><!--QuoteEEnd-->
    A friend of mine never use menu mod, he got the same ugly fonts, too.
    i think this is not menu mod's problem.
  • TechercizerTechercizer 7th Player Join Date: 2011-06-11 Member: 103832Members
    I'm not running any mods, and my text has also changed. I prefer the old one, personally.
  • Salraine_ChiSalraine_Chi Join Date: 2011-07-03 Member: 107669Members, Reinforced - Shadow
    Strange. I have just jumped on a couple of servers with and without the mod and there seems little difference to me without the mod but with the mod, a lot of the text is smaller and harder to read. I will keep using the menu mod though as being able to set a quick switch key and being able to easily turn on/off AA and bloom etc is more important to me.

    Sal
  • TechercizerTechercizer 7th Player Join Date: 2011-06-11 Member: 103832Members
    While we're on the subject, my text seems way too large for my resolution.
  • NominousNominous Baltimore, MD Join Date: 2012-02-18 Member: 146518Members
    edited March 2012
    @OP: I've tested this and a fix would be to change your System Locale settings from Chinese to English (United States) in order to view the right fonts. This may affect your other non-Unicode programs, however. In order to do this, go to Control Panel > Region and Language > Administrative, then click "Change system locale...".

    To test this, I tried changing my System Locale from English (United States) to Chinese (Simplified, PRC):

    Original:
    <img src="http://i.imgur.com/vQvB8.jpg" border="0" class="linked-image" />

    Different Locale:
    <img src="http://i.imgur.com/B9kp1.jpg" border="0" class="linked-image" />

    I'll try to see if there's a way to change fonts through any lua files without having to change the System Locale. <strike>Does anyone remember the name of the previous font in b199, though?</strike> Nvm, it's Microgramma. Now to find where to reimplement it, if possible. D:
  • axamdeepaxamdeep Shanghai, China Join Date: 2010-07-02 Member: 72226Members, Squad Five Blue
    wow nice try bro, i have tried to edit ns2\lua\menu\font.lua line 19, not working, maybe it's not the right place.
    hope you get the right way.
  • NominousNominous Baltimore, MD Join Date: 2012-02-18 Member: 146518Members
    edited March 2012
    <!--quoteo(post=1914377:date=Mar 17 2012, 04:27 PM:name=axamdeep)--><div class='quotetop'>QUOTE (axamdeep @ Mar 17 2012, 04:27 PM) <a href="index.php?act=findpost&pid=1914377"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->wow nice try bro, i have tried to edit ns2\lua\menu\font.lua line 19, not working, maybe it's not the right place.
    hope you get the right way.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Yeah, I have no programming knowledge at all, so I can't easily figure out why this is happening. It's most likely a bug, though. I've reported a slightly <a href="https://getsatisfaction.com/unknownworlds/topics/marine_ammo_counter_font_bug" target="_blank">different bug</a> to the devs, so you could make a new one about this specific issue. :)
  • rhombusrhombus Lerk Queen Join Date: 2011-06-23 Member: 106055Members, Constellation, Squad Five Blue
    Everything having to do with the HUD and main menu are place holders. There were a few things that were implemented that also changed the font in the process. This will be fixed when the HUD is updated/released.
  • fsfodfsfod uk Join Date: 2004-04-09 Member: 27810Members, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    <!--quoteo(post=1914377:date=Mar 17 2012, 08:27 PM:name=axamdeep)--><div class='quotetop'>QUOTE (axamdeep @ Mar 17 2012, 08:27 PM) <a href="index.php?act=findpost&pid=1914377"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->wow nice try bro, i have tried to edit ns2\lua\menu\font.lua line 19, not working, maybe it's not the right place.
    hope you get the right way.<!--QuoteEnd--></div><!--QuoteEEnd-->
    If you mean my mod its Mods\GUIMainMenu\ClassicMenu.lua line 25 you would have to add
    text:SetFontName("FONTNAMEHERE")

    but SetFontName seems tobe totally broken

    If you want to just change/translate all the menu link labels of my mod to your native language you can use this autoexec script as base
    it needs tobe saved to autoexec\menulinks_premenu.lua
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->MainMenuConnectedLinks = {
      {"Return to game", function()
        if(Client.GetIsConnected()) then
              MainMenu_ReturnToGame()
            end
      end},

      {"Disconnect", function()  Shared.ConsoleCommand("disconnect") end},
    }

    MainMenuLinks = {

      {"Server Browser", function() GUIMenuManager:ShowPage("ServerBrowser") end},

      {"Create Listen Server", function() GUIMenuManager:ShowPage("CreateServer") end},

      {"Options", function() GUIMenuManager:ShowPage("MainOptions") end},
      
      {"Keybinds", function() GUIMenuManager:ShowPage("Keybinds") end},

      {"Mods", function() GUIMenuManager:ShowPage("Mods") end},

      {"Exit", function() Client.Exit() end},
    }<!--c2--></div><!--ec2-->
  • axamdeepaxamdeep Shanghai, China Join Date: 2010-07-02 Member: 72226Members, Squad Five Blue
    <!--quoteo(post=1914645:date=Mar 19 2012, 01:52 AM:name=fsfod)--><div class='quotetop'>QUOTE (fsfod @ Mar 19 2012, 01:52 AM) <a href="index.php?act=findpost&pid=1914645"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If you mean my mod its Mods\GUIMainMenu\ClassicMenu.lua line 25 you would have to add
    text:SetFontName("FONTNAMEHERE")

    but SetFontName seems tobe totally broken

    If you want to just change/translate all the menu link labels of my mod to your native language you can use this autoexec script as base
    it needs tobe saved to autoexec\menulinks_premenu.lua
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->MainMenuConnectedLinks = {
      {"Return to game", function()
        if(Client.GetIsConnected()) then
              MainMenu_ReturnToGame()
            end
      end},

      {"Disconnect", function()  Shared.ConsoleCommand("disconnect") end},
    }

    MainMenuLinks = {

      {"Server Browser", function() GUIMenuManager:ShowPage("ServerBrowser") end},

      {"Create Listen Server", function() GUIMenuManager:ShowPage("CreateServer") end},

      {"Options", function() GUIMenuManager:ShowPage("MainOptions") end},
      
      {"Keybinds", function() GUIMenuManager:ShowPage("Keybinds") end},

      {"Mods", function() GUIMenuManager:ShowPage("Mods") end},

      {"Exit", function() Client.Exit() end},
    }<!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd-->

    thank you very much, i'll try it
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    We are still working on some font rendering issues (the change on the rifle display and the other fonts you posted is a bug which we weren't able to fix in time for the patch).

    These changes are caused by us switching from a TrueType based font system to a bitmap based one where we pre-generate bitmaps containing all of the characters. This is necessary due to the cost of font licensing. Distributing the fonts we want to use in game in TrueType format would cost tens of thousands of dollars, which we can't afford.

    We will be working on supporting non-Latin character sets.
Sign In or Register to comment.