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

Compiling Compiling error tfs 8.60 system debian 8.0

Daniel Braga

New Member
Joined
Mar 17, 2018
Messages
53
Reaction score
1
protocolgame.cpp:2258:6: error: prototype for ‘void ProtocolGame::sendDistanceShoot(const Position&, const Position&, uint8_t)’ does not match any in class ‘ProtocolGame’
void ProtocolGame::sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
^
In file included from protocolgame.cpp:21:0:
protocolgame.h:204:8: error: candidate is: void ProtocolGame::sendDistanceShoot(const Position&, const Position&, uint16_t)
void sendDistanceShoot(const Position& from, const Position& to, uint16_t type);
^
protocolgame.cpp:2271:6: error: prototype for ‘void ProtocolGame::sendMagicEffect(const Position&, uint8_t)’ does not match any in class ‘ProtocolGame’
void ProtocolGame::sendMagicEffect(const Position& pos, uint8_t type)
^
In file included from protocolgame.cpp:21:0:
protocolgame.h:205:8: error: candidate is: void ProtocolGame::sendMagicEffect(const Position&, uint16_t)
void sendMagicEffect(const Position& pos, uint16_t type);
^
protocolgame.cpp:2871:6: error: prototype for ‘void ProtocolGame::AddMagicEffect(NetworkMessage_ptr, const Position&, uint8_t)’ does not match any in class ‘ProtocolGame’
void ProtocolGame::AddMagicEffect(NetworkMessage_ptr msg,const Position& pos, uint8_t type)
^
In file included from protocolgame.cpp:21:0:
protocolgame.h:294:8: error: candidate is: void ProtocolGame::AddMagicEffect(NetworkMessage_ptr, const Position&, uint16_t)
void AddMagicEffect(NetworkMessage_ptr msg, const Position& pos, uint16_t type);
^
protocolgame.cpp:2878:6: error: prototype for ‘void ProtocolGame::AddDistanceShoot(NetworkMessage_ptr, const Position&, const Position&, uint8_t)’ does not match any in class ‘ProtocolGame’
void ProtocolGame::AddDistanceShoot(NetworkMessage_ptr msg, const Position& from, const Position& to,
^
In file included from protocolgame.cpp:21:0:
protocolgame.h:295:8: error: candidate is: void ProtocolGame::AddDistanceShoot(NetworkMessage_ptr, const Position&, const Position&, uint16_t)
void AddDistanceShoot(NetworkMessage_ptr msg, const Position& from, const Position& to, uint16_t type);
^
Makefile:541: recipe for target 'protocolgame.o' failed
make[1]: *** [protocolgame.o] Error 1
make[1]: Leaving directory '/home/serv/source'
Makefile:396: recipe for target 'all' failed
make: *** [all] Error 2

up
 
Last edited:
It's not related to Debian 8.0.
Your engine is bugged. There is missing one function in protocolgame.cpp file.
Probably someone changed it in protocolgame.h
In protocolgame.h there is:
Code:
sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
In protocolgame.cpp there is:
Code:
void ProtocolGame::sendDistanceShoot(const Position& from, const Position& to, uint16_t type)
As you can see, last parameter is 'uint8_t type' in .h and 'uint16_t type' in .cpp and there must be same type.

If you don't know, if it should be 8 or 16, post content of ProtocolGame::sendDistanceShoot function from .cpp file.

EDIT:
In default 8.60 version it was 'uint8_t'. You may use uint16_t only, if you use OTClient as client and you enabled extra feature for 'more than 255 effects in client'.
 
@Gesior.pl
this is?

void ProtocolGame::sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
{
if(type > SHOOT_EFFECT_LAST || (!canSee(from) && !canSee(to)))
return;

NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{
TRACK_MESSAGE(msg);
AddDistanceShoot(msg, from, to, type);
}
}
 
@Gesior.pl
as well?

these source was made available in tibiaking, practically everyone managed to compile it.
Post automatically merged:

What should I do?
Post automatically merged:

if these sources have no way to compile, could you indicate a good one? no wodbo bugs? 8.6
 
Back
Top