Follow-up Comment #12, bug #18693 (project wesnoth): Hmm maybe that could be useful but note that there are other more easy ways to cheat. The most known is to save the game and then to open it in a seperate wesnoth client.
Another thing you could do is a use a mp modification to detect clients that use debug mode. Untested code: [modification] id = detect_debug name = _ "Detect Debug" description = _ "Adds a menu item to check which players have debug mode active" [event] name = "prestart" [set_menu_item] id = "detect_debug" description = "Detect Debug" [command] [lua] code = << wesnoth.set_variable("debug_active", value) wesnoth.wml_actions.set_global_variable { namespace = "detect_debug", to_global = "debug_active", from_local = "debug_active", side = "global", immediate = true, } wesnoth.set_variable("debug_active") local text = "" for k, side in ipairs(wesnoth.sides) do if side.controller ~= "null" then wesnoth.wml_actions.get_global_variable { namespace = "detect_debug", to_global = "debug_active", from_local = "debug_active", side = side.side, immediate = true, } text = text .. "Side " .. side.side .. " has debug mode on: " .. wesnoth.get_variable("debug_active") .. "n" wesnoth.set_variable("debug_active") end end wesnoth.message(text) >> [/lua] [/command] [/set_menu_item] [/event] [/modification] _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?18693> _______________________________________________ Nachricht gesendet von/durch Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs