Page 8 of 33 FirstFirst 123456789101112131415161718 ... LastLast
Results 141 to 160 of 652

Thread: 12 turns per year with proper aging

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: 12 turns per year with proper aging

    Quote Originally Posted by one of many View Post
    I used set_counter month 1 already,although i get the correct results,the changing process is imperfect,i wang to konwn why,could you tell me?

    thanks
    Did you make sure that the year specified next to start date is winter? If you don't make the start date winter than it will mess up the scripts.

  2. #2

    Default Re: 12 turns per year with proper aging

    Can you explain me in detail why must have start in winter ? I just want to keep it start in summer originally

  3. #3
    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

    Because the characters will age wrong if you start in summer.

  4. #4

    Default Re: 12 turns per year with proper aging

    I have changed the script start in summer,and set_counter month 3 , in the end use I_CompareCounter month != 3, the game runs ok ,the characters have correct age too,
    the only problem is sometimes the map appearance changes summer first then winter when the
    season changes between 2 winters,could you tellme why?
    Last edited by netcap; December 28, 2008 at 04:45 AM.

  5. #5
    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

    Because you have the natural order of the seasons screwed up. I did a lot of testing with this, and believe me the way I originally had it is the best.

    Also if you open your Faction Summary window by clicking your shield you will see that your date is now incorrect. This is designed to start in winter because of how the engine works.

    Quote Originally Posted by GrnEyedDvl View Post
    You could, but its easiest to do it the way I do it. Find the line that sets the month at 1 and change it to 6 or 7 or whatever. Note that this will screw up when the year changes. It will now change in June or July. Not worth it to me. The game starts counting the timescale at 0, so .0835 X 12 = new year. There is no way to start the timescale at say 500 and then go 6 turns to add teh first year and then count 12 afterr that.
    Quote Originally Posted by GrnEyedDvl View Post
    Also you HAVE to start in winter, and you HAVE to have the correct timescale in descr_strat. If not, the script will not work properly.

  6. #6

    Default Re: 12 turns per year with proper aging

    oh i get it.

    Thank you very much!

  7. #7

    Default Re: 12 turns per year with proper aging

    hi there does this mod work with stainless steel ?
    and can you tune it down to 2TPY ?
    alos did a good gaming experience with balance in your cities evolution
    i've tried a minimod for SS doing this, but there problem with rebel revolts destroying factions everywhere and huge cities after the first 30 turns...
    got does problem ?

  8. #8

    Default Re: 12 turns per year with proper aging

    Hi grneyedvl.....i got a question about 12 turns mod
    Is it supposed to show month or just season
    I've got a winter icon but no way of telling what month im in
    I've followed instuctions and got right amount of turns....but i wanted it to show month on campaign map

    be happy if u could help

    W4SPY

  9. #9

    Default Re: 12 turns per year with proper aging

    How to show the date as year and month, and not as turn?

    Thanks!

  10. #10
    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 W4SPY View Post
    Hi grneyedvl.....i got a question about 12 turns mod
    Is it supposed to show month or just season
    I've got a winter icon but no way of telling what month im in
    I've followed instuctions and got right amount of turns....but i wanted it to show month on campaign map

    be happy if u could help

    W4SPY
    Just the season. The game is not coded to show the month.


    Quote Originally Posted by Osiride View Post
    How to show the date as year and month, and not as turn?

    Thanks!
    You can show year, but not month.

    The only way to get the month to show is to create 12 historic_events, one for each month, and pop a new event every FactionTurnEnd.

  11. #11

    Default Re: 12 turns per year with proper aging

    hi,

    iam using the 12 turns with traits.

    but when i wanted to start a new game med has a ctd

    the 12 turns without traits run without any problems

    but when iam editing the export_descr_character_traits.txt and the export_vnvs.txt and deleting export_VnVs.txt.strings.bin the game chrashes by starting a new game.

    so whats wrong?

    and what do you mean with you have to convert the export_vnvs.txt?
    Last edited by sellmax; April 11, 2009 at 01:56 PM.

  12. #12
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,679
    Blog Entries
    35

    Default Re: 12 turns per year with proper aging

    and what do you mean with you have to convert the export_vnvs.txt?
    By deleting the string.bin version you force the game to create a new file from the txt version.

    To get the txt file in the first place you need to convert the string.bin file with the StringBin Converter










  13. #13
    Talic's Avatar Libertus
    Join Date
    Mar 2009
    Location
    Kouvostoliitto, Soviet Finland
    Posts
    69

    Default Re: 12 turns per year with proper aging

    I need some help, feels stupid stupid to ask but WHERE Exactly I put WHAT files? Do I put "12 Turns" or folders that are inside "12 Turns" into Medieval2 or into Third Age folder?

  14. #14
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: 12 turns per year with proper aging

    Neither.

    You need to add the code to the campaign script of the game you are playing:

    ....\data\world\maps\campaign\imperial_campaign

    open campaign_script.txt, check if the script already has a turns-per-year script (Vanilla does not, playing a mod you should ask the makers). When not, scroll down to the bottom and place the code of your turns-per-year script above the lines

    Code:
        wait_monitors
    
    end_script
    Afterwards open descr_strat.txt and make the needed changes to

    Code:
    start_date    1080 summer
    end_date    1530 winter
    timescale    0.50

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  15. #15
    Talic's Avatar Libertus
    Join Date
    Mar 2009
    Location
    Kouvostoliitto, Soviet Finland
    Posts
    69

    Default Re: 12 turns per year with proper aging

    Ok you just confused me more, can someone tell what exactly I have to do? From what konny said I got feeling that downloading that file was useless.

  16. #16

    Default Re: 12 turns per year with proper aging

    Men this is AWESOME! Work really well with my Third Ages Campaign thanks alot

  17. #17

    Default Re: 12 turns per year with proper aging

    No, not useless. You must copy and paste the contents of the 12 turn script to the bottom of your campaign_script.txt file.

  18. #18
    Talic's Avatar Libertus
    Join Date
    Mar 2009
    Location
    Kouvostoliitto, Soviet Finland
    Posts
    69

    Default Re: 12 turns per year with proper aging

    Thanks Redxavier, that helped alot I go test it right away
    So should it look like this?: trying to post whole crap
    Code:
    unit_deploy_stakes unit31
        unit_deploy_stakes unit32
        unit_deploy_stakes unit33
        unit_deploy_stakes unit34
        unit_deploy_stakes unit35
        unit_deploy_stakes unit36
        unit_deploy_stakes unit37
        unit_deploy_stakes unit38
        
        ai_active_set on
        set_counter label_ready 0
    end_monitor
    
    ;----------------------------------------------------
            ; keep script unfinised until last monitor termination
        wait_monitors
    
    end_script
    ;
    ; Campaign script
    ;    Written by GrnEyedDvl
    ;
    ;    Table of Contents
    ;    1. 12 turns per year, characters age in December
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    
    script
    
        ;show the whole map
        restrict_strat_radar false
    
    ;    1. 12 Turns per year.
    declare_counter month
    set_counter month 1 ;set to January
    
    monitor_event PreFactionTurnStart 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
    
        wait_monitors
    
    end_script
    Last edited by Talic; May 19, 2009 at 08:06 AM.

  19. #19
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: 12 turns per year with proper aging

    Code:
    unit_deploy_stakes unit31
        unit_deploy_stakes unit32
        unit_deploy_stakes unit33
        unit_deploy_stakes unit34
        unit_deploy_stakes unit35
        unit_deploy_stakes unit36
        unit_deploy_stakes unit37
        unit_deploy_stakes unit38
        
        ai_active_set on
        set_counter label_ready 0
    end_monitor
    
    ;----------------------------------------------------
            ; keep script unfinised until last monitor termination
        wait_monitors
    
    end_script
    ;
    ; Campaign script
    ;    Written by GrnEyedDvl
    ;
    ;    Table of Contents
    ;    1. 12 turns per year, characters age in December
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    
    script  
    
        ;show the whole map
        restrict_strat_radar false
    
    ;    1. 12 Turns per year.
    declare_counter month
    set_counter month 1 ;set to January
    
    monitor_event PreFactionTurnStart 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
    
        wait_monitors
    
    end_script

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  20. #20
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,679
    Blog Entries
    35

    Default Re: 12 turns per year with proper aging

    Code:
    end_script
    ;
    ; Campaign script
    ;    Written by GrnEyedDvl
    ;
    ;    Table of Contents
    ;    1. 12 turns per year, characters age in December
    Take out this instance marked in red. It has to be at the end of the script and you have it there already due to the copying.

    Edit: too late and forgot about the wait_monitors










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
  •