Results 1 to 9 of 9

Thread: Generals Traits: How do i switch them off?

Hybrid View

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

    Default Generals Traits: How do i switch them off?

    I have already downloaded a mod (Garrison Traits Removed) which was supplied to me by Viking1978 and turns off a number of negative traits that are awarded when you try to defend your towns and cities in Rome 2.

    But I would really like to extend this mod to switch off a number of other random and nonsensical traits that are ruining my enjoyment of the game, such as Overly-Generous; Flaccid, and Foul-mouthed. I'm just not sure how to do it.

    The Garrison Traits Removed mod seems to contain a list of trigger conditions such as:

    events.CharacterTurnStart[#events.CharacterTurnStart+1] =
    function (context)
    if r2_sp_trait_rome_mad_impl(context) then
    effect.trait("r2_sp_trait_rome_mad", "agent", 1, 0, context)
    effect.trait("r2_sp_trait_rome_mad", "agent", 1, 0, context)
    return true
    end
    return false
    end

    But I'm not sure if I have to add to these or remove the ones i don't want.

    Can anyone advise?

  2. #2

    Default Re: Generals Traits: How do i switch them off?

    I too would like to remove all the randomly assigned traits. I looked for relevant table entries but didn't find anything, not even a global parameter to control the speed at which those traits are gained.

    I don't know this Garrison Traits Removed mod and couldn't find it anywhere (only Google result is this thread). If you could upload it I might be able to figure out what exactly it does.

  3. #3

    Default Re: Generals Traits: How do i switch them off?

    Quote Originally Posted by Asdf View Post
    I too would like to remove all the randomly assigned traits. I looked for relevant table entries but didn't find anything, not even a global parameter to control the speed at which those traits are gained.

    I don't know this Garrison Traits Removed mod and couldn't find it anywhere (only Google result is this thread). If you could upload it I might be able to figure out what exactly it does.
    The lua triggers that control the award of traits can be found in the data pack files (e.g. data.pack and data_rome2.pack). I'm not convinced that they are all in a single lua script file as it's quite difficult to identify them, but most seem to be under export_triggers.lua. Unfortunately, there is no text search function in the PFM so finding the trait you are interested in is awkward. I found it easier to copy the entire file into notepad and then use it to search for the traits I was interested in. (For example: I have yet to find the trigger for the flaccid trait (r2_sp_trait_all_infertile) so that continues to pop up at random intervals.

    I was also hoping to be able to decipher what the conditions were that trigger these traits, but that proved to complex for me to figure so I've decided just to drop the triggers completely if I can work out how to do it.

    The Garrison Traits Removed Mod can be downloaded from the link provided by Viking1978 here. http://www.twcenter.net/forums/showt...1#post14240309
    Last edited by Didz; December 13, 2014 at 05:42 AM.

  4. #4
    Inevitability won
    Patrician Citizen

    Join Date
    Mar 2010
    Posts
    9,594

    Default Re: Generals Traits: How do i switch them off?

    Well if you want to remove a traits ability to spawn then its those scripting chunks that you referenced that do it. So deleting them from the file should do it.

  5. #5

    Default Re: Generals Traits: How do i switch them off?

    Sorry, didn't notice your last post there. Like .Mitch. says, just remove the whole block of the trait you don't want to see in the game. I kept the background. This mod was just to make sure that you could keep a general in a garrison without any negative effects, because you often really need a general there to get some order and only a single turn in a garrison would yield a negative trait that I have never known to change afterwards, although it is supposed to according to the encyclopedia. To decipher the trigger conditions may be a bit of guessing... The way you use notepad is good, I think that way you should be able to find the traits you need.

    A few months ago there was a similar mod out and I still expect its return, that's why I never uploaded "my mod" in a fancy, official download page. If it doesn't return soon, maybe I will still do it...
    Last edited by Viking1978; December 22, 2014 at 04:23 AM.

  6. #6

    Default Re: Generals Traits: How do i switch them off?

    I just got back into RTW2 after a long absence and the traits popping up just because I like garrisoning generals is annoying me, so I'd like to download your mod but that filedropper link from that other thread isnt working anymore. Do you have a new link and/or what is the mod you are referring to that might have come back?

    Thanks for the help!

    Also will it work on an existing save or do I need to start a new campaign? (I understand that traits already triggered will stay, but will I not get new ones at least?)

    Thank you!

  7. #7

    Default Re: Generals Traits: How do i switch them off?

    Quote Originally Posted by Tomcat84 View Post
    I just got back into RTW2 after a long absence and the traits popping up just because I like garrisoning generals is annoying me, so I'd like to download your mod but that filedropper link from that other thread isnt working anymore. Do you have a new link and/or what is the mod you are referring to that might have come back?
    Hmm! not sure why it's stopped working. But you might find it helpful to send a PM to Viking1978.

    Alternatively, you could just do your own version using pack file manager to produce a replacement trait file with the traits you want removed from the game deleted. (The section of the file you are looking to edit and replace is the data.pack/lau_scripts/export_triggers.lua) Just edit that section of the file by deleting the triggers for the traits you don't want and then save the edited version as pack file of a different name.

    e.g. Garrison_traits_removed.pack

    I've recently changed the version provided by Viking1978 to remove the triggers for the madness traits too.

    Also will it work on an existing save or do I need to start a new campaign? (I understand that traits already triggered will stay, but will I not get new ones at least?)
    It will work on an existing game, though as you rightly point out it won't remove any traits which have already been gained. The pack file you edit merely controls the conditions under which new traits are awarded. One other interesting point to note is that it even seems to work for multiplayer games. I play Co-Op with my son and can smugly rely on total immunity to garrison traits whilst he suffers because he isn't using the mod.
    Last edited by Didz; January 08, 2015 at 01:53 PM.

  8. #8

    Default Re: Generals Traits: How do i switch them off?

    I did and he has responded to me, the link works again at this time.

    Thank you also for the additional info!

  9. #9

    Default Re: Generals Traits: How do i switch them off?

    Great! Thats good to hear.

    The only other thing I would mention is that when I first started using Vikings version I found I was still getting some unwanted traits and wasn't sure why. The only reason I could think of was that G comes after D in the alphabet and so in the data folder the pack file was listed after the data file. I was thinking perhaps there was a load order issue that was overriding the changes. Anyway I ended up renaming the pack file agarrison_traits_removed.pack just to force it to the top of the file list in the folder, and whether by design or coincidence I haven't noticed any problems since.

    It might be a complete 'red-herring', but I thought I'd mention it just in case. I know using mod-manager on Empire Totalwar that load order is important for mods, but I don't have a mod manager for Rome 2.

Posting Permissions

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