SC4 Devotion Forum Archives

SC4Evermore International => Japan, so far, so near -- 遠いようで近い国、日本 => Topic started by: ebina on October 05, 2008, 05:55:31 AM

Title: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: ebina on October 05, 2008, 05:55:31 AM
This is a tutorial for members who want to see Japanese lot names/descriptions in your game instead of blank space.
This time I have used English version of SimCityLocale.dat included in the Left To Right Hand Driving Switch (http://www.simtropolis.com/modding/index.cfm?p=details&id=283), to change the game's behavior to the same as English version. Registry value is set to US English.
I have chosen one of SOMY's lots as an example. I'm not trying to blame him and his creations for blank text since it is not his fault.

Tutorial Start:


First of all, please check whether you have necessary font file or not, for I don't know whether overseas versions contain the same font files as Japanese version. Go to where you installed SC4 and open the Fonts folder. Required font files are HG-Gothic.mxf*1 and HG-Gothic (Bold).mxf*1.

Fonts available in Japanese version:
Arial MT (Bold Italic).mxf
Arial MT (Bold).mxf
Arial MT (Italic).mxf
Arial MT.mxf
Arta (Italic).mxf
Arta.mxf
CordiaUPC (Bold).mxf
CordiaUPC.mxf
Courier LD (Bold Italic).mxf
Courier LD (Bold).mxf
Courier LD (Italic).mxf
Courier LD.mxf
HG-Gothic (Bold).mxf
HG-Gothic.mxf
Hy Round Gothic (bold).mxf
Hy Round Gothic.mxf
MHei B5 (Bold).mxf
MHei GB (Bold).mxf
Stoclet ITC TT (Bold).mxf


Next, you need to edit an INI file manually. In the Reader, open the simcity_1.dat*2 and find an INI file with this TGI.
00000000 / 4A87BFE8 / 2A87BFFC
Right click on it and select Copy file(s). Then paste it to blank dat.

Codes used in edited lines are in the INI file included in Japanese version of SimCityLocale.dat.

To edit INI, click "Edit" button located at the top of right pane. First, find Generic Panel and Dialog fonts section and edit GenHeader line. GenHeader line defines top of lot query dialog where the name of lot appears.

GenHeader     = "StocletITC TT",    "18",  "bold|aa=bg|linespacing=2|xscale=1.2|xadvancescale=0.99",      0x4a809916
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg231.imageshack.us%2Fimg231%2F1638%2Flotquerybadtq4.jpg&hash=792367c0693856fae8d4cf954e93ab6acf2489cf)

GenHeader        = "HG-Gothic",   "14",   "bold|aa=bg|linespacing=2",   0x4a809916
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg366.imageshack.us%2Fimg366%2F3803%2Flotquerygoodvt0.jpg&hash=5b2b0b0a97b9e43a7759ab8c73b97c4c31144a2f)

You'll notice that other headers(Monthly Budget, Graphs, etc) are changed as well.

Second, find another section named Fonts used for Widgets:, and edit ToolTip and ToolTipTitle. ToolTipTitle defines lot name in the menu, ToolTip defines lot description.

ToolTip       = "Arta",          "13",   "italic|aa=bg|linespacing=2|xscale=0.95|xadvancescale=0.99",     0xa85f1a83
ToolTipTitle  = "StocletITC TT", "14",   "bold|aa=bg|linespacing=2|xscale=1.2|xadvancescale=0.99",       0xe9c86c9d
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg404.imageshack.us%2Fimg404%2F4922%2Fmenudescbadmh1.jpg&hash=8d7440d0838f67e23ad77070ac8b7c73054ece5a)

ToolTip          = "HG-Gothic",    "13",   "aa=bg|linespacing=2",           0xa85f1a83
ToolTipTitle     = "HG-Gothic",    "14",   "bold|aa=bg|linespacing=2",    0xe9c86c9d
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg224.imageshack.us%2Fimg224%2F3351%2Fmenudescgoodrv2.jpg&hash=b2e2611cf1713e0c732c8fe62b5130b5b3ee4bd2)

