stefanhendriks Posted August 5, 2009 Share Posted August 5, 2009 This thread should be about the d2tm log:- how to make the log better- how to make it easier to understand and easier to read by tools (like the D2TMLogViewer tool).Currently, the log is like this (snippet)0| REINFORCE: Starting from cell 511, going to cell 6370| REINFORCE: Starting from cell 7, going to cell 720| upgrading tech tree0| REINFORCE: Starting from cell 32, going to cell 970| [sCENARIO] -> REINFORCEMENTS0|  Reinforcement: Controller = 3, House 4, Time 12, Type = 30| [sCENARIO] -> REINFORCEMENTS0|  Reinforcement: Controller = 2, House 3, Time 12, Type = 9This is roughly:<time> | <log line>(the <time> does not even work, i noticed lately).This is a bit too general. So perhaps this would be a better way to start logging things:<time> | <level> | <component> | <event> | <message> | <outcome> | <player>Where time is:HH:MM:SSLevel is:TRACEWARNERRORFATALcomponent could be:UNITSSTRUCTURESINIGAMESIDEBAREvent could be:"Loading file bla.ini""Attacking"etcMessage is optional , is additional informationoutcome is basically:SUCCESS, FAILED, BUSY (?), NONE? (when none required?)player If applicable, the player id. Example log line:19:55:01|TRACE|UNITS|MOVING|Creating new path|SUCCESS|0I can imagine that the log tool would be able to show this in a friendly way, where you could filter on several pieces of the log line.Any feedback? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.