<a href="http://www.game-advertising-online.com/" target="_blank">Game Advertising Online</a><br /> banner requires iframes
Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: Shogun 2 "Language" and "Encyclopedia" files

  1. #1
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Shogun 2 "Language" and "Encyclopedia" files

    Shogun 2 Language files

    This original post from just inspired me to make this thread, because I was checking the language files yesterday too. Thanks a lot and +rep to just for his informations.

    The language files can be found here:

    C:\Program Files\Steam\steamapps\common\total war shogun 2 demo\data

    The file "local_en.pack" contains lots of individual *.loc's in the "text\db" folder. Basically all "basic strings" have now an individual table. The file "local_en_patch.pack" contains tables which overwrite the tables in the "local_en.pack".

    It is now possible to include an own "custom_localisation.loc" file that will be added to the internal DB. In Empire and Napoleon could be only one "loc" file at the same time in the "data" directory.

    I downloaded the English, German, French, Spanish, Italian, Russian, Polish and Czech language files.

    The strange thing is the following:

    Only the English loc file structure is like that. All other languages than English use the same loc file structure like in ETW/NTW. There is only the "localisation.loc" in these languages. There aren't any individual loc tables like in the English version.

    If you change your language in the Steam options then these files below will be re-downloaded and installed.

    The "*" determines the language like en, ge, fr, sp.

    local_*.pack (release version of the language tables)
    local_*_patch.pack (this file will be updated with further language fixes)

    Please use the latest Pack File Manager to open these files.


    I released the UPC-SHO to include and combine custom mod strings and add "vanilla text fixes". I saw several little text errors in the meantime.

    Please report any vanilla text errors that you find and I will include these fixes.

    Unit Pack Compatibility Project - Shogun (UPC-SHO)


    Shogun 2
    Encyclopedia files

    The encyclopedia files can be found here:

    C:\Program Files\Steam\steamapps\common\total war shogun 2 demo\data\encyclopedia

    This folder contains lots of ".html" files that represent the whole in-game information of the encyclopedia.

    This new "html" based system is very useful to create customized descriptions for mods like I did it in my AUM-SHO.

    > If you remove/rename this folder, then the in-game browser shows a blank window.

    > If you change your language in the Steam options then complete "encyclopedia" folder will be re-downloaded.

    > It is possible to browse through these files with your Internet Browser without starting Shogun 2.

    > If you edit the content of the ".html" files, then it only appears to the in-game encyclopedia. If you change the "stats values" in the ".html" file it doesn't update the internal "real" db values. The in-game encyclopedia is fully independent and doesn't recognize the changed db table values of mods automatically.

    Cheers
    Swiss Halberdier

  2. #2
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    reserved
    Last edited by Swiss Halberdier; February 25, 2011 at 11:03 PM.

  3. #3
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    reserved
    Last edited by Swiss Halberdier; February 25, 2011 at 11:03 PM.

  4. #4
    Supai
    Join Date
    Feb 2009
    Posts
    305

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    The exe/dll indicates it looks for .loc files in the following places in the virtual file system (i.e. in pack files and whatever is in the data folder):
    text/db/*.loc
    text/startpos_*.loc

    (* means any text)

  5. #5
    Dynamo11's Avatar Kei kihei
    Join Date
    Mar 2009
    Location
    England
    Posts
    1,968

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    So for a Shogun2 UPC can people still submit their .locs to you and you just add them to the directory without adding any entries to the vanilla .loc? That sounds like it saves alot of time for you (and trust me I know how frustrating messing about with .tsv files can be!)


  6. #6
    Supai
    Join Date
    Feb 2009
    Posts
    305

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    People can submit stuff to him, but Shogun 2 doesn't need a UPC, it works fine without, modders can simply add a .loc file for their strings to their own mod.

  7. #7
    GasMask's Avatar Jū kihei
    Join Date
    May 2009
    Location
    England
    Posts
    8,038

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    AH i see now ! this has helped me understand many things thanks !

  8. #8
    Black Fox's Avatar Ishiyumi no shashu
    Join Date
    Oct 2007
    Posts
    724

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    so how can I fix this blacked out encyclopedia problem? It was working fine before then I put mods in the data folder and it wont work

  9. #9
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Quote Originally Posted by just View Post
    The exe/dll indicates it looks for .loc files in the following places in the virtual file system (i.e. in pack files and whatever is in the data folder):
    text/db/*.loc
    text/startpos_*.loc
    (* means any text)
    Thanks again a lot for your useful informations!

    Quote Originally Posted by ♔MASK OF GAS♔ View Post
    AH i see now ! this has helped me understand many things thanks !
    Thanks!

    Quote Originally Posted by Dynamo11 View Post
    So for a Shogun2 UPC can people still submit their .locs to you and you just add them to the directory without adding any entries to the vanilla .loc? That sounds like it saves alot of time for you (and trust me I know how frustrating messing about with .tsv files can be!)
    Quote Originally Posted by just View Post
    People can submit stuff to him, but Shogun 2 doesn't need a UPC, it works fine without, modders can simply add a .loc file for their strings to their own mod.
    Yes all can submit their loc files to me and I will include it into the UPC. Yes I could include the loc file from a modder as a separate table that all is structured. All modders are allowed to use my UPC for their work as a base file and profit from the "vanilla text fixes".

    Quote Originally Posted by Black Fox View Post
    so how can I fix this blacked out encyclopedia problem? It was working fine before then I put mods in the data folder and it wont work
    At the moment no mod really adds or changes anything in the "encyclopedia" files.

    Please try the following:
    >
    Open Steam > click on "my games" > right-click on Shogun 2 > left-click on "properties" > then look for the "Local files" tab > "Verify the integrity of the game cache"

    There you can re-check the "integrity of your Shogun" files. It takes some time, but after updating you have again all proper vanilla files.
    Last edited by Swiss Halberdier; February 26, 2011 at 04:58 PM.

  10. #10
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    If you remove/rename this folder below, then the in-game browser shows a blank window.

    C:\Program Files\Steam\steamapps\common\total war shogun 2 demo\data\encyclopedia

  11. #11
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    If you change your language in the Steam options then these files below will be re-downloaded and installed.

    The "*" determines the language like en, ge, fr, sp.

    local_*.pack (release version of the language tables)
    local_*_patch.pack (this file will be updated with further language fixes)

    The complete "encyclopedia" folder will be re-downloaded too.

    C:\Program Files\Steam\steamapps\common\total war shogun 2 demo\data\encyclopedia

  12. #12
    Edorn's Avatar Ikko-Ikki
    Join Date
    Mar 2011
    Location
    Hungary
    Posts
    13

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    How could I localise the shogun 2?

    Where could I find the text of dialog/message/etc in the game? With wich program could I edit these files? I would like to translate this game to hungarian.
    (I found the "Shogun 2 Encyclopedia". And I started it translate...)
    Thank you for any help...

  13. #13
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Quote Originally Posted by Edorn View Post
    How could I localise the shogun 2?
    Where could I find the text of dialog/message/etc in the game? With wich program could I edit these files? I would like to translate this game to hungarian.
    (I found the "Shogun 2 Encyclopedia". And I started it translate...)
    Thank you for any help...
    Hello Edorn, you need the latest Pack File Manager.

    These files below contain the *.loc language files and there you can change the in-game texts (all things that are not related to the encyclopedia files).

    The *.loc files are located in the "text" folder.

    local_*.pack (release version of the language tables)
    local_*_patch.pack (this file has been updated today by the new patch)

    If you edit the content of the ".html" files, then it only appears to the in-game encyclopedia. If you change the "stats values" in the ".html" file it doesn't update the internal "real" db values. The in-game encyclopedia is fully independent and doesn't recognize the changed db table values of mods automatically.

  14. #14
    Edorn's Avatar Ikko-Ikki
    Join Date
    Mar 2011
    Location
    Hungary
    Posts
    13

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Thank you!

  15. #15
    Murakawa
    Join Date
    Apr 2011
    Posts
    2

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    I tried to edit the .loc language files with unicode characters and it didnt work. How to fix it, plz help !!!

  16. #16
    Murakawa
    Join Date
    Apr 2011
    Posts
    1

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    i dowloaded Shogun2 total war...bit it is russian version...can i change language to english...and how..? :S

  17. #17
    Dogmeat's Avatar Shuei
    Join Date
    Mar 2009
    Posts
    1,663

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Nice Tutorial Swiss.

    Maybe a dumb question but do the loc files still need to be packed in media format - like i think it had to be for ETW and NTW

    Ive got loc changes working for myself but only in movie format - just though id ask the loc.pack guru....

  18. #18
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Quote Originally Posted by hoangbon View Post
    I tried to edit the .loc language files with unicode characters and it didnt work. How to fix it, plz help !!!
    Hello hoangbon, which file did you edit? I recommend to not edit the vanilla "local_*.pack" and "local_*_patch.pack" because they can be overwritten by future patches again.

    Quote Originally Posted by meda013 View Post
    i dowloaded Shogun2 total war...bit it is russian version...can i change language to english...and how..? :S
    Hello meda, right click on the "Shogun 2" entry in your Steam library and select "properties". Then select the "language" tab and choose your language.

    Steam automatically downloads these two files:

    local_*.pack
    local_*_patch.pack

    And it replaces the complete "encyclopedia" folder with the chosen language too.

    Quote Originally Posted by Dogmeat View Post
    Nice Tutorial Swiss.
    Maybe a dumb question but do the loc files still need to be packed in media format - like i think it had to be for ETW and NTW
    Ive got loc changes working for myself but only in movie format - just though id ask the loc.pack guru....
    Hello Dogmeat, they can be in "patch" format but the first character should be higher than "l" (local*) that the custom pack overwrites the vanilla packs.

    The easiest way is to make them "movie" type format again and then they really overwrite all vanilla locs.

    We modders can now integrate our unit names directly into our mods. But this does only work with the English version. If the player uses another language, then these directly integrated unit names from the mod packs don't get recognized by Shogun 2.

    So all other languages than English need the UPC-SHO that several unit names of various mods can be displayed correctly.

    This is a very bad design decision made by CA in my opinion.

  19. #19
    sinople's Avatar These Romans are crazy!
    Join Date
    Apr 2007
    Location
    France
    Posts
    2,438

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Is it legal to put the TWS2 encyclopedia available on a website, because it is accessible for everyone who download the beta so I just to be sur that I'm not doing something illegal...

    Thanks !

  20. #20
    Swiss Halberdier's Avatar Fight for your right!
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    2,350

    Default Re: Shogun 2 "Language" and "Encyclopedia" files

    Quote Originally Posted by sinople View Post
    Is it legal to put the TWS2 encyclopedia available on a website, because it is accessible for everyone who download the beta so I just to be sur that I'm not doing something illegal...
    Thanks !
    Hello sinople, the content of the "old" Demo encyclopedia is different than the original released version in the game now.

    I guess that it is illegal to publish the content of the encyclopedia. But to be sure you should contact a CA member or ask directly in the official CA forums.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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