Results 1 to 6 of 6

Thread: How To...Add / Relocate / Delete Campaign Map Resources

  1. #1

    Default How To...Add / Relocate / Delete Campaign Map Resources

    Modding Resource Header

    Title: How To...Add / Relocate / Delete Campaign Map Resources
    Posted by: Seasoned Alcoholic
    Modding area: Campaign Map (Tangible Resources)
    Required programmes: Notepad (or other text editor)
    Related links: How To - Edit a trade resource
    Summary: Resources are the graphic icons displayed at various locations across the campaign map. They can be traded internally with your own settlements, as well as being exported to and imported from your rivals. This guide illustrates how to add / relocate / delete campaign map resources in detail.


    Tutorial Contents

    * Part 1: Relocating Campaign Map Resources
    * Part 2: Adding New Campaign Map Resources
    * Editing Trade Resource Values

    What You Need:
    descr_regions.txt (DR) @ \Data\world\maps\base
    descr_strat.txt (DS) @ \Data\world\maps\campaign\imperial_campaign (this may vary depending on whether you have mods etc installed)
    descr_sm_resources.txt @ \Data
    pen and paper to note (potential) resource locations on the campaign map

    Before you begin:
    Make necessary backups to the text files listed above. Do this frequently as you progress through editing the campaign map resources. In the case of an error for whatever reason, you will then have a working file to fall back upon if and when needed. It is a good idea to number / date / word etc your backups so that you will know which is the most latest version without confusing yourself.

    You need to have all the files open as you will be doing a lot of cross-referencing between each. When you actually go into the campaign map, you'll need to take notes of the specific tile reference. Note that you can keep your files open when you go in and test out changes, you don't have to save and close text files for the game to read them. This saves a lot of time!

    Part 1: Relocating Campaign Map Resources

    Run RTW. When it has loaded-up, select a new imperial campaign with the faction of your choice. Open the RomeShell console and type in toggle_fow, this will make the whole campaign map visible and let's us see what were doing. You should be familiar with the map by now (well, the game's only been out since October 2004 ~D).

    You may, however, be unfamiliar with resource locations, or more specifically, what each of the resources look like. Spend a few mins looking at the different types of resources (position your mouse over the resource for a tooltip). Note that some resources are hard to see at a glance (EG lead on mountains), you can always use your cursor to do the looking for you - the tooltip will reveal a resource's location.

    Now scroll upto Tribus Alani / Campus Alani (spelt Alanni in vanilla). Have a look around the province - you should be able to spot the Silver resource in the hills towards the south border. This is the only resource present in this region.



    Move your cursor over the silver resource in Tribus Alanni. Now, open the RomeShell console (using your shortcut key, assign this if necessary). In the commandline, type in show_cursorstat. This will provide you with the specific X, Y coordinates of your cursor location, mine is 216, 108. Using a pen and paper, make a note of these coordinates and label them something like Tribus Alanni; Silver so you remember which region and resource you're editing.

    OK, now we have an estimate as to which tile we want to relocate the silver resource in. Close RTW down and go back to desktop.

    In DR, hit Ctrl+F to bring up the search dialog box, and type in Alanni. This is what you should see:

    Code:
    Tribus_Alanni
        Campus_Alanni
        scythia
        Alans
        177 170 58
        silver, slaves, dogs, pigs
        5
        3
    We are only interested in line 6 (the resource line). Ignore slaves, dogs, pigs. If we were adding / deleting resources, we would update the resource line appropriately, but since we are relocating resources, we don't need to do this.

    Now we have our coordinates from the campaign map, go into DS, maximise the window if necessary. Underneath the landmarks section, you should see this:

    Code:
    ; >>>> start of resources section <<<<
    This is the area of DS we will be focusing on. As you can see the existing campaign resources are simply listed in a lengthy, unsorted manner, which complicates things. However, since we have our coordinates taken from show_cursorstat on the campaign map, we can pin-point our silver resource from the list.

    Hit Ctrl+F to use the search dialog box again, and type in silver . Now cycle through each silver resource in the list, taking note of the coordinates of each. Once you find an exact (or close enough) match to our coordinates, you have found the resource, something as follows:

    Code:
    resource    silver,    216,    108
    You could search for the exact coordinates, but if an error has been made in working out the coordinates, then we won't find anything. Now to actually relocate the resource, simply edit the X, Y coordinates in DS to whatever you want, I've changed them to the following:

    210, 120

    Now save the changes you've made and browse to this directory:

    \Data\world\maps\base

    I'm not sure if this is mandatory in relocating resources, but to be safe, delete map.rwm in this folder. When you start a new imperial campaign the game will automatically generate a new map.rwm file for you containing all of your changes / adjustments.

    Now relaunch RTW and start a new imperial campaign to view your relocated silver resource!



    Using similar techniques to the one described above, you can position resources in specific tiles on the campaign map, as well as adding / deleting / replacing existing ones with alternative ones. Use descr_sm_resources.txt as a reference to the trade resources available in RTW. Use the sections below as necessary.

    Part 2: Adding New Campaign Map Resources

    Open RTW and start a new imperial campaign (the faction choice is unimportant), unless you already have it open from the previous section. Open the console and type in toggle_fow if necessary.

    For this next stage we will be referring to Tribus Alanni once again. We are going to add a new Timber resource to this region. So, scroll back to Tribus Alanni (towards the north east corner of the map). You should see something similar to the following:



    Now position your cursor on the campaign map as displayed below:



    With your cursor positioned correctly, open the RomeShell console and type in show_cursorstat as illustrated below:



    Hit enter to confirm the command. You should now see the following appear in the console:



    Take a note of the X, Y coordinates provided by the console, and then exit RTW.

    Open DR. Hit Ctrl+F to open the search text box, and type in alanni. You should see the following:

    Code:
    Tribus_Alanni
    	Campus_Alanni
    	scythia
    	Alans
    	177 170 58
    	silver, slaves, dogs, pigs
    	5
    	3
    We are interested in the resource line, which is line 6 (EG silver, slaves, dogs, pigs). Add timber to the end of the resource line, and you should see something similar to the below:

    Code:
    Tribus_Alanni
    	Campus_Alanni
    	scythia
    	Alans
    	177 170 58
    	silver, slaves, dogs, pigs, timber
    	5
    	3
    This adds timber to the region, but to actually get the game to display the resource on the campaign map, we need to use the X, Y coordinates we made a note of earlier using the show_cursorstat console command. To do this, we simply add the coordinates to the list in DS.

    Open DS and scroll or search for the resources section. There are a couple of ways to add resources, we can either: (a) add new resources to the bottom of the existing list, or (b) copy an existing resource and edit its name and / or coordinates. We will use method (b) for speed's sake.

    Browse or search for an existing timber resource. Once you've found one, duplicate it by copying and pasting the original. For example:

    Code:
    resource	timber,	41,	110
    resource	timber,	41,	110
    Now edit the coordinates we made a note of earlier, which were 218 (X), 140 (Y).

    Code:
    resource	timber,	218,	140
    Save your changes and close both DR and DS. Now relaunch RTW and start a new imperial campaign. Scroll to Tribus Alanni and we should see our new timber resource displayed on the campaign map:



    Note: If you wish to delete this timber resource, simply remove the timber entry from the resource line in DR, and remove the resource and coordinate references in DS. Save your changes to both of these files, reload RTW and the resource should now be removed from the campaign map.

    Editing Trade Resource Values

    All of the existing trade resources are contained in descr_sm_resources.txt @ \data directory. If you wish to edit the value of these trade resources to influence the trade income of settlements, check out Part 2 of Myrddraal's How to - Edit a trade resource guide.
    Creator and developer of Rome: Total Gameplay (RTG), an unofficial mod for vanilla RTW v1.5
    For news and updates, check out the RTG Subforums
    RTG v1.0 (Self-Extracting ZIP)
    RTG v1.0 (EXE Installer)
    A veteran FPS & Strategy gamer, currently playing Day of Defeat (DoD) & Football Manager 2007.
    Looking forward to the release of Command & Conquer 3: The Tiberium Wars.

  2. #2

    Default Re: How To...Add / Relocate / Delete Campaign Map Resources

    I am modding rtw alex and i have a problem: there is a wine resource in macedon, but you cannot see it in the export and inport list even where I place it Macedonia, could somebody help me with this?

    Here is a picture:
    Spoiler Alert, click show to read: 


    Uploaded with ImageShack.us


    I attached my descr_strat.txt and my descr_regions.txt to this post
    Sorry for my English...

    top 10 favourite mods: RTRVII, RSII, 300WOS, LOTRTW, FATW, HCT, EB, ROP, ARISTEIA, IBFD

  3. #3

    Default Re: How To...Add / Relocate / Delete Campaign Map Resources

    Do neighbouring regions also have the resource? What is the resources value in descr_sm_resources?

  4. #4

    Default Re: How To...Add / Relocate / Delete Campaign Map Resources

    Quote Originally Posted by Aradan View Post
    Do neighbouring regions also have the resource?
    Yes: Greece
    Quote Originally Posted by Aradan View Post
    What is the resources value in descr_sm_resources?
    What do you mean? trade value...
    ... or something else?

    Here is my descr_sm_resources.txt file:

    Spoiler Alert, click show to read: 
    ;trade value of zero indicates it cannot be traded

    mine data/models_strat/resource_mine.CAS


    type gold
    trade_value 30
    item data/models_strat/resource_gold.CAS
    icon data/ui/resources/resource_gold.tga

    type silver
    trade_value 20
    item data/models_strat/resource_silver.CAS
    icon data/ui/resources/resource_silver.tga

    type pottery
    trade_value 5
    item data/models_strat/resource_pottery.CAS
    icon data/ui/resources/resource_pottery.tga

    type furs
    trade_value 8
    item data/models_strat/resource_fur.CAS
    icon data/ui/resources/resource_furs.tga

    type grain
    trade_value 15
    item data/models_strat/resource_grain.CAS
    icon data/ui/resources/resource_grain.tga

    type timber
    trade_value 10
    item data/models_strat/resource_timber.CAS
    icon data/ui/resources/resource_timber.tga

    type iron
    trade_value 12
    item data/models_strat/resource_iron.CAS
    icon data/ui/resources/resource_iron.tga

    type olive_oil
    trade_value 9
    item data/models_strat/resource_olive_oil.CAS
    icon data/ui/resources/resource_olive_oil.tga

    type wine
    trade_value 11
    item data/models_strat/resource_wine.CAS
    icon data/ui/resources/resource_wine.tga

    type slaves
    trade_value 10
    item data/models_strat/resource_slaves.CAS
    icon data/ui/resources/resource_slaves.tga

    type glass
    trade_value 16
    item data/models_strat/resource_glass.CAS
    icon data/ui/resources/resource_glass.tga

    type marble
    trade_value 14
    item data/models_strat/resource_marble.CAS
    icon data/ui/resources/resource_marble.tga

    type textiles
    trade_value 4
    item data/models_strat/resource_textiles.CAS
    icon data/ui/resources/resource_textiles.tga

    type purple_dye
    trade_value 20
    item data/models_strat/resource_purple_dye.CAS
    icon data/ui/resources/resource_purple_dye.tga

    type incense
    trade_value 18
    item data/models_strat/resource_incense.CAS
    icon data/ui/resources/resource_incense.tga

    type silk
    trade_value 14
    item data/models_strat/resource_silk.CAS
    icon data/ui/resources/resource_silk.tga

    type wild_animals
    trade_value 7
    item data/models_strat/resource_wild_animals.CAS
    icon data/ui/resources/resource_wild_animals.tga

    type hides
    trade_value 2
    item data/models_strat/resource_hides.CAS
    icon data/ui/resources/resource_hides.tga

    type tin
    trade_value 8
    item data/models_strat/resource_tin.CAS
    icon data/ui/resources/resource_tin.tga

    type copper
    trade_value 10
    item data/models_strat/resource_copper.CAS
    icon data/ui/resources/resource_copper.tga

    type lead
    trade_value 6
    item data/models_strat/resource_lead.CAS
    icon data/ui/resources/resource_lead.tga

    type amber
    trade_value 16
    item data/models_strat/resource_amber.CAS
    icon data/ui/resources/resource_amber.tga

    type elephants
    trade_value 0
    item data/models_strat/resource_elephants.CAS
    icon data/ui/resources/resource_elephants.tga

    type camels
    trade_value 0
    item data/models_strat/resource_camels.CAS
    icon data/ui/resources/resource_camels.tga

    type pigs
    trade_value 0
    item data/models_strat/resource_fur.CAS
    icon data/ui/resources/resource_pigs.tga

    type dogs
    trade_value 0
    item data/models_strat/resource_fur.CAS
    icon data/ui/resources/resource_dogs.tga
    Last edited by Megas Antiviros <3 Gaesatae :p; September 16, 2010 at 12:21 PM.
    Sorry for my English...

    top 10 favourite mods: RTRVII, RSII, 300WOS, LOTRTW, FATW, HCT, EB, ROP, ARISTEIA, IBFD

  5. #5

    Default Re: How To...Add / Relocate / Delete Campaign Map Resources

    If you are only trading with regions that already have the resource on their own, then the resource can't be traded and won't show up in the scroll.

  6. #6

    Default Re: How To...Add / Relocate / Delete Campaign Map Resources

    Oh...
    Sorry for my English...

    top 10 favourite mods: RTRVII, RSII, 300WOS, LOTRTW, FATW, HCT, EB, ROP, ARISTEIA, IBFD

Posting Permissions

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