Currently Online

Latest Posts

Topic: Making Lua console available in observer mode

MarkMcWire
Avatar
Topic Opener
Joined: 2017-02-08, 20:06
Posts: 321
Ranking
Tribe Member
Location: Eisenach, Germany
Posted at: 2023-06-20, 15:35

Since the debug build of Widelands has a really really bad performance, I would suggest to make the Lua console available in the release build as well. To prevent cheating, the console should only be available in observer mode for Multiplayer, when gamer is not active part of the game. This would it make easier to debug and experiment with AI and economy of various tribes.


My widelands project: https://github.com/widelands/wl_addons_server/tree/master/addons/europeans_tribe.wad

Top Quote
tothxa
Avatar
Joined: 2021-03-24, 11:44
Posts: 437
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-06-21, 22:24

Actually I've already started working on this: https://github.com/widelands/widelands/pull/5944

BTW cheating (other than spying) is prevented by the sync checks. As soon as the game state is modified by a lua command, the game desyncs. (I've verified this while testing the PR)


Top Quote