• 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 ERROR: Unable to send extended opcode 201, extended opcodes are not enabled on this server.

Jpstafe

Well-Known Member
Joined
Aug 8, 2011
Messages
507
Reaction score
68
what is wrong? did this
features.lua
Lua:
 -- you can add custom features here, list of them is in the modules\gamelib\const.lua
    g_game.enableFeature(GameBot)
    g_game.enableFeature(GameBlueNpcNameColor)
    g_game.enableFeature(GameExtendedOpcode)
)


commits


shop.lua is enabled at creaturescripts
Lua:
<event type="extendedopcode" name="ExtendedOpcode" script="extendedopcode.lua" />
    <event type="extendedopcode" name="ShopOtc" script="shop.lua" />
Code:
player:registerEvent("ExtendedOpcode")
    player:registerEvent("ShopOtc")

the error is there yet. how do i fix this?
errror
ERROR: Unable to send extended opcode 201, extended opcodes are not enabled on this server.
 
yes it's enabled i added commits today. pings works but i'm facing problems with extendedopcodes
OTCv8 detection, custom features packet, bigget packet size and bug f… · OTCv8/forgottenserver@2839d4d (https://github.com/OTCv8/forgottenserver/commit/2839d4d7a8ad3597eff6c786f4ceb9b1b4b4456b) < detects otcv8
Added better ping function · OTCv8/forgottenserver@25fbc09 (https://github.com/OTCv8/forgottenserver/commit/25fbc0954ac13b6be573e5b9893520574323429a) <better ping function
Lua:
void ProtocolGame::login(const std::string& name, uint32_t accountId, OperatingSystem_t operatingSystem)
{
    // OTCv8 features and extended opcodes
    if (otclientV8 || operatingSystem >= CLIENTOS_OTCLIENT_LINUX) {
        if (otclientV8)
            sendFeatures();
        NetworkMessage opcodeMessage;
        opcodeMessage.addByte(0x32);
        opcodeMessage.addByte(0x00);
        opcodeMessage.add<uint16_t>(0x00);
        writeToOutputBuffer(opcodeMessage);
    }
Post automatically merged:

found that i have this error in console too
Lua:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/shop.lua:onExtendedOpcode
data/creaturescripts/scripts/shop.lua:42: attempt to index global 'g_game' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/creaturescripts/scripts/shop.lua:42: in function 'init'
        data/creaturescripts/scripts/shop.lua:274: in function <data/creaturescripts/scripts/shop.lua:258>

Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/shop.lua:onExtendedOpcode
data/creaturescripts/scripts/shop.lua:42: attempt to index global 'g_game' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/creaturescripts/scripts/shop.lua:42: in function 'init'
        data/creaturescripts/scripts/shop.lua:274: in function <data/creaturescripts/scripts/shop.lua:258>
 
Last edited:
Back
Top