Results 1 to 13 of 13

Thread: Problem with modding life-span

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    WImPyTjeH's Avatar Wimpy of the Sore Ass
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    628

    Default Problem with modding life-span

    Hi, I've been making a mod about Númenor and the problem is that these guys lifed for at least 300 years. So I've been testing with the descr_campaign_db file and I changed it into this:

    Code:
       <family_tree>
          <max_age uint="320"/>
          <max_age_for_marriage_for_male uint="300"/>
          <max_age_for_marriage_for_female uint="250"/>
          <max_age_before_death uint="350"/>
          <max_age_of_child uint="10"/>
          <old_age uint="260"/>
          <age_of_manhood uint="30"/>
          <daughters_age_of_consent uint="25"/>
          <daughters_retirement_age uint="250"/>
          <age_difference_min int="-40"/>
          <age_difference_max int="100"/>
          <parent_to_child_min_age_diff uint="20"/>
          <min_adoption_age uint="60"/>
          <max_adoption_age uint="150"/>
          <max_age_for_conception uint="280"/>
          <age_of_manhood_close uint="28"/>
          <max_number_of_children uint="5"/>
       </family_tree>
    But now whenever my character reaches 128, it's resetted to 0. Is this a hardcoded fact in the engine or is it modable somewhere?

    I also failed in changing the age at which the character's portret becomes grey.


  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem with modding life-span

    Looks like the limit. 128 ring a bell? 1,2,4,8,16,32,64,128,512,1024 = binary system

    The portrait 'becomes gray' (different portrait is used) when the character is dead.

    <max_number_of_children uint="5"/> - doesn't work, 4 is max










  3. #3
    WImPyTjeH's Avatar Wimpy of the Sore Ass
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    628

    Default Re: Problem with modding life-span

    Quote Originally Posted by gigantus View Post
    Looks like the limit. 128 ring a bell? 1,2,4,8,16,32,64,128,512,1024 = binary system
    Well yeah.. But is it modable or hardcoded, that's my question.

    Quote Originally Posted by gigantus View Post
    The portrait 'becomes gray' (different portrait is used) when the character is dead.
    No, I mean the grey hair, normally when they reach 50.

    Quote Originally Posted by gigantus View Post
    <max_number_of_children uint="5"/> - doesn't work, 4 is max
    Ah thanks.


  4. #4
    Emperor of The Great Unknown's Avatar Primicerius
    Join Date
    Nov 2008
    Location
    far enough where verizon cant go
    Posts
    3,110

    Default Re: Problem with modding life-span

    Quote Originally Posted by gigantus View Post
    Looks like the limit. 128 ring a bell? 1,2,4,8,16,32,64,128,512,1024 = binary system

    The portrait 'becomes gray' (different portrait is used) when the character is dead.

    <max_number_of_children uint="5"/> - doesn't work, 4 is max
    actully the max is 6 but the characters won't show up on the family tree but they will still be there.
    Give a man a fish you feed him for a day, teach a man to fish you feed him for a lifetime.
    cant read?

  5. #5
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem with modding life-span

    grey hair: data\ui\culture_name\portraits\portraits\old\generals

    Not sure when they become active. Could be a set time of years or a percentage of the max age. My bet is on the last option.










  6. #6
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Problem with modding life-span

    Quote Originally Posted by gigantus View Post
    grey hair: data\ui\culture_name\portraits\portraits\old\generals

    Not sure when they become active. Could be a set time of years or a percentage of the max age. My bet is on the last option.
    Probably has to do with this one:
    Code:
          <old_age uint="260"/>

  7. #7
    axnsan's Avatar Protector Domesticus
    Join Date
    Dec 2008
    Location
    Timisoara, Romania
    Posts
    4,437

    Default Re: Problem with modding life-span

    From my experience, the age at which the portrait switched to old always matched with this. But since you say you can't get your generals over 128, you probably won't have it.

    Code:
          <max_age_for_conception uint="280"/>

  8. #8
    WImPyTjeH's Avatar Wimpy of the Sore Ass
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    628

    Default Re: Problem with modding life-span

    Quote Originally Posted by axnsan View Post
    From my experience, the age at which the portrait switched to old always matched with this. But since you say you can't get your generals over 128, you probably won't have it.

    Code:
          <max_age_for_conception uint="280"/>
    That's the problem, none of these parameters are read by the engine, it just ignores them. The engine automatically resets characters to 0 at the age of 128.


  9. #9

    Default Re: Problem with modding life-span

    must be my lucky day today, i just joined up to ask somthing simular to this and was going to do a new topic.

    i've read lot of threads about changing the age limit.

    and this is the one that i liked most.
    http://www.twcenter.net/forums/showt...ortal+generals

    tho they didn't mention anything about an age reset happening.

    my problem is that i can't even find the descr_campaign_db.xml file.

    can some one help me along but filling in the blanks
    C:\Program Files\SEGA\Medieval II Total War\????????????\descr_campaign_db

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem with modding life-span

    It is one of the thousands of packed files. This one is in the C:\Program Files\SEGA\Medieval II Total War\data folder.
    To unpack, go to the tools\unpacker folder. Run unpack_all.bat. Read the ReadMe file to find the names of the two files yo have to delete.










  11. #11
    WImPyTjeH's Avatar Wimpy of the Sore Ass
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    628

    Default Re: Problem with modding life-span

    No-one seems to have tested the engine limitations of age so far. If the values were to be followed the characters should at least reach 260 (old_age uint).

    Technically immortallity could be achieved by having your character resetted by the engine over and over again, which is quite silly.

    I think the max age of 128 is hardcoded, these values are only valuable to modders when they want to tweak age of men between 0 and 128 I presume.


  12. #12
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem with modding life-span

    I was under the impression that a crash will occur eventually because of that.










  13. #13
    Emperor of The Great Unknown's Avatar Primicerius
    Join Date
    Nov 2008
    Location
    far enough where verizon cant go
    Posts
    3,110

    Default Re: Problem with modding life-span

    no your 5th child will be there they just won't be sence on the family tree.
    Give a man a fish you feed him for a day, teach a man to fish you feed him for a lifetime.
    cant read?

Posting Permissions

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