Results 1 to 9 of 9

Thread: advisor/script problem/bug

  1. #1

    Default advisor/script problem/bug

    i don't kwnow why but the advisor when i press esc doesn't appear..... any help will be much appreciate....

    btw if see http://www.twcenter.net/forums/forumdisplay.php?f=46 FRRE mod the scirpt activation is much easier maybe u can ask to salvor or someone of this team to help you

  2. #2
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: advisor/script problem/bug

    You have to press esc and then click on the menu's question mark - advisor will then appear! press on show me how. That's it.

    Thanx, we will ask them for a tutorial.
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

  3. #3

    Default Re: advisor/script problem/bug

    Quote Originally Posted by Hister View Post
    You have to press esc and then click on the menu's question mark - advisor will then appear! press on show me how. That's it.

    Thanx, we will ask them for a tutorial.
    Ty can u provide a screenshoot plz?

  4. #4
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: advisor/script problem/bug

    Here you go Giovi - it should help now

    When you pres esc this appears - click on the encircled questionmark:


    Then press on encircled "show me how" button -> 4tpy script is activated.
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

  5. #5

    Default Re: advisor/script problem/bug

    ty so much now it works perfectly really ty hister

    btw your metos of activating the script is great i have just not understood how it works but now is very fine and for the next version you should leave it as it 's now
    Last edited by Giovi; August 28, 2008 at 11:49 AM.

  6. #6
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: advisor/script problem/bug

    You think so - dunno, i also forget some time to activate the script but if we would have an advisor to appear I wouldn't so it's best to figure it out how to implement that. It shouldn't be to hard.
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

  7. #7

    Default Re: advisor/script problem/bug

    At least in my case, the script doesn't always "take" and has to be activated twice. I have the same problem with EB's script. I compulsively save before every end turn, so it's not a problem. I can always tell when a turn processed without the script because every historical event in vanilla BI gets triggered and I get a flood of message boxes.

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

    Default Re: advisor/script problem/bug

    Yeah, this problem exists in many mods, especially where a script generating program was used to create the 4tpy script. It's due to a problem in the way RTW processes scripts. Most 4tpy scripts have code that looks like this:

    Code:
    console_command date -229
    console_command season summer
    while I_TurnNumber = 38
        suspend_unscripted_advice true
    end_while
    
    console_command date -229
    console_command season winter
    while I_TurnNumber = 39
        suspend_unscripted_advice true
    end_while
    
    console_command date -228
    console_command season summer
    while I_TurnNumber = 40
        suspend_unscripted_advice true
    end_while
    Maybe the person who wrote the script/script generator did not think this was that big of an issue, or maybe they just did not realize what the problem was. Certainly took me a while to come up with an explanation...

    When you quit a game to start a new campaign, the script from the previous game is still running (this is a bug in RTW!) and it still thinks it's on turn number n. When you hit 'End Turn' and the value of I_TurnNumber changes (to 1, in case of a new campaign), the condition in the while loop becomes false and it moves on to the next line of code, to update the year/season, then checks the next while loop condition. That condition is also false, so it will keep updating the year/season until it gets to the end of the 4tpy script. Since historical events are triggered by year/season changes, you then end up getting a whole bunch of them.

    To prevent this from happening, the code can be modified slightly so the while condition stays true and the old script just does not do anything:

    Code:
    console_command date -229
    console_command season summer
    while I_TurnNumber < 39
        suspend_unscripted_advice true
    end_while
    
    console_command date -229
    console_command season winter
    while I_TurnNumber < 40
        suspend_unscripted_advice true
    end_while
    
    console_command date -228
    console_command season summer
    while I_TurnNumber < 41
        suspend_unscripted_advice true
    end_while
    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
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: advisor/script problem/bug

    HouseOfHam, + REP for you for helping PI team so much with scripts!
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

Posting Permissions

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