Results 1 to 30 of 76

Thread: Research: Fixing the trait bugs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Research Fiend Technical Administrator Tetris Champion, Summer Games Champion, Snakeman Champion, Ms Pacman Champion therother's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    2,637

    Default Re: Research: Fixing the trait bugs

    Quote Originally Posted by Kraxis
    Have I understood it correctly that Coward with the old fix is impossible?
    As I understand it, it will be impossible with Camp Freddie's fix if you fight all battles on the battlemap, as the condition GeneralFoughtInCombat is always true. However, it should be possible to get it from an autocalc battle.

    Quote Originally Posted by player1
    If anybody is interested I made fixed version of coward and scarred trait at Scarface thread at twcenter
    Any chance you could compile the changes made into one post?
    Last edited by therother; 02-27-2005 at 00:39.
    Nullius addictus iurare in verba magistri -- Quintus Horatius Flaccus

    History is a pack of lies about events that never happened told by people who weren't there -- George Santayana

  2. #2
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Research: Fixing the trait bugs

    Ok, I'll try.
    It's pretty much slightly modified version of Camp Freddie fixes to export_descr_character_traits.txt

    these are modified battle1 triggers:
    Code:
    ;------------------------------------------
    Trigger battle1
        WhenToTest PostBattle
    
        Condition GeneralHPLostRatioinBattle < 0.7
    
        Affects BattleScarred  1  Chance  30 
        Affects Brave  1  Chance  15 
    
    ;------------------------------------------
    Trigger battle1b
        WhenToTest PostBattle
    
        Condition GeneralHPLostRatioinBattle < 0.7
              and Trait Berserker >= 1
    
        Affects Berserker  1  Chance  30 
    
    ;------------------------------------------
    Trigger battle1R
        WhenToTest PostBattle
    
        Condition GeneralHPLostRatioinBattle < 0.7
              and CultureType roman
    
    ;    Affects BattleScarred  1  Chance  30 
        Affects RomanHero  1  Chance  15 
    
    ;------------------------------------------
    and modified battle4 trigger:
    Code:
    ;------------------------------------------
    Trigger battle4
        WhenToTest PostBattle
    
        Condition GeneralNumKillsInBattle = 0
              and PercentageEnemyKilled > 0
    
        Affects Coward  1  Chance  10 
    
    ;------------------------------------------
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  3. #3
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Research: Fixing the trait bugs

    quote the message if you wanna see correct formating
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  4. #4
    Ricardus Insanusaum Member Bob the Insane's Avatar
    Join Date
    Sep 2002
    Location
    London, UK
    Posts
    1,911

    Default Re: Research: Fixing the trait bugs

    For the coward thing I am using:

    Code:
    ;------------------------------------------
    
    Removed due to being stupid...  ~D   
    
    ;------------------------------------------
    If I follow this correct this is triggered if the general was on the battlefield but was withdrawn (GeneralFoughtInCombat returns false) and none of the enemy was killed...

    From what I can see you should only get the coward trait when you go to the battlemap, if you withdraw from the strategic map a lot you should get IndecisiveAttacker instead. Is this what people see?
    Last edited by Bob the Insane; 02-27-2005 at 15:16.

  5. #5
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Research: Fixing the trait bugs

    You need to realise that after some testing I'm confident to say that GeneralFoughtInCombat is always true in battle.

    But, if you do autocalc, it would be only true if general didn't actually fighted.
    So GeneralFoughtInCombat is bugged. Use some other trigger instead.

    Also, what you use (with added not), will trigger coward when doing autocalc and some enemies get killed, but not by general.

    Better replace it with GeneralNumKillsInBattle = 0, so it works for both autocalc and manual battle.
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  6. #6
    Ricardus Insanusaum Member Bob the Insane's Avatar
    Join Date
    Sep 2002
    Location
    London, UK
    Posts
    1,911

    Default Re: Research: Fixing the trait bugs

    player1 - I understand where you are coming from and I understand the problems you have pointed out... (I have removed the code I suuggested to avoid confusng people)...

    But, one thing I noted with the example you provide, it will not trigger coward for simply withdrawing from the battlefield immediately (on the battlemap). Where GeneralNumKillsInBattle = 0 and PercentageEnemyKilled = 0 (I presume)... Was this intentional?

  7. #7
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Research: Fixing the trait bugs

    The problem is that if you leave that, then you could get coward trait when enemy withraws right from start (and not just you).
    Last edited by player1; 02-27-2005 at 17:01.
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  8. #8

    Default Re: Research: Fixing the trait bugs

    Quote Originally Posted by Bob the Insane
    But, one thing I noted with the example you provide, it will not trigger coward for simply withdrawing from the battlefield immediately (on the battlemap). Where GeneralNumKillsInBattle = 0 and PercentageEnemyKilled = 0 (I presume)... Was this intentional?
    Player1's fixes to my attempt at solving the coward bug seem to be the best option. Generalfoughtincombat seems to be totally buggered. This could be affecting the Heroic Saviour ancilliary too, which should be changed to GeneralNumKillsInBattle > 0.

    To answer your question, it will not trigger if you withdraw, BUT that isn't what the coward trait is about.
    There's another trait (indecisive attacker) and 3 triggers which cover withdrawing before combat (100% chance when you are the attacker, 50% chance when odds are 0.8-1.5 and a 50% chance for a 2-step increase when odds >3). It has huge thresholds though (8, 16, 32) and has goodcommander and goodattacker as antitraits, so it's hardly ever seen.
    Strangely, if odds are 1.5-3 and you aren't attacking, it's safe to withdraw - another trait glitch!
    Therefore, in Trigger V0200, the > 3 should be reduced to > 1.5. If you want coward traits to be added, then put "coward 1 chance 50" in Trigger V0200, which would now fire when odds >1.5 and you withdraw. You could put "coward 1 chance 10" in Trigger V0190 as well, if you want to really persecute generals who avoid battle when they have a good chance of winning!
    The only problem is that I don't know how often the AI general withdraws. If he withdraws a lot (he did in MTW) then he could be heavily penalised by coward traits. That might even be the reason why "indecisive attacker" has such high thresholds.
    Camp Fweddie - Wanking higher than any in Wome since 273 BC

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO