abdala ragab
Veteran OT User
Hello, I am trying to add this system
I am using tfs 1.5 and am facing this error after adding the system
If anyone has an idea on how to do it that would be great, thank you in advance
Feature - [TFS 1.4] OTS statistics (C++/Lua/SQL) by kondra
I've got permission from kondra (otclient@************) to release this code. He only requested to leave information about author kondra (otclient@otclient ovh) in commit message. Code is too long to post it here. Commit with all required changes for TFS 1.4...
otland.net
OTS Statistics by kondra ([email protected]) · gesior/forgottenserver-gesior@0ad4be6
A free and open-source MMORPG server emulator written in C++ - OTS Statistics by kondra (otclient@************) · gesior/forgottenserver-gesior@0ad4be6
github.com
Code:
Rebuild started...
1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>cl : command line warning D9002: ignoring unknown option '/arch:SSE2'
1>otpch.cpp
1>cl : command line warning D9002: ignoring unknown option '/arch:SSE2'
1>cl : command line warning D9002: ignoring unknown option '/arch:SSE2'
1>actions.cpp
1>cl : command line warning D9002: ignoring unknown option '/arch:SSE2'
1>ban.cpp
1>cl : command line warning D9002: ignoring unknown option '/arch:SSE2'
1>cl : command line warning D9002: ignoring unknown option '/arch:SSE2'
1>baseevents.cpp
1>bed.cpp
1>chat.cpp
1>combat.cpp
1>condition.cpp
1>configmanager.cpp
1>connection.cpp
1>container.cpp
1>creature.cpp
1>creatureevent.cpp
1>cylinder.cpp
1>database.cpp
1>databasemanager.cpp
1>databasetasks.cpp
1>depotchest.cpp
1>depotlocker.cpp
1>events.cpp
1>fileloader.cpp
1>game.cpp
1>globalevent.cpp
1>groups.cpp
1>guild.cpp
1>house.cpp
1>housetile.cpp
1>ioguild.cpp
1>iologindata.cpp
1>iomap.cpp
1>iomapserialize.cpp
1>item.cpp
1>items.cpp
1>luascript.cpp
1>mailbox.cpp
1>map.cpp
1>monster.cpp
1>monsters.cpp
1>movement.cpp
1>networkmessage.cpp
1>npc.cpp
1>otserv.cpp
1>outfit.cpp
1>outputmessage.cpp
1>party.cpp
1>player.cpp
1>position.cpp
1>protocol.cpp
1>protocolgame.cpp
1>protocollogin.cpp
1>protocolold.cpp
1>quests.cpp
1>raids.cpp
1>rsa.cpp
1>scheduler.cpp
1>script.cpp
1>scriptmanager.cpp
1>server.cpp
1>signals.cpp
1>spawn.cpp
1>spells.cpp
1>stats.cpp
1>E:\Downloads\Compile\src\stats.cpp(185,75): error C2027: use of undefined type 'std::basic_ofstream<char,std::char_traits<char>>'
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\iosfwd(244): message : see declaration of 'std::basic_ofstream<char,std::char_traits<char>>'
1>E:\Downloads\Compile\src\stats.cpp(185,31): error C2065: 'out': undeclared identifier
1>E:\Downloads\Compile\src\stats.cpp(185,96): error C2027: use of undefined type 'std::basic_ofstream<char,std::char_traits<char>>'
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\iosfwd(244): message : see declaration of 'std::basic_ofstream<char,std::char_traits<char>>'
1>E:\Downloads\Compile\src\stats.cpp(185,31): error C2065: 'app': undeclared identifier
1>E:\Downloads\Compile\src\stats.cpp(185,16): error C2079: 'out' uses undefined class 'std::basic_ofstream<char,std::char_traits<char>>'
1>E:\Downloads\Compile\src\stats.cpp(185,31): error C2440: 'initializing': cannot convert from 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' to 'int'
1>E:\Downloads\Compile\src\stats.cpp(185,19): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>E:\Downloads\Compile\src\stats.cpp(190,13): error C2297: '<<': illegal, right operand has type 'const char [2]'
1>E:\Downloads\Compile\src\stats.cpp(190,42): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
1>E:\Downloads\Compile\src\position.h(136,15): message : could be 'std::ostream &operator <<(std::ostream &,const Direction &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\position.h(135,15): message : or 'std::ostream &operator <<(std::ostream &,const Position &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\stats.cpp(190,42): message : while trying to match the argument list '(int, std::string)'
1>E:\Downloads\Compile\src\stats.cpp(200,75): error C2027: use of undefined type 'std::basic_ofstream<char,std::char_traits<char>>'
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\iosfwd(244): message : see declaration of 'std::basic_ofstream<char,std::char_traits<char>>'
1>E:\Downloads\Compile\src\stats.cpp(200,31): error C2065: 'out': undeclared identifier
1>E:\Downloads\Compile\src\stats.cpp(200,96): error C2027: use of undefined type 'std::basic_ofstream<char,std::char_traits<char>>'
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\iosfwd(244): message : see declaration of 'std::basic_ofstream<char,std::char_traits<char>>'
1>E:\Downloads\Compile\src\stats.cpp(200,31): error C2065: 'app': undeclared identifier
1>E:\Downloads\Compile\src\stats.cpp(200,16): error C2079: 'out' uses undefined class 'std::basic_ofstream<char,std::char_traits<char>>'
1>E:\Downloads\Compile\src\stats.cpp(200,31): error C2440: 'initializing': cannot convert from 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' to 'int'
1>E:\Downloads\Compile\src\stats.cpp(200,19): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>E:\Downloads\Compile\src\stats.cpp(209,13): error C2297: '<<': illegal, right operand has type 'const char [2]'
1>E:\Downloads\Compile\src\stats.cpp(209,42): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
1>E:\Downloads\Compile\src\position.h(136,15): message : could be 'std::ostream &operator <<(std::ostream &,const Direction &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\position.h(135,15): message : or 'std::ostream &operator <<(std::ostream &,const Position &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\stats.cpp(209,42): message : while trying to match the argument list '(int, std::string)'
1>E:\Downloads\Compile\src\stats.cpp(219,18): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
1>E:\Downloads\Compile\src\position.h(136,15): message : could be 'std::ostream &operator <<(std::ostream &,const Direction &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\position.h(135,15): message : or 'std::ostream &operator <<(std::ostream &,const Position &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\stats.cpp(219,18): message : while trying to match the argument list '(int, const std::string)'
1>E:\Downloads\Compile\src\stats.cpp(221,23): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
1>E:\Downloads\Compile\src\position.h(136,15): message : could be 'std::ostream &operator <<(std::ostream &,const Direction &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\position.h(135,15): message : or 'std::ostream &operator <<(std::ostream &,const Position &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\stats.cpp(221,23): message : while trying to match the argument list '(int, std::_Smanip<std::streamsize>)'
1>E:\Downloads\Compile\src\stats.cpp(229,25): error C2678: binary '<<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
1>E:\Downloads\Compile\src\position.h(136,15): message : could be 'std::ostream &operator <<(std::ostream &,const Direction &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\position.h(135,15): message : or 'std::ostream &operator <<(std::ostream &,const Position &)' (compiling source file ..\src\stats.cpp)
1>E:\Downloads\Compile\src\stats.cpp(229,25): message : while trying to match the argument list '(int, std::_Smanip<std::streamsize>)'
1>E:\Downloads\Compile\src\stats.cpp(232,13): error C2297: '<<': illegal, right operand has type 'const char [2]'
1>E:\Downloads\Compile\src\stats.cpp(232,6): warning C4552: '<<': result of expression not used
1>protocolstatus.cpp
1>talkaction.cpp
1>tasks.cpp
1>teleport.cpp
1>thing.cpp
1>tile.cpp
1>tools.cpp
1>trashholder.cpp
1>vocation.cpp
1>weapons.cpp
1>wildcardtree.cpp
1>xtea.cpp
1>Done building project "theforgottenserver.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========