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

OTClient black screen issue

tibia held

New Member
Joined
Feb 15, 2010
Messages
173
Reaction score
2
Location
England
hello everyone, i got the following problem using:
Client: OTC 10.98 (GitHub - mehah/otclient: An alternative tibia client for otserv written in C++20 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to customize (https://github.com/mehah/otclient))
TFS: (GitHub - mehah/forgottenserver-optimized: Optimized forgotten server made by @SaiyansKing (https://github.com/mehah/forgottenserver-optimized/))


grafik
as you can see the map/everything on screen is just black and it drops tons of


ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: ProtocolGame parse message exception (4156 bytes, 4042 unread, last opcode is 0x64 (100), prev opcode is 0x82 (130)): invalid thing id
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 1098)
ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: ProtocolGame parse message exception (7332 bytes, 7218 unread, last opcode is 0x64 (100), prev opcode is 0x82 (130)): invalid thing id
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 1098)
ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: ProtocolGame parse message exception (7483 bytes, 7369 unread, last opcode is 0x64 (100), prev opcode is 0x82 (130)): invalid thing id
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 1098)
ERROR: no thing at pos:104 121 7, stackpos:2
at:
[C++]: ?getMappedThing@ProtocolGame@@QEBA?AV?$shared_ptr@VThing@@@std@@AEBV?$shared_ptr@VInputMessage@@@3@@Z
ERROR: no thing
at:
[C++]: ?parseTileRemoveThing@ProtocolGame@@AEBAXAEBV?$shared_ptr@VInputMessage@@@std@@@Z
ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
ERROR: ProtocolGame parse message exception (4156 bytes, 4042 unread, last opcode is 0x64 (100), prev opcode is 0x82 (130)): invalid thing id
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 1098)```


### What OS are you seeing the problem on?

Windows
 
Lua:
g_game.enableFeature(GameCreatureShader)
    g_game.enableFeature(GameCreatureAttachedEffect)
   g_game.enableFeature(GameItemShader)


specifically in that repo server says:
1698901228599.png
 
Last edited:
oh I must have overseen that one, thank you very much the black screen issue has been resolved!
however looking at the otclient console, it still says (ERROR: Unable to send extended opcode 1, extended opcodes are not enabled):

1698904705283.png

features.lua from otc look like that:

Lua:
 if version >= 1094 then
            g_game.enableFeature(GameAdditionalSkills);
            g_game.enableFeature(GameLeechAmount);
            g_game.enableFeature(GameItemShader);
            g_game.enableFeature(GameCreatureShader);
            g_game.enableFeature(GameCreatureAttachedEffect);
            g_game.enableFeature(GameExtendedOpcode)
        end

any idea what might be the reason for it?

on top of that, it seems to miss some outfits/items? I tried to download dat and spr for 10.98 from OTS.ME Downloads (https://downloads.ots.me/?dir=data/tibia-clients/) and GitHub - EPuncker/1098extended (https://github.com/EPuncker/1098extended) where as the first one worked but missed some, and the second just produces a crash and many black tiles

again thanks very much!
 
I believe that "g_game.enableFeature(GameExtendedOpcode)" does not exist in Mehah, it comes enabled by default.
del g_game.enableFeature(GameExtendedOpcode) maybe?
 
Last edited:
Lua:
void ProtocolGame::sendExtendedOpcode(uint8_t opcode, const std::string& buffer)
{
    if (m_enableSendExtendedOpcode) {
        const auto& msg = std::make_shared<OutputMessage>();
        msg->addU8(Proto::ClientExtendedOpcode);
        msg->addU8(opcode);
        msg->addString(buffer);
        send(msg);
    } else {
        g_logger.error(stdext::format("Unable to send extended opcode %d, extended opcodes are not enabled", opcode));
    }
}

Lua:
void ProtocolGame::parseExtendedOpcode(const InputMessagePtr& msg)
{
    const uint8_t opcode = msg->getU8();
    const auto& buffer = msg->getString();

    if (opcode == 0)
        m_enableSendExtendedOpcode = true;
    else if (opcode == 2)
        parsePingBack(msg);
    else
        callLuaField("onExtendedOpcode", opcode, buffer);
}
}
It's a server problem but
if force set true? xd







Im not familiar with that distribution, why don't you use 1.4 Otland or 1.5 Nekiro xd? or canary
 
Last edited:
Lua:
void ProtocolGame::sendExtendedOpcode(uint8_t opcode, const std::string& buffer)
{
    if (m_enableSendExtendedOpcode) {
        const auto& msg = std::make_shared<OutputMessage>();
        msg->addU8(Proto::ClientExtendedOpcode);
        msg->addU8(opcode);
        msg->addString(buffer);
        send(msg);
    } else {
        g_logger.error(stdext::format("Unable to send extended opcode %d, extended opcodes are not enabled", opcode));
    }
}

Lua:
void ProtocolGame::parseExtendedOpcode(const InputMessagePtr& msg)
{
    const uint8_t opcode = msg->getU8();
    const auto& buffer = msg->getString();

    if (opcode == 0)
        m_enableSendExtendedOpcode = true;
    else if (opcode == 2)
        parsePingBack(msg);
    else
        callLuaField("onExtendedOpcode", opcode, buffer);
}
}
It's a server problem but
if force set true? xd







Im not familiar with that distribution, why don't you use 1.4 Otland or 1.5 Nekiro xd?

that works good thank you!
which repo would you recomeend to be better to use for most possible recent otserver with taking advantage of most newest tibia features too?
with otclient support
 
Im not the most qualified to answer that question.
I prefer someone else answer your question. @everywere xd

Here are 3 options, are constantly updated, they are active.:

10.98

8.6

13.XX?

And their features are compatible with Mehah.


pd: @tibia held close the two issues you opened on GitHub, in case the black screen was resolved.
 
Last edited:
Back
Top