• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Pablo--

Second Lieutenant
3 Badges
May 8, 2011
156
1
  • Majesty 2
  • Majesty 2 Collection
  • 500k Club
Hi! As you all know, I am making a mod called Majesty 2 Reloaded! And I have encountered two problems:

1. I wanted to fix spellings in this game but since (I think) it's encrypted (the file in which all the texts are hiding) how can I change the text? Also, is there anyway to change the fonts in the game?

2. I have added a perk which enables the undead to be immune to poison. Everything works but when I go onto the picture (the one with potion and cross across it):

(Link, picture too big) http://img193.imageshack.us/img193/2360/majesty2201106262033423.jpg

Guess another text edition. How to I make an description and name for this perk? :confused:
 
I dont know about fonts, i guess they are in exe, but for adding some text, you should edit file M2_mod.loctable.xml
As an example of file, you may watch a mod by Kindofbear which adds a new hero, the Knight, the mod's with scary russian language, but you can watch it for M2_mod.loctable.xml content anyway.
Link of the topic, on Яussian - http://fanfantasy.info/forum/index.php?/topic/386-мод-рыцарь/
Direct link - http://dl.dropbox.com/u/5985852/knight.zip
Installation: paste folders from archive to the "resource.mod" folder, then paste again content of "add_" folder to the "resource.mod" with override
 
Hey! I'm sorry but I can't understand this. Is this the only way and if it is, how to add or edit text strings? And what about the perk problem? :confused: Anyway Thank you! Since you are the only person on this forum which tries to help with my problems...
 
Yes, fonts are in exe. In order to add new fonts you should create a unicode (52 or 51) image file with a designated TUV, and put it in localization folder. And do as Polite_Orc said, look how Kindofbear did the job in the loctable and learn from him. learning from an example is an easiest form of learning. Oh, and about the spelling. You cant change it, because it is in TEXTS.PAK file, in the MD file. its encrypted one-way with a special program.
 
Hey! I'm sorry but I can't understand this. Is this the only way and if it is, how to add or edit text strings? And what about the perk problem? :confused: Anyway Thank you! Since you are the only person on this forum which tries to help with my problems...
Well, i am using MS Excel to edit. About perk problem, i dont explore localdata enough, but its pretty simple, copy/paste data from example and change perk description whatever you like.
Maybe its some texts of RED color which cause some doubt. Here they are:
First on english: "Never, never touch these columns!"
Second on russian, its quite useless: "before adding your changes, search and repair conflicts, if they are!"
Third string: Names of heroes are catalogised by classes. For each class exists different list.

There is a sheet that called "Perks", i guess you need to insert there your links to localization ( i mean that two texts that are displaying on your screenshot)
 
Well, i am using MS Excel to edit. About perk problem, i dont explore localdata enough, but its pretty simple, copy/paste data from example and change perk description whatever you like.
Maybe its some texts of RED color which cause some doubt. Here they are:
First on english: "Never, never touch these columns!"
Second on russian, its quite useless: "before adding your changes, search and repair conflicts, if they are!"
Third string: Names of heroes are catalogised by classes. For each class exists different list.

There is a sheet that called "Perks", i guess you need to insert there your links to localization ( i mean that two texts that are displaying on your screenshot)

Thank you to all of you! I already know how to add, but I don't know how to change.

Here is my experiment:

I want to change the name of the warrior, so I go to "M2_mod.loctable.xml" file and open it.
I create another sheet that is called "Heroes"
And I insert those lines: "#hero_warrior_name" and after that I put the header and then the name I want, for example "Super Warrior"
I save the file, and turn on the game and this is what happens:

"Modder Localization Error

ERROR: Localization key #hero_warrior_name is encountered more than once; it is no unique; file '/localization/m2_mod.loctable.xml'; it is bad."

So yeah, If we could somehow make the game think that there is no duplicate and make it still load from m2_mod.loctable.xml file, we could change much more things...