These may change other places like GenHeader line.

After editing INI, don't forget to click "Apply" button. Otherwise you will lose your modification. Finally save .dat file and copy it to Plugins.

*1 - Font files used to display Japanese texts may not include characters of your language. Your language might not be displayed in game correctly with INI that specifies different fonts from original settings. So you should use modified INI only to display Japanese lot names and descriptions when you need to check what the lot is.
*2 - Before opening SimCity_1.dat, it would be better to open your language version of SimCityLocale.dat first as it may include optimal INI for your language. If you found it, you should edit that INI rather than one in SimCity_1.dat.



What mentioned in this tutorial have been included to attached INI file. Simply copy it to Plugins. If you could try this method, please show me what happened in your game.

Edit:
January 10, 2009 - Added a few notes, and replaced a list of fonts with text based version.
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: JoeST on October 05, 2008, 07:54:41 AM
Hey Ebina, thanks very much :) thats an ace fix, I will be sure to do it if ever I go back to windows :D

Though I think this should be coppied/moved to the Tutorials section also :)
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: Andreas on October 05, 2008, 08:46:19 AM
This is a very interesting finding, ebina. :) Does anyone remember that the vanilla version of SimCity had smaller UI text than Rush Hour? This was a lot better because longer lot names still were displayed properly in the UI windows. Maybe we can get this feature by editing that INI file as well.

SC4 Vanilla UI font:

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg114.imageshack.us%2Fimg114%2F7222%2Fbacksteinwohnhaus2ky1.jpg&hash=131bc84e993a168ede704deef27b26827d613e29) (http://imageshack.us)


SC4 Rush Hour UI font:

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg394.imageshack.us%2Fimg394%2F8770%2Fbacksteinwohnhauswr2.jpg&hash=dde3735d8a1e84579510fd2e4e31ba9ae0aaee13) (http://imageshack.us)
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: wouanagaine on October 08, 2008, 11:32:13 PM
Very usefull ! Stickied
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: heeyudong on October 11, 2008, 01:07:03 AM
Hi Everyone,

What software and methods do I have to use to open the .DAT and find the .INI file? I don't really know much about computers, sorry for the trouble...

皆さん、

私はコンピュータを使うことはあんまり知りませんから、.DATファイルを開けて.INIファイルを探しての方法を教えて貰いませんか? お手伝いにありがとうございます。
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: vester on October 11, 2008, 03:48:22 AM
The dat can be open in the iLive reader, which can be found in Simtropolis' Modds & Downloads / Modding Files (http://www.simtropolis.com/modding/index.cfm?page=1&view=all)
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: heeyudong on October 11, 2008, 05:21:49 AM
Thank you very much!  :thumbsup:
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: RippleJet on October 11, 2008, 05:37:13 AM
iLive's Reader is available on the LEX as well. ;)
http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=656
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: Vegantor on June 18, 2009, 04:11:44 AM
i cannot find th TGI
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: ebina on June 19, 2009, 02:35:11 AM
Quote from: Vegantor on June 18, 2009, 04:11:44 AM
i cannot find th TGI
Could you try this? After opening the SimCity_1.dat in the Reader click the "Filters" button on tool bar (Or "Tools > Filter" from menu bar).

In the "Filters" dialog, click "Uncheck all" and recheck only "Ini" like the image below, afterwards click "Refresh".
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg190.imageshack.us%2Fimg190%2F2271%2Freaderfiltersinionly.gif&hash=d895cafc76aa72e7d184b4682ef8e357611bf973)

In the left pane only INI files should be displayed. You would be able to find needed INI easily.
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: Vegantor on June 20, 2009, 06:06:27 AM
Thanks a lot mates
Title: Re: Displaying Japanese Lot Name and Description in Other Language Versions
Post by: lotherius on January 16, 2013, 08:30:50 PM
Thanks very much! I'm going to play with this to change some other fonts as well..