Results 1 to 20 of 20

Thread: Upgrading general units

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Upgrading general units

    Do I understand correctly that:
    1) General units can only be upgraded if there's a building with the bodyguard attribute.
    2) The hard-coded Marian Reforms occur.
    3) There's a unit with a general_unit_upgrade attribute that shouldn't also have the general_unit attribute.
    4) That unit is not recruitable at a building, since that will cause a CTD.
    ?
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

  2. #2
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: Upgrading general units

    Quote Originally Posted by Quinn Inuit View Post
    Do I understand correctly that:
    1) General units can only be upgraded if there's a building with the bodyguard attribute. Yes
    2) The hard-coded Marian Reforms occur. Yes
    3) There's a unit with a general_unit_upgrade attribute that shouldn't also have the general_unit attribute. No I think they have to have both
    4) That unit is not recruitable at a building, since that will cause a CTD. I am not sure - recruitable generals are possible, and when I declared a gladiator unit to be spartacus bodyguard but never removed them from recruiting by colloseums it didnīt lead to a ctd
    5) There can be just one upgrade, the first unit in the edu with this attribut is selected by the game for it
    6) I am not sure about it, but every general gets his maximum number of bodyguards, regardless if he before had -for example - 2
    ^
    Last edited by Primo; September 03, 2011 at 01:18 AM.

  3. #3
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: Upgrading general units

    Very interesting, thank you.

    I know you can make generals recruitable, but AFAIK you can't make the upgraded general unit recruitable. Am I right?

    That's good to know about the unit maxing out in size. Yikes.

    Say the general unit upgrade occurs at Time T. At Time T + 1, your son Bob the Cunning comes of age. Will Bob the Cunning get the general_unit_upgrade unit?
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

  4. #4

    Default Re: Upgrading general units

    Quote Originally Posted by Quinn Inuit View Post
    I know you can make generals recruitable, but AFAIK you can't make the upgraded general unit recruitable. Am I right?
    @Quinn, I noticed this thread, and it didn't look as if this particular question was answered. Maybe you already found out on your own. I just wanted to let you know that the upgraded General units can be made recruitable, provided the Reforms have happened.
    IBRR Fanatic

  5. #5
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: Upgrading general units

    Another question: if the upgrade requires the hard-coded Marian Reforms to take place, why does the Vanilla Barbarian Invasion EDB include upgrade buildings?
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

  6. #6
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: Upgrading general units

    Quote Originally Posted by Quinn Inuit View Post
    Very interesting, thank you.

    I know you can make generals recruitable, but AFAIK you can't make the upgraded general unit recruitable. Am I right?

    That's good to know about the unit maxing out in size. Yikes.

    Say the general unit upgrade occurs at Time T. At Time T + 1, your son Bob the Cunning comes of age. Will Bob the Cunning get the general_unit_upgrade unit?
    Yes.
    It works even better: If you assign a general in descr_strat a random generals unit (like a roman general a barbarian bodyguard) they will be both re-filled and upgraded

    Quote Originally Posted by Quinn Inuit View Post
    Another question: if the upgrade requires the hard-coded Marian Reforms to take place, why does the Vanilla Barbarian Invasion EDB include upgrade buildings?
    I never played Barbarian Invasion and I have no idea.

  7. #7
    ithinkitsdead's Avatar Semisalis
    Join Date
    Jun 2008
    Location
    The southern marshlands.
    Posts
    492

    Default Re: Upgrading general units

    Wait, I couldn't wrap my head around that.
    You say the upgrade should NOT have the general_unit attribute if it has the general_unit_upgrade attribute????

    I was running through the EDU of Vanilla to confirm and each of the upgrade units had the general_unit and general_unit_upgrade attribute's....care to elaborate?


  8. #8
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Upgrading general units

    Not it should have both.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  9. #9
    ithinkitsdead's Avatar Semisalis
    Join Date
    Jun 2008
    Location
    The southern marshlands.
    Posts
    492

    Default Re: Upgrading general units

    Hmmmmmmmmm........
    All right, Squid. I will discard that as the issue. Thanks!


  10. #10
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: Upgrading general units

    Quote Originally Posted by ithinkitsdead View Post
    Hmmmmmmmmm........
    All right, Squid. I will discard that as the issue. Thanks!
    Didnīt I already said it earlier?
    3) There's a unit with a general_unit_upgrade attribute that shouldn't also have the general_unit attribute. No they have to have both

  11. #11
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: Upgrading general units

    Hmmm...are you sure about that? I thought I read something to the contrary.

    Also, I can not seem to enable the bodyguard upgrade. I've even tried starting the game with Marian reforms activated and a building in every city with the bodyguard upgrade ability, but they won't upgrade. I know the reforms are on because I attached a "Happiness + 20 requires reforms" condition* to the building as well, and that was working.


    *If you're going to use a test condition, IMO you might as well make it easily noticeable.
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

  12. #12

    Default Re: Upgrading general units

    Yes, I do it all the time. here are 3 lines from my Imperial Palace in in my export_descr_buildings:

    recruit "roman generals guard cavalry early" 0 requires factions { romans_julii, } and not marian_reforms
    recruit "roman generals guard cavalry" 0 requires factions { romans_julii, } and marian_reforms and hidden_resource legio2 or hidden_resource east2 or hidden_resource gallic2 or hidden_resource alexandria or hidden_resource tingi or hidden_resource carthage or hidden_resource massilia or hidden_resource antioch
    upgrade_bodyguard 1 requires factions { dacia, germans, scythia, greek, roman, }

    Obviously you don't need all the hidden resources I set(I just wanted to limit where they could be hired from), but it works!

    Added to that is that ownership obviously needs to be set on the unit model, as well as the general_unit_upgrade attribute. I've also done it for a few other factions as well. And I have a couple factions where I've entirely eliminated the early model, and only the upgraded general unit is recruitable, both by me or the AI from the beginning.
    IBRR Fanatic

  13. #13
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: Upgrading general units

    Thanks for the explanation. I'll use that format on the recruitable generals.

    How do you get the
    upgrade_bodyguard 1
    EDB line to function, though? That's what's really causing me headaches. It won't let me retrain generals to the upgraded versions like Nightmare Moon suggested above, and with at least some configurations new generals that came of age were still the early unit, too. (Admittedly, I haven't tried the coming of age with all configurations of code.)
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

  14. #14

    Default Re: Upgrading general units

    Honestly, I don't know what is happening with your game's inability to have general's coming of age be the upgraded units. For me it just seems to go like clockwork once the reforms have happened. Perhaps the key is the general unit attribute or upgrade attribute on those units in your EDU?

    *I'm actually in awe that my limited experience just modding my own game would be of any use to you, as you are near-legendary, LOL.
    Last edited by AveCaesar; September 09, 2011 at 10:52 AM. Reason: added comment
    IBRR Fanatic

  15. #15
    Primo's Avatar Protector Domesticus
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    4,007

    Default Re: Upgrading general units

    Quote Originally Posted by Quinn Inuit View Post
    Thanks for the explanation. I'll use that format on the recruitable generals.

    How do you get the
    upgrade_bodyguard 1
    EDB line to function, though? That's what's really causing me headaches. It won't let me retrain generals to the upgraded versions like Nightmare Moon suggested above, and with at least some configurations new generals that came of age were still the early unit, too. (Admittedly, I haven't tried the coming of age with all configurations of code.)
    After my knowledge it just works if you have both the Marian reform and a building with said attribute. This kinda removes the feature from the game, so I am not sure if the line is neccessary.

  16. #16

    Default Re: Upgrading general units

    Is there any way to get an upgrade if the marian reforms haven't happened. I ask because I want the upgrade to happen to another faction that wouldn't depend on marian reforms. I wonder if there is a way to do it with scripts?

  17. #17
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Upgrading general units

    No if there's no reform then no upgrade and the only way to do it through scripts is to still have a roman cultured faction still in the game, and if that was the case the reforms could still happen on their own anyways.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  18. #18

    Default Re: Upgrading general units

    Could I set up a script that checks for a certain building. Then if present kill off the old character and spawn the new upgraded one?

  19. #19
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Upgrading general units

    Only on a character by character basis and only if you knew the characters name, which only happens if you have spawned the character in the first place.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  20. #20
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: Upgrading general units

    Quote Originally Posted by AveCaesar View Post
    Honestly, I don't know what is happening with your game's inability to have general's coming of age be the upgraded units. For me it just seems to go like clockwork once the reforms have happened. Perhaps the key is the general unit attribute or upgrade attribute on those units in your EDU?

    *I'm actually in awe that my limited experience just modding my own game would be of any use to you, as you are near-legendary, LOL.
    Me? Legendary? Are you sure you're not thinking of Squid?

    Quote Originally Posted by Nightmare Moon View Post
    After my knowledge it just works if you have both the Marian reform and a building with said attribute. This kinda removes the feature from the game, so I am not sure if the line is neccessary.
    Finally got it working. I think it may have been working for awhile, but I didn't realize it because it wouldn't let me retrain. Now, though, the upgrade is kicking in even without the upgrade_bodyguard building being present. Any idea why that is? I have Marian Reforms active at the start of the game.
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

Posting Permissions

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