Tremulous Forum

General => Troubleshooting => Topic started by: clutch on July 20, 2011, 07:29:04 pm

Title: Tremstats not reading games.log (windows setup)
Post by: clutch on July 20, 2011, 07:29:04 pm
when i exec tremstats.py

i get this error

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>

Traceback (most recent call last):
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\tremstats.py", line 206, in <module>
    app.Main()
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\tremstats.py", line 112, in Main
    parser.Main(self.dbc, self.Check_map_in_database, self.Add_player_to_update, self.games_log, self.static_log, self.archive_log, self.archive_dir)
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\internals\log_parse.py", line 56, in Main
    self.Log_read()
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\internals\log_parse.py", line 104, in Log_read
    sys.exit("Log does not exist.")
SystemExit: Log does not exist.
>>>


as a side note...tremstats shows the live statistics on my website..but it does not log player records..because it cant read the games.log file..when i clearly pointed it to the games.log file within the config.py file..

here is what mine looks like..

# -*- coding: utf-8 -*-

CONFIG = {}

# Hostname of you MySQL-server
CONFIG['MYSQL_HOSTNAME'] = ''

# Username
CONFIG['MYSQL_USERNAME'] = ''

# Password
CONFIG['MYSQL_PASSWORD'] = ''

# Database
CONFIG['MYSQL_DATABASE'] = ''

# Log file (do not work with '~', give absolute path)
# In Windows, paths should be set as follows:
# C:\\path\\to\\your\\games.log
CONFIG['GAMES_LOG']      = 'C:\Users\root\AppData\Roaming\Tremulous\starburst\games.log'

# Directory which contains the archived game logs. Must be absolute.
# You may either give the path or None, to use the default directory.
CONFIG['ARCH_DIR']       = None

# Directory which contains the PK3 files. Must be absolute.
CONFIG['PK3_DIR']        = 'C:\Users\root\Desktop\starburst\base'

# Name/Partname of unnamed nick (case sensitive)
# Lakitu7's patch have these cvars:
#       set g_newbieNumbering 1
#       set g_newbieNamePrefix "UnnamedPlayer #"
#       eg: UnnamedPlayer #0 ~ UnnamedPlayer #1 ~ etc...
# Don't change the default value if you don't have the Lakitu7's patch set
CONFIG['UNNAMED_PLAYER']  = 'UnnamedPlayer'
 



I have removed the mysql info on purpose so that way i am not sharing my precious info..

lolz..

any help would be great....
Title: Re: Tremstats not reading games.log (windows setup)
Post by: David on July 20, 2011, 08:03:03 pm
The answer is on the line above where you put the path.  \ needs to be \\.
Title: Re: Tremstats not reading games.log (windows setup)
Post by: clutch on July 20, 2011, 11:00:01 pm
thank you so much. that worked...yay i am so happy..i cant believe that i missed that part....it kinda makes me a little p-o'ed at myself....but oh well..at least its working..thanks again
Title: Re: Tremstats not reading games.log (windows setup)
Post by: clutch on July 20, 2011, 11:20:22 pm
now i am getting this error..


Traceback (most recent call last):
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\tremstats.py", line 206, in <module>
    app.Main()
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\tremstats.py", line 126, in Main
    pk3reader.Main(self.dbc, self.Check_map_in_database, self.pk3_dir)
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\internals\pk3_read.py", line 32, in Main
    self.Scan_PK3(singlefile)
  File "C:\Users\root\AppData\Roaming\Tremulous\starburst\internals\pk3_read.py", line 40, in Scan_PK3
    print "Error while reading " + singlefile
NameError: global name 'singlefile' is not defined

btw do i need to have the stats thing running constantly or how does that work..i am really new to this whole idea...

and btw now the current online players wont show up...

it was working before the log file parse..