Results 1 to 6 of 6

Thread: Activate full AI for minors

Hybrid View

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

    Default Activate full AI for minors

    I hope this is not obvious, but does anybody know how to activate full AI for minor countries? Is it possible.

    The turns fly by on my computer so I would not mind the extra time.

  2. #2

    Default Re: Activate full AI for minors

    Absolutely possible. Nobody has figured it out as far as I know, but many people are working on it.

  3. #3

    Default Re: Activate full AI for minors

    Hi I think I found where the AI Level and Type are defined.

    In parsed startpos.esf is

    Code:
    <utf8 offset=5707708 length=12>MAINTAINANCE</utf8>
                                       <utf8 offset=5707731 length=8>non_euro</utf8>
                                       <FACTION_FLAG_AND_COLOURS>
                                            <utf8 offset=5707770 length=20>data\ui\flags\mysore</utf8>
    All minor factions have MAINTAINANCE as the first field while all major factions have FULL as the first field. All non-euro minors use non_euro while all European minors just use default. The majors have many diff. types from continental industrialist to maritime_repressive, to continental_progressive etc.
    Last edited by GeorgiaPeanuts; March 24, 2009 at 08:54 PM.

  4. #4
    Condottiere SOG's Avatar Domesticus
    Join Date
    Dec 2006
    Location
    Oregon, USA
    Posts
    2,274

    Default Re: Activate full AI for minors

    What are you using to look at this? what program?

  5. #5

    Default Re: Activate full AI for minors

    A program I wrote, I uploaded it in another thread, but it doesn't seem to work under release build, but here is the file in parsed form.

    In the file will see all I do is to list a data element with its type and its offset into the esf file because I have done no effort into translating structure to actual specific names although it can be seen what many data is.

    To edit something you just make note of the offset and then goto that location in the esf file in a hex editor and change it. In this method though new things cannot be added or data types that are not fixed sizes generally can't be changed unless size is maintained. An example is with strings. you can only change a string data to be another string of same length. Like one time I made Wurtemburg region rebels to be the Mecklenburg faction emergent because it had no region it emerged from. Unfortunately it didn't work fully because mecklenburg wasn't defined as a faction in the file too so they had mecklenburg flag but were classed as rebels Also my string offsets for utf8 are wrong but you can find your way easy because it is merely going to in the center of the string because I forgot to account for the fact that utf8 strings are twice their length in bytes.

    When just releases his tool it sounds like it can make all these limitations able to be overcome.

    here is the parsed version.
    http://rapidshare.com/files/213187821/startpos.zip.html
    Last edited by GeorgiaPeanuts; March 24, 2009 at 09:01 PM.

  6. #6
    Condottiere SOG's Avatar Domesticus
    Join Date
    Dec 2006
    Location
    Oregon, USA
    Posts
    2,274

    Default Re: Activate full AI for minors

    Hey, thanks! +rep!

Posting Permissions

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