Dran Ryszard
Active Member
Hi, i tried break a effect limit, and i think, all was changed to uint 16, but when i put in features in otc
"g_game.enableFeature(GameMagicEffectU16)"
then effect stop work, and when i using "exura" or other spell i got black screen in otc
Any ideas what i do wrong?

I forgott about one line, what i dont change, so propably its a problem, but when i change it, i got error
1>C:\Users\PC_USER\Desktop\OTS_FILES\src\protocolgame.cpp(1734,14): error C2275: 'uint16_t': expected an expression instead of a type
1>(compiling source file '/src/protocolgame.cpp')
its that line - msg.addByte<uint16_t>(type);
normal is msg.addByte(type);
"g_game.enableFeature(GameMagicEffectU16)"
then effect stop work, and when i using "exura" or other spell i got black screen in otc
Any ideas what i do wrong?

Post automatically merged:
I forgott about one line, what i dont change, so propably its a problem, but when i change it, i got error

1>C:\Users\PC_USER\Desktop\OTS_FILES\src\protocolgame.cpp(1734,14): error C2275: 'uint16_t': expected an expression instead of a type
1>(compiling source file '/src/protocolgame.cpp')
Code:
=lua]
void ProtocolGame::sendMagicEffect(const Position& pos, uint16_t type)
{
if (!canSee(pos)) {
return;
}
NetworkMessage msg;
msg.addByte(0x83);
msg.addPosition(pos);
msg.addByte<uint16_t>(type);
writeToOutputBuffer(msg);
}
its that line - msg.addByte<uint16_t>(type);
normal is msg.addByte(type);
Last edited: