Results 1 to 12 of 12

Thread: Discovery - modding resrouces

  1. #1

    Default Discovery - modding resrouces

    I don't think this is common knoledge (appologies if it is).

    Modding trade goods in descr_regions does nothing at all. It DOES NOT add those trade goods to the map.

    What adds resources to the game is adding them in the descr_strat. I had thought this was purely cosmetic, but it is what the computer actually goes by when distributing resources to regions. The descr_regions text file is used for hidden resources only, from what i can tell.

  2. #2
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Discovery - modding resrouces

    Huh, afaik it's exactly the opposite... Are you sure?
    I could be mistaken but I think there are some regions that have resources which don't show up on the strat map.

    //Edit: Sorry, didn't read the thread on TWC, this might be interesting...
    Last edited by alpaca; 12-09-2005 at 16:54.

  3. #3
    Assistant Mod Mod Member GiantMonkeyMan's Avatar
    Join Date
    May 2005
    Location
    plymouth - scrubbing Beirut's toilet with a cat...
    Posts
    886

    Default Re: Discovery - modding resrouces

    this works both ways... to see the resource on the map you must add it in descr_strat but to actually gain from the resource it must be in descr_resource... this is shown by the hidden resources used in AOR etc

  4. #4

    Default Re: Discovery - modding resrouces

    No, A_B is right.
    I had a region with both wine and gold as resources in the descr_regions file. I did not have the visible resources in the descr_strat file. That gave me a trade income of 8.
    When I added the visible resources to the descr_strat file in that region, the income rose to 64.
    So this is actually true.
    Good job A_B:)


    The Fourth Age: Total War - Map Manager, Editor and Coder

  5. #5
    Assistant Mod Mod Member GiantMonkeyMan's Avatar
    Join Date
    May 2005
    Location
    plymouth - scrubbing Beirut's toilet with a cat...
    Posts
    886

    Default Re: Discovery - modding resrouces

    maybe you must have both it in descr_regions and on the descr_strat a bit like you having hidden_resources in descr_regions and the top of the buildings file.... has anyone checked if it works with just in the descr_strat?

  6. #6
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Discovery - modding resrouces

    Ya, it works without the resource line in descr_regions
    However I think that the building requirement is linked to the resource existing in the descr_regions file.

  7. #7

    Default Re: Discovery - modding resrouces

    descr-regions definately is the place for hidden_resources, but has no bearing on income/trade resources. this opens up all eight resource slots for hidden_resources, since you don't need to use any for trade resources. This is a pretty major find.

    The only thing i havn't tested are camels and elephents, which are unit building requirements, but are not hidden.

  8. #8

    Default Re: Discovery - modding resrouces

    i tested the elephant thing, by adding them to both of these files but it didnt work. although this does not result in any ctds so far.
    i'll try adding it to just one of the files at a time to see if that works.
    pillage, plunder, burn...

  9. #9

    Default Re: Discovery - modding resrouces

    I recently started modding RTW. The first thing I wanted to do was to add Corsica as a separate region. I originally gave them timber, iron, and silver as resources by adding them to descr_regions, but didn't add them to descr_strat. When I loaded the game, they could build a mine, but received no added income from mining (and of course, nothing displayed on the screen).

  10. #10
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: Discovery - modding resrouces

    loderunner has it right I think. (and welcome to the forums btw loadrunner )

    I always assumed both were necessary as I noticed that only having it in descr_strat didn't work. But I didn't know that wasn't necessary. Nice find.

  11. #11
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Discovery - modding resrouces

    Well I already guessed you need them in descr_regions for the building requirements, good to have proof though.

  12. #12
    Assistant Mod Mod Member GiantMonkeyMan's Avatar
    Join Date
    May 2005
    Location
    plymouth - scrubbing Beirut's toilet with a cat...
    Posts
    886

    Default Re: Discovery - modding resrouces

    so apart from mines, camels/elephants and hidden_resources you don't need them in descr_regions at all.... so we can have probably 8-5 hidden_resources in each province.... useful

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO