• 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!

cast system tfs 1.4

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
965
Solutions
6
Reaction score
166
Location
Nowhere
hello

I'm trying to add djarek's cast system into my server sources
Have added the commit by cherry picking it. Im getting lot of errors
Lua:
https://ghostbin.org/6552c2bbac9e1

have made changes in libraries at protocolspectator.cpp and changed part of the code in few lines still getting errors, can somebody guide me in this please?
Code:
#include "otpch.h"

#include "protocolgame.h"
#include "protocolspectator.h"
#include "iologindata.h"
#include "outputmessage.h"

#include "tile.h"
#include "player.h"
#include "chat.h"

#include "configmanager.h"

#include "game.h"

#include "connection.h"
#include "scheduler.h"
#include "ban.h"

#include "actions.h"
#include "condition.h"
#include "depotchest.h"
#include "inbox.h"
#include "iomarket.h"
#include "npc.h"
#include "outfit.h"
#include "storeinbox.h"

#include <boost/range/adaptor/reversed.hpp>
#include <fmt/format.h>

extern ConfigManager g_config;
extern Actions actions;
extern CreatureEvents* g_creatureEvents;
extern Chat* g_chat;
 
edit: ok after a review and add the commits by hand i removed errors
now i have at player.h that "client" is not definied so i gotta move it toplayer.cpp in order to remove the code
there are so many errors of it. is there a way to solve it all at once instead of have to mvoe all them to player.cpp?
Lua:
ainer.cpp
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(115,19): error C2061: syntax error: identifier 'ProtocolGame_ptr' (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(927,41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(927,41): error C2143: syntax error: missing ',' before '&' (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1061,33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1061,33): error C2143: syntax error: missing ',' before '*' (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1244,20): error C3646: 'client': unknown override specifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1244,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(270,9): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(274,11): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(326,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(327,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(682,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(683,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(701,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(704,6): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(710,26): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(711,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(727,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(730,6): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(735,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(736,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(740,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(741,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(745,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(746,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(750,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(751,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(756,9): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(762,6): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(766,6): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(770,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(779,6): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(782,6): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(788,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(789,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(793,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(794,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(810,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(811,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(821,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(822,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(828,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(829,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(866,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(867,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(867,29): error C3861: 'TextMessage': identifier not found (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(872,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(873,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(878,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(879,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(883,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(884,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(888,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(889,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(894,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(895,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(900,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(901,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(905,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(906,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(911,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(912,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(918,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(919,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(923,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(924,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(924,29): error C3861: 'TextMessage': identifier not found (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(928,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(929,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(929,29): error C2065: 'message': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(933,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(934,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(938,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(939,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(943,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(944,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(948,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(949,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(953,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(954,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(958,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(959,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(963,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(964,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(974,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(975,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(979,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(980,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(984,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(985,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(990,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(991,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(995,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(996,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1000,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1001,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1005,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1006,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1010,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1011,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1016,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1017,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1021,8): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1022,5): error C2065: 'client': undeclared identifier (compiling source file ..\src\connection.cpp)
1>C:\Users\pasturryx\OneDrive\Documentos\GitHub\pro-ot\src\player.h(1022,1): fatal  error C1003: error count exceeds 100; stopping compilation (compiling source file ..\src\connection.cpp)
1>iomapserialize.cpp
 
Back
Top