Irevol / minetest-citadel

A minetest game
Other
3 stars 1 forks source link

Ungraceful crash when Host Server enabled #12

Open Warr1024 opened 8 months ago

Warr1024 commented 8 months ago

ServerError: AsyncErr: Lua: Runtime error from mod 'citadel_core' in callback LuaABM::trigger(): ...inetest/bin/../games/citadel/mods/citadel_core/nodes.lua:194: attempt to index local 'player' (a nil value)

I know that you have attempted to "disable" hosting a server by hiding the "host server" checkbox in the main menu, but this doesn't actually prevent somebody from enabling it via the command line options, and not all users actually use the main menu at all.

The cheapest solution would be just to detect non-singleplayer most earlier and throw a more meaningful error message. However, it doesn't seem like it would actually be that difficult to make this game actually support cooperative multiplayer.

Irevol commented 8 months ago

It wouldn't be very much trouble to make the game support multiplayer, which is clearly the best solution.