Page 1 of 3 123 LastLast
Results 1 to 20 of 46

Thread: How to: add hidden resources and use them

  1. #1

    Default How to: add hidden resources and use them

    How to...add hidden resources

    I haven't found a tutorial to add hidden resources, so I decided to make one myself.
    Throughout this tutorial I will explain how hidden resources can be added and how you can make them have effect.

    Adding hidden resources to the game

    1. For modding the original imperial campaign:
    a. copy the content of ...RTW\data\maps\base and ...RTW\data\maps\campaign\imperial_campaign into a new folder and name it yourself.
    b. Copy the imperial_campaign_regions_and_settlements_names.txt in the data\text folder and give it the same name as you gave to your campaign
    c. For any other campaign, open the "...RTW\data\world\maps\campaign\anyothercampaign" map and look for descr_regions.txt there.
    2. Now open RTW\data\maps\campaign\yourcampaign\descr_regions.txt and add any hidden resources you want to any city you want by just typing them in the resources section.

    Britannia_Inferior
    Eburacum
    britons
    Brigantes
    232 41 198
    stone, coastal_forest, lead, dogs, pigs, guineapigs
    5
    5

    In this region, I've added guineapigs as a hidden resource.

    3. Now open the export_descr_buildings.txt file in the ...RTW\data folder.
    Almost at the top, there is a line starting with hidden_resources.

    4. Add the names of the hidden resources you've added to the descr_regions.txt file to this line:

    hidden_resources rome, sparta, guineapigs

    5. Open your rtw\data\world\maps\campaign\yourcampaign folder and delete map.rmw if it's present.

    How to use the hidden resources

    Now the hidden resources are present, you can make them have effect on things.
    Therefore, use the export_descr_buildings.txt file (in RTW\data) and just choose anything you want to edit. I've chosen the example of "guineapigrider" as a cavalry unit, and the roman light cavalry will get an experience bonus when the guineapigs resource is present.


    building equestrian_roman
    {
    levels stables
    {
    stables requires factions { greek_cities, roman, slave, }
    {
    capability
    {
    ; greeks
    recruit "greek cavalry" 0 requires factions { greek_cities, }

    ; roman
    recruit "roman light cavalry" 0 requires factions { roman, } and marian_reforms
    recruit "roman light cavalry" 0 requires factions { roman, } and not marian_reforms and not hidden_resource guineapigs
    recruit "guineapigrider" 0 requires factions { roman, } and hidden_resource guineapigs
    recruit "roman light cavalry" 1 requires factions { roman, } and not marian_reforms and hidden_resource guineapigs

    }
    construction 4
    cost 1200
    settlement_min large_town
    upgrades
    {
    }
    }
    }
    }
    plugins
    {
    }
    }

    In the highlighted lines I have used the hidden resource in various ways and I think this pretty clearly explains how to use them.
    You can put up to 63 hidden resources in the game

    Have Fun!!!
    Automating RTW Coding and Balancing with PHP and MySQL (online)

    Lead developer of:

    Latest RoP Release: ROP v2.2
    Under the Patronage of the magnificent Rez

  2. #2

    Default

    THANK YOU!

    YOU RULE!

    If you were a girl I'd kiss you or something, but I'll just thank you... :sick

    EDIT: Erm, I'm seeing descr_regions_and_settlement_name_lookup, but no descr_regions.

    Patron of Felixion, Ulyaoth, Reidy, Ran Taro and Darth Red
    Co-Founder of the House of Caesars


  3. #3

    Default

    Thx Justunian you were correct.
    I've now changed the tutorial a bit:


    Open up your ...RTW\data\world\maps\base map and open descr_regions.txt when you want to mod the imperial campaign resources.
    For any other campaign, open the "...RTW\data\world\maps\campaign\anyothercampaign" map and look for descr_regions.txt there.
    Now add any hidden resources you want to any city you want by just typing them in the resources section.
    Automating RTW Coding and Balancing with PHP and MySQL (online)

    Lead developer of:

    Latest RoP Release: ROP v2.2
    Under the Patronage of the magnificent Rez

  4. #4

    Default

    Great Nero! i was just waiting for this tutorial...

    Should be pinned ASAP.
    "Tempus edax rerum." Ovid, Metamorphoses
    Under the patronage of Virgil.

  5. #5

    Default

    as you wish.



    :rolleyes

  6. #6

    Default

    Originally posted by horsearcher@Feb 16 2005, 06:28 PM
    as you wish.



    :rolleyes
    lol, neat! *tongue*
    "Tempus edax rerum." Ovid, Metamorphoses
    Under the patronage of Virgil.

  7. #7

    Default

    With reference to the 1.2 patch. In descr_regions.txt we have 'italy' as resource.This supposedly has something to do with the marian reforms. However this resource, although referenced at the beginning of the exp_descr_building.txt, is never employed in the body of that file. The other hidden resources - rome and sparta - are.
    How, therefore, does the engine take this particular hidden resource into account; especially when marian reforms are triggered? I have been reading of ctd's on the turn when first imp palace is built that would trigger the reforms. Could this be why?

  8. #8

    Default

    The hidden resource 'italy' is never employed in export_descr_buildings, just in descr_regions in the rome_total_realism folder.
    I really don't know why it's there, I think the RTW people intended to use that but have left it out or something. Or maybe it's
    some hardcoded thing. I guess you'll find out when you delete it, I'm trying that out now....
    Automating RTW Coding and Balancing with PHP and MySQL (online)

    Lead developer of:

    Latest RoP Release: ROP v2.2
    Under the Patronage of the magnificent Rez

  9. #9

    Default

    Now add the names of the hidden resources you've added to the descr_strat.txt file to this line:

    hidden_resources rome, sparta, guineapigs

    I intend to add hidden_resources "rhodos" and "thermon" in order to recruit unique units there - using rtr 5.2 (like rome, sparta, corinth and athens), but I simply don't find that "hidden_resources" in the descr_strat.txt (nor sparta, athens etc, but I know it must be there somewhere :wack )

    have already modified the exp_desc_building and desc_regions accordingly but only with these the game ctd

    pls help :crying
    A day may come when the courage of men fails, when we forsake our friends, and break all bonds of fellowship! But it is not this day! This day, we fight!

  10. #10
    Proximus's Avatar Nothing To No One
    Join Date
    May 2004
    Location
    Uppsala, Sweden
    Posts
    3,628

    Default

    Originally posted by Nero666@Feb 27 2005, 03:21 PM
    The hidden resource 'italy' is never employed in export_descr_buildings, just in descr_regions in the rome_total_realism folder.
    I really don't know why it's there, I think the RTW people intended to use that but have left it out or something. Or maybe it's
    some hardcoded thing. I guess you'll find out when you delete it, I'm trying that out now....
    The hidden resource 'italy' is indeed used. The reforms will only be triggered by a imperial palace built in a province with the hidden resource 'italy'.

    I intend to add hidden_resources "rhodos" and "thermon" in order to recruit unique units there - using rtr 5.2 (like rome, sparta, corinth and athens), but I simply don't find that "hidden_resources" in the descr_strat.txt (nor sparta, athens etc, but I know it must be there somewhere wacko.gif )

    have already modified the exp_desc_building and desc_regions accordingly but only with these the game ctd

    pls help crying.gif
    Well AFAIK you don't need to edit the descr_strat.txt, make sure that the entries in exp_desc_building and desc_regions are correct.

    Under the Honoured Patronage of Quintus Maximus Adopted by Valus
    Bestows Patronage upon NobleNick

    The superior man, when resting in safety, does not forget that danger may come. When in a state of security he does not forget the possibility of ruin. When all is orderly, he does not forget that disorder may come. Thus his person is not endangered, and his States and all their clans are preserved.

  11. #11

    Default

    Originally posted by Micomania@Feb 28 2005, 01:53 PM
    Now add the names of the hidden resources you've added to the descr_strat.txt file to this line:

    hidden_resources rome, sparta, guineapigs

    I intend to add hidden_resources "rhodos" and "thermon" in order to recruit unique units there - using rtr 5.2 (like rome, sparta, corinth and athens), but I simply don't find that "hidden_resources" in the descr_strat.txt (nor sparta, athens etc, but I know it must be there somewhere :wack )

    have already modified the exp_desc_building and desc_regions accordingly but only with these the game ctd

    pls help :crying
    Sorry I meant descr_regions.txt there :blush ...I've fixed the tutorial now.
    When you have added the hidden resource like I said in the tutorial, it should work. There aren't any other files involved.
    Automating RTW Coding and Balancing with PHP and MySQL (online)

    Lead developer of:

    Latest RoP Release: ROP v2.2
    Under the Patronage of the magnificent Rez

  12. #12

    Default

    Guys, you people on TWC should check out the org a bit more.

    We have not one, but two guides on hidden resources:

    http://forums.totalwar.org/vb/showthread.php?t=43747

    and

    http://forums.totalwar.org/vb/showthread.php?t=41628


    Its a waste of time duplicating tutorials, (not that urs is any worse, it might even be better, I haven't read it )
    RTW Multiplayer Campaign RELEASE - Download (Yes, its released and playable! Play in campaign mode across the net!) See some of the games being played here
    New version of: More than one turn per year for RTW (Change the number of turns in one year, more than one winter per year possible)

  13. #13

    Default

    thanks for the prompt reply.


    Well AFAIK you don't need to edit the descr_strat.txt, make sure that the entries in exp_desc_building and desc_regions are correct.
    so I obviously did everything right but the game still crashed :crying

    in the desc_regions it looks like that:
    *******
    Laconia
    Sparta
    macedon
    Helots
    244 13 24
    coastal_forest, egypt, greeks, macedon, poeni, sparta, dogs, pigs
    5
    7
    *******
    so the "coastal_forest, egypt, greeks, macedon, poeni, sparta, dogs, pigs" are the resources and hidden_resources, right? and the resource sparta is used for the spartian hoplite pylos in the game I guess (using "add hidden_resource sparta" in the buildings.txt).

    conclusion to the turial and the above (and what I did :mellow ):
    If i'm going to add the hidden resource "rhodos" to that province it should look:
    ****
    Rhodos
    Rhodes
    macedon
    Rhodians
    131 33 77
    coastal_forest, seleucid, pontus, greeks, macedon, poeni, timber, dogs, pigs, rhodos
    5
    4
    ****

    than final step in the export_desc_building.txt. - add "and hidden_resource rhodos" to the unit in question .... and the game crashes immediately after the intro.

    when changing the line to "and hidden_resource sparta/corinth/athens" instead of rhodos everything is fine :8

    really don't know what's wrong!
    A day may come when the courage of men fails, when we forsake our friends, and break all bonds of fellowship! But it is not this day! This day, we fight!

  14. #14
    Proximus's Avatar Nothing To No One
    Join Date
    May 2004
    Location
    Uppsala, Sweden
    Posts
    3,628

    Default

    Have you declared the hidden r rhodos at the top of the export_descr_buildings.txt, it sounds as if the game doesn't recognize rhodos and as everything else looks fine.

    Under the Honoured Patronage of Quintus Maximus Adopted by Valus
    Bestows Patronage upon NobleNick

    The superior man, when resting in safety, does not forget that danger may come. When in a state of security he does not forget the possibility of ruin. When all is orderly, he does not forget that disorder may come. Thus his person is not endangered, and his States and all their clans are preserved.

  15. #15

    Default

    proximus, you've saved my day *tongue*

    thanx
    A day may come when the courage of men fails, when we forsake our friends, and break all bonds of fellowship! But it is not this day! This day, we fight!

  16. #16
    Proximus's Avatar Nothing To No One
    Join Date
    May 2004
    Location
    Uppsala, Sweden
    Posts
    3,628

    Default

    Originally posted by Micomania@Feb 28 2005, 07:06 PM
    proximus, you've saved my day *tongue*

    thanx
    Lol seems like you didn't follow the tutorial step by step, I'm pretty sure it states that you've to declare the hidden r. Anyway glad to help. *wink*

    Under the Honoured Patronage of Quintus Maximus Adopted by Valus
    Bestows Patronage upon NobleNick

    The superior man, when resting in safety, does not forget that danger may come. When in a state of security he does not forget the possibility of ruin. When all is orderly, he does not forget that disorder may come. Thus his person is not endangered, and his States and all their clans are preserved.

  17. #17

    Default

    I have a problem, I did all the steps in the tutorial and sucessfully added the resource Athens and made it required to build athenian hoplites. The trouble is when I did the exact same thing for corinth, it didn't work. In fact I tried adding the resouce sparta to corinth and making the corinthian hoplite require sparta, but that didn't work either - it seems as though I simply can't add any resources to states in the desc_regions file... its very strange. I added one successfully but I can't add anymore, or for that matter add existing hidden resources to other regions.

  18. #18

    Default

    Originally posted by Jon Eloff@Feb 28 2005, 09:00 PM
    I have a problem, I did all the steps in the tutorial and sucessfully added the resource Athens and made it required to build athenian hoplites. The trouble is when I did the exact same thing for corinth, it didn't work. In fact I tried adding the resouce sparta to corinth and making the corinthian hoplite require sparta, but that didn't work either - it seems as though I simply can't add any resources to states in the desc_regions file... its very strange. I added one successfully but I can't add anymore, or for that matter add existing hidden resources to other regions.
    I'm not sure, but maybe Sparta is a hardcoded hidden resource that isn't allowed to exist in multiple citys.
    Does it CTD?
    Automating RTW Coding and Balancing with PHP and MySQL (online)

    Lead developer of:

    Latest RoP Release: ROP v2.2
    Under the Patronage of the magnificent Rez

  19. #19

    Default

    Lol seems like you didn't follow the tutorial step by step, I'm pretty sure it states that you've to declare the hidden r. Anyway glad to help.
    gggg I red the tutorial many many times but you know, sometimes I don't see the wood if there are too many trees *wink* maybe I should have a break from time to time....


    @ john eloff

    if hidden_resource sparta doesn't work for your corinthin hoplites just add a hidden_resource "corinth" to the city of corinth in the descr_region, add it also to the export_desc_building.txt at the very top of the file and it should work for your corinthian hoplites (just have a look to some posts above and don't do the same mistake than I did *wink* )
    A day may come when the courage of men fails, when we forsake our friends, and break all bonds of fellowship! But it is not this day! This day, we fight!

  20. #20

    Default

    I've tried Corinth, it doesn't work either. The reason I tried sparta (and later athens) was to prove somthing: I can't add any resources to any regions. The game doesn't CTD, but when I add a hidden resource, regardless of which, to the desc_regions file, it won't let me build any units that require that resource in the city that I gave the resource to. Its like the file is frozen, and after adding Athens I can't ever change the desc_regions file again??

    I did do somthing strange in order to get the hidden resource Athens to work. I had to move the desc_regions file from the base folder into the imperial campaign folder. Only after doing this would Athens work.... could this have somthing to do with my problem now?

Page 1 of 3 123 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
  •