The privy forum for sub-mods of THIRD AGE TOTAL WAR; 'Divide & Conquer' and 'Ruins of Arnor' ++ team chat/editing/discussion zone++


    .cfg file for most detailed error logging

    Share
    avatar
    Archaon
    Possessor of the One Ring
    Possessor of the One Ring

    Gender : Male Posts : 890
    Join date : 2009-06-16
    Age : 32
    Location : Sydney
    Capricorn
    Rat

    .cfg file for most detailed error logging

    Post  Archaon on Tue Jun 16, 2009 7:46 pm

    This is my setup;
    Code:

    [log]
    to=logs/DAC.system.log.txt
    level =ai.ltgd trace
    level =game.script* trace
    level = * trace
    file = game.script* logs/DAC.script.log.txt
    file = ai.ltgd logs/DAC.ai.log.txt

    [ai]
    ltgd_logging = true
    however it has very complicated output and I am able to read most of it but Renown prefers this setup;
    Code:

    [log]
    to=logs/DAC.system.log.txt
    level = * error

    It is your choice Smile

    Renown
    Exodus Executive Producer
    Exodus Executive Producer

    Posts : 291
    Join date : 2009-06-16

    Re: .cfg file for most detailed error logging

    Post  Renown on Tue Jun 16, 2009 7:58 pm

    * trace is hard to read for most people.

    AI/Script is unncessary (as if there are issues normally they will be caught before a release)

    If you use anything ... use this FIRST

    level = * error

    If that gives you nothing... THEN use this

    level = * trace

    Or throw em together..
    avatar
    Archaon
    Possessor of the One Ring
    Possessor of the One Ring

    Gender : Male Posts : 890
    Join date : 2009-06-16
    Age : 32
    Location : Sydney
    Capricorn
    Rat

    Re: .cfg file for most detailed error logging

    Post  Archaon on Tue Jun 16, 2009 8:02 pm

    couldn't have explained it better!

    axnsan
    account inactive
    account inactive

    Gender : Male Posts : 85
    Join date : 2009-06-16
    Age : 28
    Location : Timisoara
    Gemini
    Snake

    Re: .cfg file for most detailed error logging

    Post  axnsan on Wed Jun 17, 2009 2:41 am

    it didn't cause a crash but it seems something's wrong

    Spoiler:
    11:16:49.562 [script.err] [error] Script Error in mods/Third_AgeDAC/data/export_descr_buildings.txt, at line 5605, column 2
    Building DB error - culture db max settlement level differs from building db max settlement level for faction turks (bdg large_city vs clt huge_city)
    11:16:49.562 [script.err] [error] Script Error in mods/Third_AgeDAC/data/export_descr_buildings.txt, at line 5605, column 2
    Building DB error - culture db max settlement level differs from building db max settlement level for faction france (bdg large_city vs clt huge_city)
    11:16:49.562 [script.err] [error] Script Error in mods/Third_AgeDAC/data/export_descr_buildings.txt, at line 5605, column 2
    Building DB error - culture db max settlement level differs from building db max settlement level for faction normans (bdg town vs clt huge_city)
    11:16:49.562 [script.err] [error] Script Error in mods/Third_AgeDAC/data/export_descr_buildings.txt, at line 5605, column 2
    Building DB error - culture db max settlement level differs from building db max settlement level for faction saxons (bdg large_city vs clt huge_city)
    11:16:49.562 [script.err] [error] Script Error in mods/Third_AgeDAC/data/export_descr_buildings.txt, at line 5605, column 2
    Building DB error - culture db max settlement level differs from building db max settlement level for faction russia (bdg large_city vs clt huge_city)
    11:16:49.562 [script.err] [error] Script Error in mods/Third_AgeDAC/data/export_descr_buildings.txt, at line 5605, column 2
    Building DB error - culture db max settlement level differs from building db max settlement level for faction slave (bdg town vs clt huge_city)


    line 5605 is empty
    avatar
    Archaon
    Possessor of the One Ring
    Possessor of the One Ring

    Gender : Male Posts : 890
    Join date : 2009-06-16
    Age : 32
    Location : Sydney
    Capricorn
    Rat

    Re: .cfg file for most detailed error logging

    Post  Archaon on Wed Jun 17, 2009 5:23 am

    this is about the only 'fight' Renown and I have had.. lol i find it amusing you brought it up (it means i am not crazy).

    Yeah there is an issue, no it doesn't cause a crash.

    the argument is, does the games engine continue to parse scripts that involve the variables of this error?

    i say no, the engine skips past the variable of these errors for all future scripts run, not including these variables however continuing the script.

    classic example, Renown had a error in the descr_strat.txt in the rebels section, the game still runs with every variable above the error line in the descr_strat BUT the lines below the error were skipped, resulting in armies not appearing, diplomacy settings not appearing, forts and watchtowers not on the map.. But the game still started and played without any apparent issue.

    now, i am trying to point out that, we may not know what no longer is recognized by the games processes, i.e. what variables would be included in the processes the engine runs, but we do know that as long as this error is logged, the engine is skipping SOMETHING, so we cannot ever claim to be out of beta stages until our error logging is clean.

    do you agree?

    axnsan
    account inactive
    account inactive

    Gender : Male Posts : 85
    Join date : 2009-06-16
    Age : 28
    Location : Timisoara
    Gemini
    Snake

    Re: .cfg file for most detailed error logging

    Post  axnsan on Wed Jun 17, 2009 5:41 am

    as long as the game runs fine and nothing is skipped, that error doesn't bother me

    what bothers me is that you removed unique models for several settlements Sad
    avatar
    Archaon
    Possessor of the One Ring
    Possessor of the One Ring

    Gender : Male Posts : 890
    Join date : 2009-06-16
    Age : 32
    Location : Sydney
    Capricorn
    Rat

    Re: .cfg file for most detailed error logging

    Post  Archaon on Wed Jun 17, 2009 6:00 am

    with the new faction slots being used, KK's method of placing the models is no longer available...
    We now need to make our own method of placing them and Renown has this in motion for BETA 4 Wink
    avatar
    uanime5
    Master Artificer / Scripter
    Master Artificer / Scripter

    Gender : Male Posts : 16
    Join date : 2009-08-20
    Age : 33
    Gemini
    Rat

    Re: .cfg file for most detailed error logging

    Post  uanime5 on Thu Aug 20, 2009 11:35 am

    Renown wrote:* trace is hard to read for most people.

    AI/Script is unncessary (as if there are issues normally they will be caught before a release)

    If you use anything ... use this FIRST

    level = * error

    If that gives you nothing... THEN use this

    level = * trace

    Or throw em together..

    Wouldn't it be better to use 'level=*script* trace' between *error and *trace as it gives more information than *error but it easieer to rewad than *trace.
    avatar
    Archaon
    Possessor of the One Ring
    Possessor of the One Ring

    Gender : Male Posts : 890
    Join date : 2009-06-16
    Age : 32
    Location : Sydney
    Capricorn
    Rat

    Re: .cfg file for most detailed error logging

    Post  Archaon on Fri Aug 21, 2009 3:01 am

    I prefer trace as i learnt off it and know it best - Renown prefers error as he gets a simple answer or nothing.

    I haven't used script before but i will just to see what it does.

    Thx!
    avatar
    Bela
    Full-time Team member
    Full-time Team member

    Gender : Male Posts : 676
    Join date : 2009-10-02
    Age : 37
    Location : Budapest, Hungary
    Comments : what is the malted liquor, what gets you drunker quicker,
    what comes in bottles or in cans…
    BEER!

    Leo
    Monkey

    Re: .cfg file for most detailed error logging

    Post  Bela on Mon Feb 14, 2011 7:32 am

    Hello folks,


    In order to get the most detailed log reports during your game (and that cursed CTDs), you should

    1. open your .cfg file in your Third Age folder with notepad
    2. search for the part which starts with [log]
    (won't be that hard, it's almost at the top)
    3. change it to the following:


    [log]
    to=logs/system.log.txt
    level =ai.ltgd trace
    level =game.script* trace
    level = * trace
    file = game.script* logs/script.log.txt
    file = ai.ltgd logs/ai.log.txt

    [ai]

    Save, exit.

    With this small change, you will have three logs created in your Medieval II\logs folder. If you have any CTDs (or run the game), at least the system.log and the script.log will have several entries.

    Should you have and CTDs or any weird problems in your game, just pack all the logs folder and pass it to me, I will have a look at that and will try to advise you about the solution Very Happy
    avatar
    Tokus*Maximus
    No job too dangerous...!
    No job too dangerous...!

    Gender : Male Posts : 764
    Join date : 2009-06-16
    Age : 49
    Location : ...somewhere in the Shire, by a cosy fire.
    Comments : Smoother than a velvet penguin!
    Libra
    Monkey

    Re: .cfg file for most detailed error logging

    Post  Tokus*Maximus on Mon Feb 14, 2011 8:10 am

    Bela wrote:Hello folks,


    In order to get the most detailed log reports during your game (and that cursed CTDs), you should

    1. open your .cfg file in your Third Age folder with notepad
    2. search for the part which starts with [log]
    (won't be that hard, it's almost at the top)
    3. change it to the following:


    [log]
    to=logs/system.log.txt
    level =ai.ltgd trace
    level =game.script* trace
    level = * trace
    file = game.script* logs/script.log.txt
    file = ai.ltgd logs/ai.log.txt

    [ai]

    Save, exit.

    With this small change, you will have three logs created in your Medieval II\logs folder. If you have any CTDs (or run the game), at least the system.log and the script.log will have several entries.

    Should you have and CTDs or any weird problems in your game, just pack all the logs folder and pass it to me, I will have a look at that and will try to advise you about the solution Very Happy

    Thank you very very much Bela for your detailed study and plan of action to trace logs. It is clear and straightforward. I'll pay heed to this when trying that TATW mod you all may have heard of.

    -- Tok

    Sponsored content

    Re: .cfg file for most detailed error logging

    Post  Sponsored content


      Current date/time is Tue Oct 17, 2017 10:57 am