doyousketch2 / friendly_chat

Minetest Client-Side Mod to give you more control over your chat experience.
MIT License
0 stars 0 forks source link

MT 5.5.0 crashes to main menu when mods.conf configured enabled #1

Open Baigle opened 2 years ago

Baigle commented 2 years ago
ModError: Failed to load and run mod "friendly_chat":
friendly_chat:init.lua:237: attempt to call field 'register_on_receiving_chat_messages' (a nil value)
stack traceback:
    friendly_chat:init.lua:237: in main chunk
Check debug.txt for details.

Happens on both singleplayer and when joining a multiplayer game

ghost commented 2 years ago

I am trying to debug this bug myself. that particular message, I stopped, now its giving me trouble at another spot.

Baigle commented 2 years ago

I am trying to debug this bug myself. that particular message, I stopped, now its giving me trouble at another spot.

Another user we had seems to have fixed it, by replacing 'core.register_on_receiving_chat_messages' with 'core.register_on_receiving_chat_message', without the "s" on the end of the registration callback. The registration function on connect (minetest.register_on_connect) or whatever it was has also been superseded by the "core.register_on_mods_loaded(" function in the minetest source code. It also doesn't matter if you use minetest(dot) or core(dot) as the source code assigns the minetest(dot) table to the same variable as core(dot) somewhere in one of the files. Its easier to search if you load in the https://github.com/minetest/minetest repository into VSCodium or another alternative and use CTRL+T, CTRL+P, CTRL+, and other keybinds to search around the minetest source code workspace. GitHub and maybe GitLab also now have a quick-search function using CTRL+k that tries to make the website more like the traditional IDE.