PDA

View Full Version : Where is export_descr_buildings.txt file in M2?



OverKnight
08-11-2007, 23:49
I want to add recruitable generals to M2, poking around I came up with this on the official forum.


Question #36: How do I recruit generals?

Answer #36: It is very easy to mod the game so that you can recruit generals. Just add this to your export_descr_buildings.txt file:

recruit_pool "Mongol Bodyguard" 1 0.2 1 0 requires factions { mongols, timurids, }
recruit_pool "ME Bodyguard" 1 0.2 1 0 requires factions { moors, egypt, turks, }
recruit_pool "Greek Bodyguard" 1 0.2 1 0 requires factions { byzantium, }
recruit_pool "EE Bodyguard" 1 0.2 1 0 requires factions { russia, }
recruit_pool "SE Bodyguard" 1 0.2 1 0 requires factions { spain, portugal, milan, venice, sicily, }
recruit_pool "NE Bodyguard" 1 0.2 1 0 requires factions { england, scotland, france, hre, denmark, poland, hungary, }

You'll need to do this for each building which you want to allow the creation of general's units.

Seems simple, but I can't find the export_descr_buildings.txt file. I've monkeyed around with the King's Purse, but that's the extent of any alterations I've done.

Am I just missing the file path or do I need to unpack the data files before I can make the changes?

Garnier
08-12-2007, 02:46
Its in the data folder, if you've unpacked your game.

sapi
08-12-2007, 06:38
Place the following text into a bat file (using notepad; save as .bat), save the file to your unpacker folder, and run:


unpacker.exe --source=..\..\packs\*.pack --destination=..\..\ --verbosity=1 --filter *descr*.txt

That'll unpack the most commonly modified files to your data folder, and shouldnt' take up too much space.

Once you've added what you want, make a bat file in the main medieval2 folder with the following:


medieval2.exe --io.file_first