Page 1 of 32 123456789101126 ... LastLast
Results 1 to 20 of 631

Thread: How To Create A New Region

  1. #1
    Xerces's Avatar Tiro
    Join Date
    Oct 2004
    Location
    Luton, England
    Posts
    218

    Icon7 How To Create A New Region

    This is a step by step guide to creating a new region in MTW2.

    Please follow this guide step by step and you will be adding new regions in no time. Be sure to back up your files. You are better off making a new file in the main MTW2 dir. And adding your files there. For now make a file called MyMod and follow the mod switcher instructions that by now you should be well versed in otherwise you wouldnt be looking to mess with the map!!!

    I find it better to work with a writing pad for this, so that I can write down the RGB colours I use, the names of the regions and settlements I use, and the x y pos of the settlements etc.


    1. Firstly make sure you have MSPaint and Irfanview. These are the only two programs you will need.

    2. You will also need to edit the file: imperial_campaign_regions_and_settlement_names.txt so make sure you have the text files as the unpacker does not unpack this!!!!!

    3. Goto folder data/world/maps/base and open the file map_regions.tga in Irfanview simply save the file as a bitmap (bmp).

    4. Now open the map_regions.bmp in Paint (You can use Photoshop for this, but it is not needed, paint can do it easily!)


    As you can see I have added a number of regions to the UK

    5. In Paint make sure you select a unique colour. Do this by going to Colours, Edit Colours and make yourself a custom colour, make sure you write down this colours RGB numbers (pref next to the name of the region you are going to create)


    6. Then simply colour the part of the map you wish to put your new region in with your new colour. Make sure you do not go over the coast line if your region is adjoined to the sea.

    7. Next simply add a black (single pixel) dot where you want your city to be, and a white dot for a port (if it is adjoined to sea). It is a good idea to fire up MTW2 in windowed mode whilst doing this so you can make sure you are putting your city in the right place etc (not on top of a resource and that an army can reach that area etc).


    8. Once you are happy with your pixel art save your file, and close paint.

    9. Next you need to add the new region to the relevant text files. First open imperial_campaign_regions_and_settlement_names.txt note this file must be contained in the folder text (MyMod/data/text), it is a read only file so change it.

    Look at the picture above, for example if you were adding Cornwall and the city was to be called Penzance you would add the following line
    PHP Code:
     {Cornwall_Province}Cornwall Region
            
    {Penzance}Penzance 
    Now save the file and then change it back to read only. (VERY IMPORTANT)

    10. Next goto the folder MyMod/data/world/maps/base and open descr_regions.txt


    As you can see above I have added the Cornwall region. Be aware of the culture you are adding, I copy and paste a region that has a simular culture in this case York, and then this is where you need the RGB number you jotted down earlier (in italic), change these three figures to your colour.
    PHP Code:
    Cornwall_Province
        Penzance
        england
        English_Rebels
        
    [I]184 22 72[/I]
        
    ironcoalwoolatlanticexplorers_guildwoodsmens_guild
        5
        6
        religions 
    catholic 90 orthodox 0 islam 0 pagan 5 heretic 5 
    11. Next in the same folder open descr_sounds_music_types.txt add your province to the relevant cullture here you would add cornwall to england.


    12. Next goto the folder MyMod/data/world/maps/campaign/imperial_campaign and open the file descr_strat

    add:
    PHP Code:
    settlement
    {
        
    level village
        region Cornwall_Province

        year_founded 0
        population 1000
        plan_set default_set
        faction_creator england

    Remember this is an example! Here I added the region as a slave settlement.


    13. Now you need to goto the folder MyMod/data/world/maps/base and open your map_regions.bmp in Irfanview and save it as a TGA file, overwrite the original and then always, always remember to delete your map.rwm file.

    Now fire up your mod (again this is not a mod-switch tutorial!!) and your new region should now be there, obviously without an army!

    Always remember all spellings must match, if you make one mistake it will not work for you!!



    Xerces

    PS by Burebista: The "~" console command to show map x,y coordinates is: show_cursorstat


    OFF-TOPIC WARNING! 13/02/09

    Apologies I wanted to post for the first time since the actual medieval period! lol! Just wanted to say a BIG thankyou to Lord Condormanius (and apologies to those who also pointed some lost souls in the right direction that I dont mention), as I was almost thinking that my tutorial may need to be completely re-done again, but glad you have been able to point people in the right direction and that indeed if it is followed step by step to the letter on vanilla then regions can be added fairly "easily." I am very, very happy that this was help to alot of you and apologies to those that are having difficulty (and those that PM'd me and I obviously never replied simply due to me never logging on here, and instead modding for my own enjoyment, wont win me any awards or rep, but that was never the point of this tutorial anyway!). I wont repeat alot of the advice given earlier in this thread but will simply say dont jump ahead, do ONE region at a time, save delete map.rwm and test, ALWAYS if there is an error more often than not it will due to an error in the text or you have placed the port or settlement in a place it doesnt like. So you go back to your unchanged files from your previous region (when it was working, and hey you did backup your files didn't you ) and more often than not you will find your mistake and sit there slapping yourself wondering why you missed it for the past 3 hours of frustration and 20 posts later in here asking why it isnt working?! lol!

    Anyway I am getting married on the 21st, and the sad thing is that I am more excited about Empire's release date!!! lol!! So good luck to all!! And man, I cant wait to contribute (properly this time!) and get stuck in to modding Empire soon!!!!

    Happy modding!

    Xerces

    P.S. Just to contradict myself completely if you have found this useful, rep me lol!!!
    Last edited by Gigantus; September 15, 2017 at 08:39 AM. Reason: media updated
    "But sire, wont we hit our own troops?"..."Yes but we'll hit theirs as well!"
    "it's easy enough to say "wait for the patch" or "wait for modders," both of which have dramatically improved Creative Assembly's previous games. I can only presume that will be the case here, at which point I look forward to seeing how Empire: Total War turns out. But we review the games we're given, not the games we wish they'll become."

    Founding Member of MTWII Modding Arts Inc.
    My How To Add A Region Guide For MTW2

  2. #2

    Default Re: How To Create A New Region

    How do you open TGA files with MSpaint?

  3. #3
    Xerces's Avatar Tiro
    Join Date
    Oct 2004
    Location
    Luton, England
    Posts
    218

    Default Re: How To Create A New Region

    Oorah you dont, you use Infranview to convert your TGA's to BMPs. Read step number 3.
    "But sire, wont we hit our own troops?"..."Yes but we'll hit theirs as well!"
    "it's easy enough to say "wait for the patch" or "wait for modders," both of which have dramatically improved Creative Assembly's previous games. I can only presume that will be the case here, at which point I look forward to seeing how Empire: Total War turns out. But we review the games we're given, not the games we wish they'll become."

    Founding Member of MTWII Modding Arts Inc.
    My How To Add A Region Guide For MTW2

  4. #4

    Default

    ok thanks, sorry I better learn to read directions more carefully

    Ok added a settlement successfully! thanks alot for the great tutorial... I was wondering though.. How are the placement of roads figured out?
    Last edited by Trajan; December 15, 2006 at 06:34 PM. Reason: Merged non-duplicate double post.

  5. #5
    selenius4tsd's Avatar Happiness Is A Warm Gun
    Join Date
    Sep 2006
    Location
    CT, South Africa.
    Posts
    1,707

    Default Re: How To Create A New Region

    Great tutorial thanks!
    Under the patronage of vikrant
    Patron of Ramtha, Alletun, finneys13, SirPaladin and GrnEyedDvl

  6. #6

    Default Re: How To Create A New Region

    What about the resources? Don't we need to add those to descr strat too?

  7. #7
    Soulghast's Avatar RAWR!
    Join Date
    Oct 2006
    Location
    Athens, Greece
    Posts
    3,912

    Default Re: How To Create A New Region

    How can we put an army in, or give the province to ebgland?
    Ex-Curator
    Under the Patronage of Perikles
    Patron of Desperado † and Astaroth


    R.I.P Calvin

  8. #8

    Default Re: How To Create A New Region

    Hi Xerxes... I've added a lot of settlements to the map so far but I've run into a big problem... Whenever I try to start a new campaign it pauses then goes to the single player menu again... Do you know what the problem is? Is there any way I can find out? I think I did everything right because if I did make a mistake it would CTD but it doesn't..

  9. #9

    Default Re: How To Create A New Region

    as I suspected... something was wrong with the descr_strat.txt... I figured it out! I got my campaign up and running.... tomorrow... I shall play! MWAHAHAHA thanks alot Xerces for the great tutorial... because of you I'm playing MTW2 with 62 more settlements on the map!

  10. #10
    Soulghast's Avatar RAWR!
    Join Date
    Oct 2006
    Location
    Athens, Greece
    Posts
    3,912

    Default Re: How To Create A New Region

    Where can I download MS paint?
    Ex-Curator
    Under the Patronage of Perikles
    Patron of Desperado † and Astaroth


    R.I.P Calvin

  11. #11

    Default Re: How To Create A New Region

    Lol, you have it already, it's in: Start->Accessories->Paint!

    Glad to help !

  12. #12

    Default Re: How To Create A New Region

    Quote Originally Posted by oorah87 View Post
    as I suspected... something was wrong with the descr_strat.txt... I figured it out! I got my campaign up and running.... tomorrow... I shall play! MWAHAHAHA thanks alot Xerces for the great tutorial... because of you I'm playing MTW2 with 62 more settlements on the map!
    I'm having the same trouble. What was the problem?

    EDIT: This is driving me crazy. Everything I do, I still get the single player screen. What are the possible causes for this? Xerxes, anyone?
    Last edited by Damocles; December 16, 2006 at 06:02 AM.

  13. #13

    Default Re: How To Create A New Region

    Nice guide , but I think you forgot something.You need to also change the descr_mercenaries.txt file and add the custom provinces inside.
    Example (for Cornwall region) :
    PHP Code:
    pool England_Wales
     regions London_Province Nottingham_Province York_Province Caernarvon_Province 
    [b]Cornwall_Province [/b]
     
    unit merc cog,    exp 0 cost 200 replenish 0.36 1.0 max 2 initial 1 religions catholic crusading
     unit merc cog
    ,    exp 0 cost 1000 replenish 0.03 0.15 max 2 initial 1
     unit Mercenary Crossbowmen exp 0 cost 860 replenish 0.04 
    0.13 max 2 initial 1 end_year 1350
     unit Mercenary Arquebusiers exp 0 cost 830 replenish 0.04 
    0.13 max 2 initial 0 start_year 1400 events gunpowder_discovered }
     
    unit Mercenary Knights  exp 0 cost 870 replenish 0.02 0.07 max 2 initial 0 start_year 1300 end_year 1500 religions catholic orthodox }
     
    unit Pilgrims    exp 0 cost 35 replenish 0.36 1.0 max 6 initial 2 religions catholic crusading
    ... 
    Other than that, great !

  14. #14
    Soulghast's Avatar RAWR!
    Join Date
    Oct 2006
    Location
    Athens, Greece
    Posts
    3,912

    Default Re: How To Create A New Region

    I saved the map_regions file as a bmp and it says it can't be opened with paint. I have photoshop 7.0 but I'm crap at usng it. Help???
    Ex-Curator
    Under the Patronage of Perikles
    Patron of Desperado † and Astaroth


    R.I.P Calvin

  15. #15

    Default Re: How To Create A New Region

    you used infranview to save it as a bmp?

  16. #16
    Soulghast's Avatar RAWR!
    Join Date
    Oct 2006
    Location
    Athens, Greece
    Posts
    3,912

    Default Re: How To Create A New Region

    Quote Originally Posted by oorah87 View Post
    you used infranview to save it as a bmp?
    Yes.
    Ex-Curator
    Under the Patronage of Perikles
    Patron of Desperado † and Astaroth


    R.I.P Calvin

  17. #17
    Laetus
    Join Date
    Dec 2006
    Location
    In hiding somewhere near you.
    Posts
    1

    Default Re: How To Create A New Region

    Delete the map.rwm ? (when I delete this I always get an error when trying to play the campaign)
    Could someone please elaborate ?

    thanks in advance.
    Last edited by The Grand Dictator; December 17, 2006 at 07:18 AM.

  18. #18

    Default Re: How To Create A New Region

    Argg... I cannot figure out what I am doing wrong. I do everything as stated, start up the game, goes to black screen as if to load than crashes. Only thing I can think of is that imperial_campaign_regions_and_settlement_names.txt did not exist but imperial_campaign_regions_and_settlement_names.txt.strings.bin and had to copy it out of a different txt file (one not unpacked to). Might this be the issue?

  19. #19

    Default Re: How To Create A New Region

    if you crash, always look to the end of the system.log.txt file found in the root m2tw directory for the cause

  20. #20

    Default Re: How To Create A New Region

    My system.log.txt file shows this

    Code:
    15:00:31.962 [system.rpt] [always] CPU: SSE2
    15:00:31.962 [system.rpt] [always] ==== system log start, build date: Dec  5 2006 version development ===
    15:00:31.962 [system.io] [always] mounted pack packs/data_0.pack
    15:00:31.962 [system.io] [always] mounted pack packs/data_1.pack
    15:00:31.962 [system.io] [always] mounted pack packs/data_2.pack
    15:00:31.962 [system.io] [always] mounted pack packs/data_3.pack
    15:00:31.978 [system.io] [always] mounted pack packs/data_4.pack
    15:00:31.978 [system.io] [always] mounted pack packs/localized.pack
    15:00:34.462 [data.missing] [warning] missing/invalid cursor for ANISELECT
    15:00:34.462 [data.missing] [warning] missing/invalid cursor for MODIFIER_SABOTAGE
    15:00:34.462 [data.missing] [warning] missing/invalid cursor for MODIFIER_TRADE
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for DRAGGABLE
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for DRAGGING
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_MULTIPLE_SELECT
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_ATTACK
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_CHARACTER
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_RESOURCE
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_FORT
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_MOVE_OBJECT
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_WATCHTOWER
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_DEPLOYMENT_AREA
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_TILE
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SPECIAL_PIECE
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PAINT
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADJUST_HEIGHTS
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADD_UNIT
    15:00:34.478 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SETTLEMENT

Page 1 of 32 123456789101126 ... LastLast

Posting Permissions

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