• 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 Attempt to destroy widget 'minimap' two times

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,576
Solutions
28
Reaction score
897
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Hi there! I have this logs on otclient, not sure what triggers it. Any idea of how can I fix it? :)

Code:
WARNING: attempt to destroy widget 'minimap' two times
ERROR: Lua exception: /gamelib/ui/uiminimap.lua:27: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: at 0x7ff7d32f23b0
    [C]: in function 'pairs'
    /gamelib/ui/uiminimap.lua:27: in function </gamelib/ui/uiminimap.lua:26>
    [C]: in function 'destroy'
    /gamelib/controller.lua:50: in function 'terminate'
    /game_minimap/minimap.otmod:9:[@onUnload]:1: in main chunk
ERROR: protected lua call failed: LUA ERROR:
/gamelib/ui/uiminimap.lua:27: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: at 0x7ff7d32f23b0
    [C]: in function 'pairs'
    /gamelib/ui/uiminimap.lua:27: in function </gamelib/ui/uiminimap.lua:26>
    [C]: in function 'destroy'
    /gamelib/controller.lua:50: in function 'terminate'
    /game_minimap/minimap.otmod:9:[@onUnload]:1: in main chunk

Here's uiminimap.lua, controller.lua (attached) and minimap.otmod

Minimap.otmod
Code:
Module
  name: game_minimap
  description: Manage minimap
  author: edubart, BeniS
  website: https://github.com/edubart/otclient
  sandboxed: true
  scripts: [ minimap ]
  @onLoad: controller:init()
  @onUnload: controller:terminate()

Thanks in advance!!
Regards :)
 

Attachments

Back
Top