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
242 stars 177 forks source link

Bug in function "g_ui.displayUI()" #783

Closed CodingALS closed 1 month ago

CodingALS commented 1 month ago

Priority

High

Area

What happened?

The "g_ui.displayUI()" function is only working when applied within the INIT or TERMINATE function, when applied in any other function it starts spamming an error

The problem is finding the file path, because following what I did in the example below I managed to solve the problem

Example: the "Open new channel" and "Ignore players" buttons in the game_console module are spamming errors

However, if I change these factors below the error is corrected: "g_ui.displayUI('communicationwindow')" to "g_ui.displayUI('/modules/game_console/communicationwindow')"

What OS are you seeing the problem on?

Windows

Code of Conduct

mehah commented 1 month ago

I can't reproduce, test with a clean client, without modifications and in the latest revision.

image