Results 1 to 12 of 12

Thread: Editing building construction time and effects

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Editing building construction time and effects

    How to edit building construction time, cost and building effects.
    MTW 1.3 + teutonic knights. (for any of them)

    my Thanks.
    Last edited by ys5; November 01, 2008 at 08:59 AM.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Editing building construction time and effects

    Code:
    {
        convert_to core_castle_building
        levels wooden_pallisade wooden_wall stone_wall large_stone_wall huge_stone_wall 
        {
            wooden_pallisade city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and event_counter governor_present 1 
            {
                convert_to 1
                capability
                {        
                    recruit_pool "Jerusalem Sergeants"  1   0.05   1  0  requires factions { england, france, hre, spain, aragon, aragon, venice, sicily, milan, scotland, denmark, norway, portugal, poland, hungary, papal_states, }  and hidden_resource aor_levant 
    		recruit_pool "Dismounted Jerusalem Knights"  1   0.05   1  0  requires factions { england, france, hre, spain, aragon, venice, sicily, milan, scotland, denmark, norway, portugal, poland, hungary, papal_states, }  and hidden_resource aor_levant 
    		recruit_pool "Jerusalem Knights"  1   0.05   1  0  requires factions { england, france, hre, spain, aragon, venice, sicily, milan, scotland, denmark, norway, portugal, poland, hungary, papal_states, }  and hidden_resource aor_levant 
                               
                    wall_level 0
                    tower_level 1
                    free_upkeep bonus 4
                    law_bonus bonus 1
                    recruitment_slots 2
                }
                material wooden
                construction  4
                cost  2500
                settlement_min village
                upgrades
                {
                    wooden_wall
                }
            }
    The example is the first building (walls) from the export_descr_building.txt (EDB) file.
    Red= building effects
    Blue - building time and cost










  3. #3

    Default Re: Editing building construction time and effects

    That`s what I`m looking for, but I can`t find that file. I use the windows search, with any keywords "export" , ".txt" "building" etc. Also tried to search within the file ("a word or phrase in the file" ) a phrase from the text you posted. It won`t find such a file.

  4. #4

    Default Re: Editing building construction time and effects

    You have to unpack the game. Be sure you have 7-10GB of free hard drive space, then proceed to your Medieval II Total War/tools/unpacker folder and double click on unpack_all.bat. After that is done, go to your Medieval II Total War/data folder and you can open the export_descr_buildings file. If you want to get into some more advanced editing, then check out this simple guide to the file: http://medieval2.heavengames.com/m2t...de/index.shtml

    EDIT: Be sure to open your Medieval II Total War/medieval2.preference.cfg file after unpacking. This file stores all of your settings for the game, like graphics options. Add the following lines to the end:
    [io]
    file_first = true

    Then save and make the file read-only. This prevents the game from taking out those options when you next start it up.
    Last edited by Mythic_Commodore; November 01, 2008 at 02:02 PM.

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  5. #5

    Default Re: Editing building construction time and effects

    Wow 7-10 GB !

    I don`t have enough space and it wouldn`t be easy to free up.

    Is there a way I can unpack\get only the files that I need?

    (I have the teutonic only installed, if it matters) would it affect the old mtw or new mtk.

  6. #6

    Default Re: Editing building construction time and effects

    Yes, there is a way, though I can't remember how. It involves editing the batch file. Try and search around a bit.

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  7. #7

    Default Re: Editing building construction time and effects

    Thanks a lot. I`ll try it.

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Editing building construction time and effects

    Edit the unpack_all to add the part in red. The example will unpack only txt files.

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










  9. #9

    Default Re: Editing building construction time and effects

    Yeah that`s what I need.

    Is it cmd I should use? I don`t remeber how to use it.

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Editing building construction time and effects

    To edit: right click and choose 'edit' on the drop down menu.
    To run: double click.










  11. #11

    Default Re: Editing building construction time and effects

    Yes it worked. Thanks !

  12. #12
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Editing building construction time and effects

    One is glad to be of service










Posting Permissions

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