Results 1 to 9 of 9

Thread: Advisor pops up before every battle

Hybrid View

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

    Default Advisor pops up before every battle

    Hi all!

    I have a problem in DTW, the advisor pops up every time before a battle, when the scroll with odds and forces in the field comes up. The advisor comes with the background script message. I have posted here the background script and the export_descr_advice I have, maybe some exper in scripting will figure out why it behaves like that...

    Thanks in advance


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

    Default Re: Advisor pops up before every battle

    I looked at it but I canīt find the error? Do you use Squids Tool to validate scripts?

    If not, click
    it is very useful and can find the error.

  3. #3

    Default Re: Advisor pops up before every battle

    Thanks, I will give it a try.

    EDIT: the tool found a number of "errors", but they aren't related to my issue. It says conditions such as "factiontype" and "treasury" are unknown.
    Last edited by Spartan 666; August 28, 2011 at 08:52 AM.


  4. #4
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Advisor pops up before every battle

    Those should be in cammel-case.

    What is advisor verbosity set to in game preferences?
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  5. #5

    Default Re: Advisor pops up before every battle

    I'm afraid the verbosity doesn't matter, because even setting it to 0 doesn't fix the issue.
    Last edited by Spartan 666; August 28, 2011 at 01:50 PM.


  6. #6
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Advisor pops up before every battle

    Mmm... I don't think this is really anything with advice threads, but rather that you're not terminating the background script before reloading.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  7. #7

    Default Re: Advisor pops up before every battle

    It happens also when you start the game and a new campaign, with no scripts previously running...


  8. #8
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Advisor pops up before every battle

    The next thing that comes to mind is that triggers for the ButtonPressed event maybe a bit too generic.
    Code:
    Trigger BK_Script_Thread_Trigger_3
        WhenToTest ButtonPressed
        Condition I_MapName DTW/data/world/maps/campaign/alexander/descr_strat.txt
        AdviceThread BK_Script_Thread 1
    and similar ones for the provincial campaigns below. Try limiting them to specific buttons. For example:

    Code:
    Trigger BK_Script_Thread_Trigger_3
        WhenToTest ButtonPressed
        Condition ButtonPressed faction_button
        and I_MapName DTW/data/world/maps/campaign/alexander/descr_strat.txt
        AdviceThread BK_Script_Thread 1
    In RTR, we use separate triggers for faction_button, construction_button, and recruitment_button.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  9. #9

    Default Re: Advisor pops up before every battle

    Ok I will try to limit to that condition!

    EDIT: didn't work, it still pops up.
    Last edited by Spartan 666; August 31, 2011 at 01:51 PM.


Posting Permissions

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