Page 1 of 1

Polish language in Magic: The Gathering - 2014

PostPosted: 31 Jul 2014, 13:35
by sb8gapi
I would like to add Polish language to Magic: The Gathering - Duels of the Planeswalkers 2014.
I do not know how to set the priority of the files in the DLC mod.

I added Polish language to Magic: The Gathering - Duels of the Planeswalkers 2013
creating a new DLC file: DATA_DLC_9999.wad on the basis sample directory structure in Magic 2013 for in post (File: example_directory.zip):

viewtopic.php?t=8436

Sample directory structure which Magic 2013 works well, but I do not know how to create correct directory structure which Magic 2014. Sample directory structure which Magic 2013 not work in Magic 2014. I swapped English text to Polish, but when you start the game the text is still in English.
I do not know how to set priorities for the files to be read from my DLC with Polish text and not with DATA_CORE.WAD. In Magic 2013 priorities were APPINFO_DEFAULT file, but do not know if the version of Magic 2014 are set up in the same file?


Please help me.

Re: Polish language in Magic: The Gathering - 2014

PostPosted: 31 Jul 2014, 22:54
by RiiakShiNal
In DotP 2014 priorities are set in the WAD header. In the ENTRY tag there is an order attribute, the higher that number the higher the priority. The last Deck Pack uses order="42" for it's content priority so to just override the DLCs you won't need to use a priority higher than 43. If you also want to override mods then you need to check the priority of the mod. For my Core Fixes I use 43 (minimum to override the DLCs), though for my Manual Mana mod I use 93 to make sure that my mod overrides all the basic land from the game and will continue to do so if someone repackages some of the game basic land into their mod with a priority less than 93. So if you want to override Manual Mana as well with your translation then you will need to set at least an order of 94.

Re: Polish language in Magic: The Gathering - 2014

PostPosted: 01 Aug 2014, 11:18
by sb8gapi
The WAD header I set
<entry> Platform="ALL"
source="DATA_DLC_9999/DATA_ALL_PLATFORMS/" alias="Content" order="50"/>
but still the text is in English. I changed only the text of the Main Menu file: UI_TEXT9999.XML.
Do I have anything else to change in @header.xml or in the name of files in the folder: DATA_ALL_PLATFORMS?
I put my DLC in attachment.

Re: Polish language in Magic: The Gathering - 2014

PostPosted: 01 Aug 2014, 11:31
by RiiakShiNal
When you want to override a specific file (in this case translating the language) you need to use a file with the same name. So if you wanted to translate the main menu file from the core WAD you would need to name your file UI_TEXT0000.XML. If you wanted to override the UI text added by the expansion pack you would need to name your file UI_TEXT0001.XML and so on. By naming your file UI_TEXT9999.XML you are essentially saying that those entries are extra entries and should be used if a string can't be found.

Re: Polish language in Magic: The Gathering - 2014

PostPosted: 01 Aug 2014, 12:05
by sb8gapi
Thank you for response. How to change the names of files and write about the progress.

I changed the file names in TEXT_PERMANENT on UI_TEXT0000.XML (the same as in DATA_CORE.WAD), but still the text is in English.
I added two cards of the tutorial: RUNECLAW_BEAR_350603.XML and CENTAUR_COURSER_350216.XML and the text is in Polish (I changed the file from CONFIGS - FONT_DEFINITION_US.XML.)

Files in the folder TEXT_PERMANENT do not work (file SYSTEM_TEXT0000.XML the types of cards also does not work)

Re: Polish language in Magic: The Gathering - 2014

PostPosted: 02 Aug 2014, 02:09
by RiiakShiNal
The only other thing I can think of would be to directly change the official WADs, but that is obviously not an ideal solution as changing the official WADs can break the campaign and those WADs are quite large so transferring them to friends for online play can be time and bandwidth consuming.

Edit: I just looked at your WAD and I'm not seeing any place in the TEXT_PERMANENT files where you replaced the English strings with Polish. They look like the original files to me (English is still English in those two files).

Re: Polish language in Magic: The Gathering - 2014

PostPosted: 02 Aug 2014, 16:32
by sb8gapi
After many attempts to launch the Polish language in the game with custom DLC is progress.
I changed the name of the folder in the file TEXT_PERMANENT: DATA_CORE.WAD to "TEET_PERMANENT" in HEXEdit (XVI32). The game does not load at startup folder texts TEXT_PERMANENT in DATA_CORE.WAD, because after modification it is not, but loads of my DLC.
It now Polish language is in the game and the cards creatures of my DLC (DATA_DLC_9999.wad).

Thanks for helping to "RiiakShiNal" and hints that helped in the work.