Author Topic: Fragalyzer Logfiles  (Read 620 times)

Offline Birdie -TBB-

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • BattleBox - The Fun Community
Fragalyzer Logfiles
« on: 08-09-2009, 21:09:11 »
Hi,

several months ago I coded a local BF2 stats analyse system that is mainly based on the fragalyzer logfiles that are generated with the scripts from www.bighamster.de (site offline). They mainly patch the files

/bf2/python/bf2/stats/stats.py
/bf2/python/bf2/stats/fragalyzer_log.py

and enable writing an event logfile to disc. Up to now, they are working out of the box with any mod that we added (OPK, EOD, BGF, PR, ...) but they were not working with FH2 2.2.

It took me some time to find out that these two are mainly equivalent:

/bf2/mods/fh2/python/game/stats/stats.py
/bf2/python/bf2/stats/stats.py

Adding

Code: [Select]
bf2.stats.fragalyzer_log.enable()
in line 111 in /bf2/mods/fh2/python/game/stats/stats.py

and adding

Code: [Select]
try:
    import bf2.stats.fragalyzer_log
except ImprtError:
    print "Fragalyzer Log Module not found."
else:
    bf2.stats.fragalyzer_log.init()

at the beginning of
/bf2/mods/fh2/python/game/__init__.py
did the trick to enable logfile stat writing again. Maybe this is helpful for other server admins, too.
Regards,

Birdie Team BattleBox