Results 1 to 6 of 6

Thread: Script problems

Hybrid View

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

    Default Script problems

    I noticed with my 6tpy script that it fails to work if i quit a campaign and then start another. This results in being unable to save or load and the years being completely wrong.

    I have:

    monitor_event ScrollAdviceRequested ScrollAdviceRequested end_game_scroll
    terminate_script
    end_monitor

    ; Handle saved game reloads
    monitor_event GameReloaded TrueCondition
    terminate_script
    end_monitor

    near the start of the script. Is this a well known problem or is there something I have missed?

  2. #2
    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: Script problems

    You need a monitor so that if you quit the game it terminates the script. I can't remember where I read it, but if you don't terminate the script then you won't be able to correctly use another unless you shut down RTW and restart it.
    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

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

    Default Re: Script problems

    Are you actually pressing the '?' button in the main menu before you quit?
    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

  4. #4

    Default Re: Script problems

    Yeah, sorry, is there a way to automatically end the script when the exit button is pressed? I tried

    monitor_event ButtonPressed ButtonPressed confirm_quit_scroll

    But that didn't work
    Last edited by Zhuge_Liang; July 13, 2009 at 05:58 PM.

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

    Default Re: Script problems

    Nope, not in RTW.
    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

  6. #6

    Default Re: Script problems

    Quote Originally Posted by HouseOfHam View Post
    Nope, not in RTW.

    Nuts.

    I have a new problem which I pm'd you about. I'm guessing it won't be a simple solution.

Posting Permissions

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