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

Simple debug system (whitelist/blacklist) for otclient

Source

Banned User
Joined
May 31, 2020
Messages
74
Reaction score
62
Location
OpenTibia .dev
GitHub
source61
Github: Source61/otclient-debug (https://github.com/Source61/otclient-debug)
Simple debugging whitelist/blacklist system for otclient, so instead of spamming print(...) and std::cout everywhere, you can use g_logger.debug("some text", "somesection") and it will only be logged/printed out if somesection has been whitelisted in myconfig.cpp, making debugging more organized.
I assume it won't be accepted as a PR to any of the main otclient repos, so I'm posting it here since I believe this can still be useful for cleaner debugging, both when in use and for cleaning up/removing the debug lines afterwards.
 
Top