Results 1 to 14 of 14

Thread: In-game Event logging..?

Hybrid View

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

    Default In-game Event logging..?

    Hi all,

    I've done a fair bit of searching and reading on logs and logging on this forum, but have so far not come across anyone mentioning an interest or enquiring after this... (if they have and I've missed it, please direct me where!)

    ...basically what I would like to do is record or output to a log the ingame events that occur, information such as births, deaths etc

    Is this possible to setup as a valid logging option?

    I know we can log various levels of detail behind the scenes (particularly I've read about the detail and splitting of logs for AI decisions and scripting), but I've not seen anything for info or decisions displayed in-game.

    Any info or help is appreciated!
    Last edited by raziel_eire; October 26, 2010 at 08:58 AM. Reason: edited as I can't spell!

    ...history abhors a paradox

    -------------


  2. #2

    Default Re: In-game Event logging..?

    There is no way to view the log file etc inside the game via console etc.

  3. #3

    Default Re: In-game Event logging..?

    @ Ishan

    Thanks for reply, however I'm not looking to "view" the log file ingame, but rather I want to take events that occur ingame and output them to a log file for viewing outside of the game in plain text format (or any other format for that matter)

    ...history abhors a paradox

    -------------


  4. #4

    Default Re: In-game Event logging..?

    Quote Originally Posted by raziel_eire View Post
    @ Ishan

    Thanks for reply, however I'm not looking to "view" the log file ingame, but rather I want to take events that occur ingame and output them to a log file for viewing outside of the game in plain text format (or any other format for that matter)
    As Swagger suggested above you will have to put these line in the .cfg file of your mod to enable the log file.

    Put these lines in your medieval2.preference.cfg:-
    Code:
    [log] 
    to = logs/M2TW.system.log.txt 
    level = * trace

  5. #5

    Default Re: In-game Event logging..?

    cheers chaps for the replies...

    yeah, I've been using system.log to trace what I can, but it only gives you the choices/selections made, triggers fired and background references to image files needed etc. Whilst this is alot of useful info, its not for my intended purposes.

    What I had hoped to achieve was to pull information like the character names out of the game as and when they appear so I can collect and collate afterwards. Its more for a roleplay/game history perspective to allow you to follow what happens your characters & family members as you move through your game.

    I'd thought to maybe take any output data like this and populate it externally from the game to html to track your family records but I doubt if it's possible. I'm sure if it was, brighter & smarter people than I would have tackled it by now.

    Anyways, cheers for your help and I'll leave the query open to anyone else with any ideas or input!

    ...history abhors a paradox

    -------------


  6. #6
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: In-game Event logging..?

    Quote Originally Posted by Ishan View Post
    Thanks for reply, however I'm not looking to "view" the log file ingame, but rather I want to take events that occur ingame and output them to a log file for viewing outside of the game in plain text format (or any other format for that matter)
    the closest you'll get is the system.log, it's a list of all the stuff the engine read


    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  7. #7
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: In-game Event logging..?

    Look in the stickies . There is a thread dealing with the .cfg file and all the switches.

  8. #8

    Default Re: In-game Event logging..?

    @ irishron

    Do you mean Augustus Lucifers Research Hub and the Enhanced Logging link?

    I've been through it and found nothing that matches what I am after (I've also done a number of searches and been over at the Org and still not located the same information I'm after being enquired about even) - although this probably means there is no way of doing it, I had deemed it better to ask directly than assume so only because I couldn't find it by searching.

    ...history abhors a paradox

    -------------


  9. #9
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: In-game Event logging..?

    That is the one.

    Code:
    [ai]
    ltgd_logging = true
    
    [log] 
    to = logs/M2TW.system.log.txt 
    level = * trace
    file = game.script.* logs/pkh.script2.log.txt
    file = game.script* logs/pkh.script.log.txt
    file = game.script logs/pkh.scriptoutput.log.txt
    file = ai.ltgd logs/pkh.ai.log.txt
    You will see some interesting results. It's in my mod's .cfg. I just copied for you. And I did "steal" it from AL.

  10. #10

    Default Re: In-game Event logging..?

    Cheers irishron,

    I've tried your suggestion and as you say, there is some interesting information in there - but it is all behind the scenes decisions, counter settings, trigger fires etc. Unless I can distinguish who it is for and the actual ingame content then it won't meet my needs I'm afraid.

    What I'd like is an output of a new born's name, the names of the two characters married after selecting to approve the wedding, the name of a character who died.
    I guessed that info would not stored for external access turns after it happens, but thought it might be possible to capture it in a log file as and when the event that causes it to happen fires, so basically its combination of the event firing and who that event affects is what I wanted.

    ...history abhors a paradox

    -------------


  11. #11
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: In-game Event logging..?

    That is time for toggle_fow console, a superspy, move_character and show_cursorstat consoles, and check them all individually yourself. I have yet to find one to throw names.

  12. #12
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: In-game Event logging..?

    If you are extremely patient you might be able to extract details from save game - if you save every turn:

    If you use notepad you can find tons of this stuff near the end of the file.

    Spoiler Alert, click show to read: 

    E n r i q u e d e C a s t i l l a M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D B e a t r i c e A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D S i m o n e d ' A l t a v i l l a M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D M a i r g h r i d m a c D o n n c h a d a
    N a t u r a l D e a t h a T h i s m a n h a s d i e d o f n a t u r a l c a u s e s a n d g o n e t o j o i n o u r i l l u s t r i o u s a n c e s t o r s i n t h e a f t e r l i f e . ‰D B u r c u o f t h e O g h u z A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D T a j A m i r M e l i k M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D S u ' a d a l - F a t i m i y y u n A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D J u n i o r K i n g I s t v n M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D E v r a r t d e C o u r t e n a y A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D M i l a n S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D K u b a d a i o f O k a A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D A r m a t o s O r e s m i s A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D N o v g o r o d G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D U f a y r i b n R a b i A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D V a h i d e d d i n B o r i A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D L i s b o n S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D K e r a k S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D B o n i f a c i u s B e r n a r d i A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D R a y A g e n t D i s c o v e r e d k W e h a v e d i s c o v e r e d a t r e a c h e r o u s a n d d a n g e r o u s s p y i n t h i s s e t t l e m e n t . I s t h e r e n o h o n o u r a m o n g o u r r i v a l s ? ‰D
    P r i n c e L o u i s t h e L a z y M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D T a n c r e d B a b e n b e r g A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D M a x i m i l l a t h e B e a u t i f u l
    C o m i n g o f A g e j T h i s m a n h a s c o m e o f a g e a n d i s n o w r e a d y t o t a k e u p h i s s h a r e o f t h e r e s p o n s i b i l i t i e s o f g o o d g o v e r n m e n t . ‰D P a l l a d i o s V r y e n n i o s A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D A m i n a a l - A n d a l u s i A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D
    U r r a c a d e P o r t u g a l
    C o m i n g o f A g e j T h i s m a n h a s c o m e o f a g e a n d i s n o w r e a d y t o t a k e u p h i s s h a r e o f t h e r e s p o n s i b i l i t i e s o f g o o d g o v e r n m e n t . ‰D I m r e r p d h z i A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D M i l a n G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D M i l a n G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D I n v e r n e s s S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D K o u s i n o s K a v a s i l a s A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D J a l a f i b n U b a i d A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D T e v f i k K h u c e n d i A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D K a l m a r S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D
    L i s b o n G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D K e r a k G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D J e r u s a l e m G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D T o u l o u s e S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D Z a r a g o z a S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D B u l g a r A g e n t D i s c o v e r e d k W e h a v e d i s c o v e r e d a t r e a c h e r o u s a n d d a n g e r o u s s p y i n t h i s s e t t l e m e n t . I s t h e r e n o h o n o u r a m o n g o u r r i v a l s ? ‰D G e r s e n d a v o n H o h e n s t a u f e n A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D P r i n c e R u g g e r o M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D D o g e M a r t i n o
    N a t u r a l D e a t h a T h i s m a n h a s d i e d o f n a t u r a l c a u s e s a n d g o n e t o j o i n o u r i l l u s t r i o u s a n c e s t o r s i n t h e a f t e r l i f e .
    ‰D D o g e A n s a l d o N e w F a c t i o n L e a d e r 8 A n e w f a c t i o n l e a d e r h a s e m e r g e d a n d i s n o w i n c o n t r o l . ‰D K u b a d a i o f O k a M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D K o u s i n o s K a v a s i l a s M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D K n y a z h i c h I a r o s l a v M a r r i a g e S T h i s m a n h a s m a r r i e d , l a y i n g t h e f o u n d a t i o n s f o r t h e f u t u r e s t r e n g t h o f o u r f a m i l y . ‰D R e c e p M e l i k s a h A B i r t h i n t h e F a m i l y } O u r f a c t i o n h a s b e e n b l e s s e d b y t h e a r r i v a l o f a n e w c h i l d . H e w i l l c o m e o f a g e i n t h e f u l l n e s s o f t i m e a n d a d d t o o u r g l o r y . ‰D T u n i s S e t t l e m e n t U n d e r S i e g e T T h i s s e t t l e m e n t i s c u r r e n t l y u n d e r s i e g e , a n d t h e p e o p l e a r e s u f f e r i n g a s a r e s u l t . ‰D N i c o l a d e T r e i s A d o p t i o n i T h i s m a n h a s b e e n a d o p t e d i n t o o u r f a m i l y , a n d w i l l b r i n g h o n o u r a n d g l o r y t o o u r n a m e t h r o u g h h i s d e e d s . ‰D M i l a n G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r . ‰D G e n o a G o v e r n o r A p p o i n t e d . T h i s m a n h a s b e e n a p p o i n t e d a s a n e w g o v e r n o r

    If you are clever at programming i expect you could write a prog to go through a save file every turn (autosave) and extract the relevant bits.
    (note text has gaps between each letter.)

    sadly I'm not that clever
    Last edited by Gorrrrrn; October 27, 2010 at 07:00 PM.

  13. #13
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: In-game Event logging..?

    New one on me. Thank you, Rozanov.

  14. #14

    Default Re: In-game Event logging..?

    This is just the kind of thing I was after Rozanov, cheers - my intention would be to "try" and setup something fancy that could auto-read output such as this and populate to a webpage or otherwise to keep a record of your history & events (particularly useful if you have family members or a secondary family tree implemented that the in-game family tree can't obviously display).

    Cheers again!

    ...history abhors a paradox

    -------------


Posting Permissions

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