I've used wolfstat a number of times in the past, and it has worked fine for our mod,
since I hadn't changed the weapon names / MOD's in the code.. However I have now changed
all the MOD's to reflect the new weapons, and as such WolfStat no longer works :(
So, I thought .. I know.. wolfstat is open source, I'll just make the changes and compile WWStat :)
But I'm having problems.. Initialy I'm simply trying to compile the standard source;
I tried using VS6 in Windows.. and gave up in that :P,
so I moved on to my Mandrake9.1 system, still no joy :(
I have sablot & expat installed, but I get this error when running the make file:
g++ -O -I. -DGLOBAL_DBG_XML=0 -DGLOBAL_DBG=0 -DVERSION="\"Standard 0.9.1\"" -DSYS_UNIX=1 -c OutputHandler.cpp
OutputHandler.cpp:26:28: sablot.h: No such file or directory
OutputHandler.cpp: In member function `std::string COutputHandler::GenerateHTML(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
OutputHandler.cpp:132: `SablotProcessStrings' undeclared (first use this function)
OutputHandler.cpp:132: (Each undeclared identifier is reported only once for each function it appears in.)
make: *** [OutputHandler.o] Error 1
I'm not any kind of Linux guru, if fact you could say I'm a complete noob (although I have sucessfully
compiled WildWest to run under Linux, both server and client :))
Any kind of help would be greatly apprciated.
Hewster
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can't help you with problems on Windows, sorry. Hope to find a good co-worker with windows skills (or at least one that have the os installed). Untill then ...
The Linux problem on the other hand ....
See to it that you have installed the sablot and expat libs/header files in a location that gcc looks for by default. (ie /usr [/lib|/headers] ).
My best advice is to find RPM:s or other packages for your distro. Least hassel.
The "hard way":
When compiling salbot & expat your self compile them and install them into /usr/lib and /usr/headers.
"But that would violate tghe Linux Standard Base"-way:
If you really have to compile the libs by hand and don't want to put them into /usr, you have to edit the Makefile add
-I /where/you/have/salbot/headers -I /where/you/have/expat/headers
to the INCLUDES line
and
-L where/you/have/salbot/libs -I /where/you/have/expat/libs
to the LIBS line.
You prob also need to add the libspaths to /etc/ld.so.conf and rerun ldconfig as root if you have the libs installed in a non-standard place.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry that should line you have to add to LIBS is:
-L where/you/have/salbot/libs -L /where/you/have/expat/libs
And yes upon request I will add some documenations about this as soon as I get around to start writing some. (Please contribute if you like documenting.)
As you can see in the RFE tracker I'm planing to add config files for the weapons that way you shouldn't have to recompile the source everytime you add/change/remove weapons.
Well I wouldn't hold my breath if I where you but it will be implemented someday in the future.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I uninstalled my distro sablot files, and downloaded the latest 0.98 files,
installed per the instructions, and then re-installed my distro files,
compiled wolfstat 0.9.1 & it then compiled without errors :)
(not sure if I actually needed to download the 0.98 files though)
All would seem to be fine, except when I run my compiled wolfstat, using
a cfg & wolf.log that works with the old 0.8.9 linux released binaries,
Here is my wolfstat.cfg:
# [N] = Name of the server
# [A] = Server address
# [L] = The server log file
# [G] = Gametype: RTCW or Q3
MULTI [N]test [A]HewstersServer [L]/usr/local/games/wolfstat/rtcw.log [G]WOLF
I get the following output in the console:
Starting
Reading datfile
Parsing logfile
.......................
Writing to datfile
Writing html output
Segmentation fault (core dumped)
and the wolfstat.log shows this error:
1:CStatHandler::PopulateFromDAT:Failed to open datfile /usr/local/games/wolfstat/web/test/wolfstat.dat
The following directories & files are created:
/wolfstat/wolfstat.log (104B)
/wolfstat/wolfstat.dmp (69B)
/wolfstat/wolfstat.tmp (2.4MB)
/wolfstat/core.5991 (5.2MB)
/wolfstat/web/test/wolfplayers/
/wolfstat/web/test/wolfplayers/ (serveral html docs, which show correct player stats)
The only conclusion I can come to is that it still hasn't compiled properly ?
when I compare the old 0.8.9 dist wolfstat binary, it is 1.8MB in size,
but my newly compiled 0.9.1 is only 372 KB ? what size should this binary be ?
Thanx again
Hewster
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What log file did you parse ?
A log file from RTCW with no mods or a WW one ?
Did you do any changes to the source before compiling ?
Could you send me the log file ?
The binary seems to be about the right size.
If this problem is persistant please send put up a bug on the issue (this way I can track it in a better way).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm the programmer / 3D modeller for the RtCW mod called The-wildwest
http://www.the-wildwest.co.uk
I've used wolfstat a number of times in the past, and it has worked fine for our mod,
since I hadn't changed the weapon names / MOD's in the code.. However I have now changed
all the MOD's to reflect the new weapons, and as such WolfStat no longer works :(
So, I thought .. I know.. wolfstat is open source, I'll just make the changes and compile WWStat :)
But I'm having problems.. Initialy I'm simply trying to compile the standard source;
I tried using VS6 in Windows.. and gave up in that :P,
so I moved on to my Mandrake9.1 system, still no joy :(
I have sablot & expat installed, but I get this error when running the make file:
g++ -O -I. -DGLOBAL_DBG_XML=0 -DGLOBAL_DBG=0 -DVERSION="\"Standard 0.9.1\"" -DSYS_UNIX=1 -c OutputHandler.cpp
OutputHandler.cpp:26:28: sablot.h: No such file or directory
OutputHandler.cpp: In member function `std::string COutputHandler::GenerateHTML(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
OutputHandler.cpp:132: `SablotProcessStrings' undeclared (first use this function)
OutputHandler.cpp:132: (Each undeclared identifier is reported only once for each function it appears in.)
make: *** [OutputHandler.o] Error 1
I'm not any kind of Linux guru, if fact you could say I'm a complete noob (although I have sucessfully
compiled WildWest to run under Linux, both server and client :))
Any kind of help would be greatly apprciated.
Hewster
Can't help you with problems on Windows, sorry. Hope to find a good co-worker with windows skills (or at least one that have the os installed). Untill then ...
The Linux problem on the other hand ....
See to it that you have installed the sablot and expat libs/header files in a location that gcc looks for by default. (ie /usr [/lib|/headers] ).
My best advice is to find RPM:s or other packages for your distro. Least hassel.
The "hard way":
When compiling salbot & expat your self compile them and install them into /usr/lib and /usr/headers.
"But that would violate tghe Linux Standard Base"-way:
If you really have to compile the libs by hand and don't want to put them into /usr, you have to edit the Makefile add
-I /where/you/have/salbot/headers -I /where/you/have/expat/headers
to the INCLUDES line
and
-L where/you/have/salbot/libs -I /where/you/have/expat/libs
to the LIBS line.
You prob also need to add the libspaths to /etc/ld.so.conf and rerun ldconfig as root if you have the libs installed in a non-standard place.
Sorry that should line you have to add to LIBS is:
-L where/you/have/salbot/libs -L /where/you/have/expat/libs
And yes upon request I will add some documenations about this as soon as I get around to start writing some. (Please contribute if you like documenting.)
As you can see in the RFE tracker I'm planing to add config files for the weapons that way you shouldn't have to recompile the source everytime you add/change/remove weapons.
Well I wouldn't hold my breath if I where you but it will be implemented someday in the future.
Thanx for the quick reply,
I uninstalled my distro sablot files, and downloaded the latest 0.98 files,
installed per the instructions, and then re-installed my distro files,
compiled wolfstat 0.9.1 & it then compiled without errors :)
(not sure if I actually needed to download the 0.98 files though)
All would seem to be fine, except when I run my compiled wolfstat, using
a cfg & wolf.log that works with the old 0.8.9 linux released binaries,
Here is my wolfstat.cfg:
PATH /usr/local/games/wolfstat/web/
MIN_SCORE 1
MIN_KILLS 1
MIN_TIME 1
MIN_RATIO 0
# [N] = Name of the server
# [A] = Server address
# [L] = The server log file
# [G] = Gametype: RTCW or Q3
MULTI [N]test [A]HewstersServer [L]/usr/local/games/wolfstat/rtcw.log [G]WOLF
ADMIN_EMAIL admin@example.com
ADMIN_NICK XamPle
ADMIN_ICQ None
EXCLUDE_PLAYERS Player
I get the following output in the console:
Starting
Reading datfile
Parsing logfile
.......................
Writing to datfile
Writing html output
Segmentation fault (core dumped)
and the wolfstat.log shows this error:
1:CStatHandler::PopulateFromDAT:Failed to open datfile /usr/local/games/wolfstat/web/test/wolfstat.dat
The following directories & files are created:
/wolfstat/wolfstat.log (104B)
/wolfstat/wolfstat.dmp (69B)
/wolfstat/wolfstat.tmp (2.4MB)
/wolfstat/core.5991 (5.2MB)
/wolfstat/web/test/
/wolfstat/web/test/wolfstat_ratio.html (0b)
/wolfstat/web/test/wolfstat.dat (22.2KB)
/wolfstat/web/test/wolfplayers/
/wolfstat/web/test/wolfplayers/ (serveral html docs, which show correct player stats)
The only conclusion I can come to is that it still hasn't compiled properly ?
when I compare the old 0.8.9 dist wolfstat binary, it is 1.8MB in size,
but my newly compiled 0.9.1 is only 372 KB ? what size should this binary be ?
Thanx again
Hewster
What log file did you parse ?
A log file from RTCW with no mods or a WW one ?
Did you do any changes to the source before compiling ?
Could you send me the log file ?
The binary seems to be about the right size.
If this problem is persistant please send put up a bug on the issue (this way I can track it in a better way).
I used a standard wolf log, no code changes,
I've just downloaded and compiled the 1.01
source, and it compiles and works perfectly :)
I'll see if i can get VS6 to compile too & post
what happens.
Nice work :D I can get on with modifying wolfstat
to work with WildWest now..
Hewster
and if you make the changes to the source ... please submit patches in the patch tracker so it can make it's way into the main source.