• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ OTS statistics 1.4 on Windows

Addams

OTMadness.com OTSes Services
Staff member
Board Moderator
Joined
Sep 29, 2009
Messages
2,920
Solutions
342
Reaction score
1,688
Location
Egypt
I am trying to add this OTS statistics by Kondra using TFS 1.4 and Windows. It compiles successfully without any errors or warnings, but I am not getting any .log files in data\logs\stats.
I double-checked my source changes and am sure every related change was added correctly.
Did anyone try it on Windows? Any idea what I might be missing?
 
Solution
I got it on Windows.
Using visual studio, I had to define STATS_ENABLED on preprocessor definitions. Also, remember to create the stats folder
Not a Windows-andy but this part kinda activates it:

CMake:
C++:
if (NOT DEFINED DISABLE_STATS OR NOT DISABLE_STATS)
    message(STATUS "OTS stats enabled. Run 'cmake -DDISABLE_STATS=1 ..' to disable")
    ADD_DEFINITIONS(-DSTATS_ENABLED)
else ()
    message(STATUS "OTS stats disabled. Run 'cmake -DDISABLE_STATS=0 ..' to enable")
endif ()

Last time I compiled a server on Windows was probably in 2009.
 
I have this part as it is, so it should be activated by default if I am not mistaken unless I define DISABLE_STATS somewhere, which I haven't done.
 
Back
Top