Page 2 of 33 FirstFirst 12345678910111227 ... LastLast
Results 21 to 40 of 652

Thread: 12 turns per year with proper aging

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: 12 turns per year with proper aging

    Quote Originally Posted by Ataegina View Post
    i've tried make this for 4 turns (3months) but this ends in CTD
    I didnt see anything obviously wrong other than you started in summer. That alone might do it. Is there anything in your log?




    Quote Originally Posted by aNarion. View Post
    Hmm.. well i tried it the first time at the top of the script... and then it didnt work, the characters aged after every turn..
    Then after that i tried in the bottom of the script, and voula, it worked! I might have done some mistake the first time, but either may it now works fine!

    I must say that im very satisfiedwith this, rep+!
    Either you made a mistake or there is something in the SS script that confilcts with it. Glad to hear you got it working.

  2. #2
    Ahlerich's Avatar Praeses
    Join Date
    Nov 2005
    Location
    Germany, Freiburg
    Posts
    8,270

    Default Re: 12 turns per year with proper aging

    ok i give up.

    my 4 tpy script is attached. its the last lines in the script

    somebody please look at it and tell me what i need to change to make it run. (descr_strat has 0,25 as timerate)

    oh in the holy name of statan!

    spend like half a day looking oand testing an i forgot "wait_monitors"
    Last edited by Ahlerich; April 26, 2010 at 11:51 AM.

  3. #3

    Default Re: 12 turns per year with proper aging

    I have a problem with incorporating the script into my campaign script. I've changed the start from summer to winter and the the timescale to 0.0835. The characters age perfectly well and each year has 12 turns, but the script breaks the triggering of events. I've experimented with different approaches, but couldn't find a solution so far. Can anybody help me, please?

    Here's the beginning of my campaign script where I've inserted the script:


    Code:
    ;
    ; Campaign script
    ;
    
    
    script
          
        ; ---------------------
            ; counters
            
            declare_counter Opened_Faction_Overview_Scroll
            declare_counter Opened_Settlement_Scroll
            declare_counter mongols_sarkel
            declare_counter mongols_yerevan
            declare_counter mongols_baghdad
            declare_counter timurids_sarkel
            declare_counter timurids_yerevan
            declare_counter timurids_baghdad
            
            
            ; ---------------------
            ; start up
    
            freeze_faction_ai aztecs
    
            ;----------------------
            ; monitors
    
            
        ;    1. 12 Turns per year.
    declare_counter month
    set_counter month 1 ;Set to January
    
    monitor_event FactionTurnStart FactionIsLocal ; set the season for each month
        if I_CompareCounter month == 1 ;January
            console_command season winter
        end_if
        
        if I_CompareCounter month == 2 ;February
            console_command season winter
        end_if
        
        if I_CompareCounter month == 3 ;March
            console_command season summer
        end_if
        
        if I_CompareCounter month == 4 ;April
            console_command season summer
        end_if
        
        if I_CompareCounter month == 5 ;May
            console_command season summer
        end_if
        
        if I_CompareCounter month == 6 ;June
            console_command season summer
        end_if
        
        if I_CompareCounter month == 7 ;July
            console_command season summer
        end_if
        
        if I_CompareCounter month == 8 ;August
            console_command season summer
        end_if
        
        if I_CompareCounter month == 9 ;September
            console_command season summer
        end_if
        
        if I_CompareCounter month == 10 ;October
            console_command season winter
        end_if
        
        if I_CompareCounter month == 11 ;November
            console_command season winter
        end_if
        
        if I_CompareCounter month == 12 ;December
            console_command season winter
        end_if
        
        inc_counter month 1 ;advance the month
        if I_CompareCounter month == 13 ;start a new year
            set_counter month 1
        end_if
    end_monitor
    
    monitor_event FactionTurnEnd FactionType slave
        and I_CompareCounter month < 12
        console_command season summer
    end_monitor
    
    
        
        ;-- Mongols invasions --
        monitor_event EventCounter EventCounterType mongols_invasion_warn
            and EventCounter > 0
            ; ADD SCOUTING INVASION
            add_events
                event    counter    mongols_invasion
                date    4 8
           end_add_events
            if I_EventCounter mongols_invasion_warn == 2
                terminate_monitor
            end_if
        end_monitor
    
        monitor_event EventCounter EventCounterType mongols_invasion
            and EventCounter > 0
            if I_EventCounter mongols_invasion == 1
                add_events
            ;;; SCOUTING INVASION
                    event    emergent_faction    mongols
                    date    0
    ;                 region     Tbilisi_Province
                    region     Yerevan_Province
                    region    Bulgar_Province
                    region    Sarkel_Province
                    region     Baghdad_Province
                    movie    event/mongols_invade.bik
                    ;ADD MONGOL INVASION 1
                    event    counter    mongols_invasion
                    date    2
                end_add_events
            end_if
            if I_EventCounter mongols_invasion == 2
     
                ;Sarkel
                if I_CharacterTypeNearTile mongols named_character, 30 258, 134
                    set_counter mongols_sarkel 1
                end_if
                ;Tbilisi / Yerevan
                if I_CharacterTypeNearTile mongols named_character, 20 278, 101
                    set_counter mongols_yerevan 1
                end_if
                ;Baghdad
                if I_CharacterTypeNearTile mongols named_character, 30 291, 70
                    set_counter mongols_baghdad 1
                end_if

  4. #4

    Default Re: 12 turns per year with proper aging

    This script is awesome. But my campaign events no longer work. Is there anyway to repair this?

  5. #5

    Default Re: 12 turns per year with proper aging

    Could this work for SS 6.4? And could you make it 24TPY rather than 12?

  6. #6

    Default Re: 12 turns per year with proper aging

    I love this script, just added it to my game.

    Is their any way at all to change it so the start is summer and not winter?
    The Watchwords Of Midnight
    "The brave and the free fear no foe, go forth, mighty hosts of Midnight! Unto death or victory we go!"

    The Midnight Chronicles

  7. #7

    Default Re: 12 turns per year with proper aging

    Hey GrnEyedDvl how do I adjust this for the late era campaign? And where do I put the campaign_script? And, does it work with old saves?

  8. #8
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: 12 turns per year with proper aging

    Quote Originally Posted by Sorkenlol View Post
    Hey GrnEyedDvl how do I adjust this for the late era campaign?
    As long as your date is properly set up in descr_strat, it will work with anything. It doesnt need to be adjusted.



    And where do I put the campaign_script?
    You add it into your current campaign_script which is located in data/world/campaign/imperial_campaign.



    And, does it work with old saves?
    No.

  9. #9

    Default Re: 12 turns per year with proper aging

    Quote Originally Posted by GrnEyedDvl View Post
    As long as your date is properly set up in descr_strat, it will work with anything. It doesnt need to be adjusted.




    You add it into your current campaign_script which is located in data/world/campaign/imperial_campaign.




    No.

    Do I remove the old text in the campaign script? I've played so far like that, but some things haven't triggered, on event movies are missing, spawns like william wallace etc.

    Ah , read your post above now, seems I've been doing it very wrong then.. I put it after ----DIFFICULTY LEVEL----- and end monitor, do I need those "--------------------"?
    Last edited by Sorkenlol; August 31, 2008 at 10:55 PM.

  10. #10
    aNarion.'s Avatar Centenarius
    Join Date
    Jul 2006
    Location
    Sweden, närke
    Posts
    846

    Default Re: 12 turns per year with proper aging

    Awesome!!

    Thought this was hardcorded?

    Anyway, if i would like this to work for SS, do i just copy the script text, and put it in campaign_script, and change the timescale, start_date in descr_strat?

    edit: where should i put it exacly in the campaign_script, in the bottom or?
    Last edited by aNarion.; July 08, 2008 at 08:27 AM.

  11. #11

    Default Re: 12 turns per year with proper aging

    Thanks again GrnEyedDvl.
    The Watchwords Of Midnight
    "The brave and the free fear no foe, go forth, mighty hosts of Midnight! Unto death or victory we go!"

    The Midnight Chronicles

  12. #12
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: 12 turns per year with proper aging

    Welcome.

  13. #13

    Default Re: 12 turns per year with proper aging

    i've tried make this for 4 turns (3months) but this ends in CTD

    start_date 1174 summer
    end_date 1453 winter
    timescale 0.25
    declare_counter month
    set_counter month 1 ;set to winter

    monitor_event PreFactionTurnStart FactionIsLocal ; set the season for each month
    if I_CompareCounter month == 1 ;winter
    console_command season winter
    end_if

    if I_CompareCounter month == 2 ;spring
    console_command season summer
    end_if

    if I_CompareCounter month == 3 ;summer
    console_command season summer
    end_if

    if I_CompareCounter month == 4 ;Autumn
    console_command season winter
    end_if

    inc_counter month 1 ;advance the month
    if I_CompareCounter month == 5 ;start a new year
    set_counter month 1
    end_if
    end_monitor

    monitor_event FactionTurnEnd FactionType slave
    and I_CompareCounter month < 4
    console_command season summer
    end_monitor
    so what is wrong ?
    Common sense removed due being Disruptive.

  14. #14

    Default Re: 12 turns per year with proper aging

    ok, so ill try start in winter and see what happen next ....
    Common sense removed due being Disruptive.

  15. #15

    Default Re: 12 turns per year with proper aging

    this still giving me CTD's , also in logs this don't tell nothing about errors in campaign_script or even less in descr_strat
    Common sense removed due being Disruptive.

  16. #16
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: 12 turns per year with proper aging

    You have the trace option enabled?

  17. #17

    Default Re: 12 turns per year with proper aging

    Working well for me now, t'was the start winter thingie. Thank's again for the help .

    Under the benevolent guidance of jimkatalanos

  18. #18

    Default Re: 12 turns per year with proper aging

    well this is working for me now, without CTD, the 4 turns per year its working, but..... the character never get old, i've experiment with leader with 54 years and 10 turns later in my case (2 years and half later) he still with 54....so what is wrong? have we found a elixir of eternal youth ?
    Common sense removed due being Disruptive.

  19. #19
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: 12 turns per year with proper aging

    Your season isnt changing properly on teh end of the 4th turn.

    make sure you start your campaign in winter.


    Change this line, at teh top of your script:
    set_counter month 1 ;set to winter

    To this:
    set_counter month 0 ;set to winter

  20. #20

    Default Re: 12 turns per year with proper aging

    still the same, nobody gets older after the 4 turn....
    Common sense removed due being Disruptive.

Tags for this Thread

Posting Permissions

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