Results 1 to 2 of 2

Thread: Adding New Region Resources

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Adding New Region Resources

    Hey guys, I'm sure you've noticed that there are various resources that determine where units are recruited, for instance "europe", "americas_coastal", "lancers", "west_indies", etc, etc.

    Anyway, I was wondering if anyone knew if it was possible to add a new resource like these. I've created a bunch of King's German Legion units, and I would like them to only be recruitable in the German regions, but all I can do is make them recruitable across the whole of Europe, only in Eastern Europe, or only where Uhlans are available (which doesn't include some of the Western German states like Hanover). So would it be possible to create a KGL resource that would allow the King's German Legion units to be recruited solely in German provinces?

  2. #2
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Adding New Region Resources

    Quote Originally Posted by Dionysius the Mighty View Post
    Hey guys, I'm sure you've noticed that there are various resources that determine where units are recruited, for instance "europe", "americas_coastal", "lancers", "west_indies", etc, etc.

    Anyway, I was wondering if anyone knew if it was possible to add a new resource like these. I've created a bunch of King's German Legion units, and I would like them to only be recruitable in the German regions, but all I can do is make them recruitable across the whole of Europe, only in Eastern Europe, or only where Uhlans are available (which doesn't include some of the Western German states like Hanover). So would it be possible to create a KGL resource that would allow the King's German Legion units to be recruited solely in German provinces?
    First, you'll need open db editor and add new resource to region_unit_resources_tables table.

    Then, add dependency on your new resource to units_tables.

    Now the hard part. Install esfxml, convert startpos.esf to xml, and look for tags like this in each region:
    <resources_array>
    displaced_scots
    africa_west_indies
    displaced_irish
    global
    americas_coastal
    colonial_euro_factions
    americas
    </resources_array>
    You need to add your resource there. Then convert back to esf. Done.

Posting Permissions

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