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
Other
269 stars 211 forks source link

[TFS] Monster icons issue #971

Closed ArturKnopik closed 1 day ago

ArturKnopik commented 1 week ago

Priority

High

Area

What happened?

Left - Cipsoft client Right - OTC Creatures with icons breaks client image

ERROR: ProtocolGame parse message exception (180 bytes, 92 unread, last opcode is 0x66 (102), prev opcode is 0x6d (109)): ProtocolGame::getThing: invalid thing id Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 1310)

Reproduce: setup otc using this tutorial: https://github.com/mehah/otclient/wiki/Tutorial-to-Use-OTC-in-TFS-main Use TFS master with this fix - https://github.com/otland/forgottenserver/pull/4845 use this map world.zip use this script


local spawn = GlobalEvent("spawnStartup")
function spawn.onStartup()
        local m = Game.createMonster("Demon", {x = 119, y = 115, z = 7}, true, true)
        m:setSpecialIcon(5,0)
        m:setIcon(CREATURE_ICON_PIGEON,0)
        m:setIcon(CREATURE_ICON_QUESTION,1)
end
spawn:register()

walk here (god: /town 1) image try walks around

What OS are you seeing the problem on?

Windows

Code of Conduct

kokekanon commented 1 day ago

https://github.com/mehah/otclient/pull/972 b6cb2d1