Results 1 to 10 of 10

Thread: Province specific troops - hidden resources

  1. #1
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Province specific troops - hidden resources

    Hey all, I noticed that in the EDB file you needed to have hidden resource conditions in order to make something province specific. How do you do that? Is it possible without changing the map? I want to make it that celtic and germanic cultures can recruit frisian and batavian units if they hold the province of the modern day Netherlands. Can that be done just through text files? *crosses fingers*
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  2. #2

    Default Re: Province specific troops - hidden resources

    descr_regions.txt in data/maps/world/base/ is your friend. Simply add your hidden resources to your region of choice.

    IIRC in the EDB the appropriate template code is:
    Code:
    recruits "unit name" requires factions { my_faction, } and hidden_resource my_resource
    EDIT: This code goes into the capabilities {} section of a given building. Do note that you can chain multiple conditions (e.g. and hidden_resource my_resource and hidden_resource my_other_resource); however AFAIK the <or> operator appears to be buggy/unreliable. Hence code that reads hidden_resource my_resource or hidden_resource my_other_resource should be split into multiple lines.

    But I haven't looked at the EDB in a looooong time so double check with your EDB of choice to see how its done.
    Last edited by Tellos Athenaios; 01-02-2010 at 11:59.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  3. #3
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Province specific troops - hidden resources

    adding resources does count as a map change (so you'd need to delete map.rwm)
    Not used mods before? Looking for something small and fun?!
    Download the:

  4. #4
    Senior Member Senior Member Ibn-Khaldun's Avatar
    Join Date
    Aug 2007
    Location
    Estonia
    Posts
    5,489
    Blog Entries
    4

    Default Re: Province specific troops - hidden resources

    Don't forget to add your hidden resource in the beginning of export_descr_buildings.txt file as well.

  5. #5
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Sweet, thanks much! I will give it a try later today and tell you how it turns out!
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  6. #6
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Ok, I tried adding 'Brit' as a hidden resource in the Britannia_Inferior region, and this is what I got:

    Any ideas as to what I did wrong?
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  7. #7
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Ok, sorry about that, I found the mistake. I entered Brit into the descr_regions and brit into the EDB. I didn't know it was case sensitive. :P
    Also, I have another question, will this make it where they can only be recruited in this region, or where they can be recruited anywhere if you hold the region?
    Thanks for all the help!
    Vuk
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  8. #8
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Province specific troops - hidden resources

    only in that region


    you'd need to look into 'faction capabilities' / scripting if you want to try and get it to extend to other areas.... am not sure off hand if it would work except by complex scripting.
    Not used mods before? Looking for something small and fun?!
    Download the:

  9. #9
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Ok, thanks much! I'll have to work with that for now. I just hope I do not exceed the unit limit. :P
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  10. #10
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: Province specific troops - hidden resources

    Sorry to be such a noob, but I have ran into more problems. :P I succesfully created my own resource (Germ, referring to a place inhabited by German people) and started a campaign up. Everything worked fine. I then made a unit dependent on that and the game will not work. :P This is what I did:
    recruit "barb peasant german" 0 requires factions { germans, } and hidden_resource Germ
    Until I added the and hidden_resource Germ everything worked fine. I have Germ defined at the beginning of the file. Any ideas? :P


    EDIT: NVM, figured out. Sorry to be such a pain.
    Last edited by Vuk; 01-02-2010 at 23:49.
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

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