Parsing Log File

Added by ziyun about 4 years ago

I’d like to parse ETL’s log file, however I’ve noticed that at the end of a round sometimes the server will print "WeaponStats" for each player and sometimes it doesn’t.

Here’s an example of what I want:

27:09 Exit: Wolf EndRound.
27:09 score: 255 ping: 9 client: 0 Player1
27:09 score: 179 ping: 14 client: 2 Player3
27:09 score: 168 ping: 1 client: 1 Player2
27:09 score: 84 ping: 6 client: 4 Player5
27:09 score: 70 ping: 1 client: 3 Player4
27:09 red:278 blue:315
27:09 WeaponStats: 0 1 1591344 0 0 0 12 0 82 334 14 0 6 0 0 0 1 0 0 7 0 0 0 5 10 4 0 0 26 131 6 2 0 2578 1920 123 94 0 1 51 59 136 42 18
27:09 WeaponStats: 2 0 1591348 0 1 0 0 0 96 415 15 0 5 0 0 0 13 0 1 24 1 0 0 0 1 0 0 0 1 2 1 4 0 0 0 0 5 0 2028 2356 112 14 0 1 19 31 53 95
27:09 WeaponStats: 1 1 1591604 0 9 0 0 0 89 427 14 0 8 0 0 0 18 0 0 9 0 0 0 0 10 0 0 0 0 1 0 0 0 1 6 0 0 0 26 202 5 3 0 2379 2360 102 112 0 0 51 34 61 58 15
27:09 WeaponStats: 4 0 1572912 19 86 4 5 1 53 271 8 3 3 0 1 0 1 0 8 101 2 2 0 1529 1201 130 246 0 1 49 40 38 6
27:09 WeaponStats: 3 0 1050680 0 5 0 0 0 0 0 0 16 0 63 406 12 0 2 0 8 0 0 0 0 0 0 1 0 1165 1842 73 74 0 1 17 34 36
27:39 ExitLevel: executed
27:39 ShutdownGame:
27:39 ————————————————————

But most of the time I get this:

48:26 Exit: Wolf EndRound.
48:26 score: 383 ping: 6 client: 2 Player1
48:26 score: 315 ping: 4 client: 3 Player4
48:26 score: 173 ping: 14 client: 1 Player2
48:26 score: 170 ping: 12 client: 5 Player6
48:26 score: 98 ping: 7 client: 4 Player3
48:26 red:529 blue:407
48:56 ExitLevel: executed
48:56 ShutdownGame:
48:56 ————————————————————

Can anyone give me an explanation why this doesn’t always get printed to the log? And how I might go about guaranteeing that "WeaponStats" are always dumped at the end of each round?

Much thanks.