I am working on a little project to make TomE4 viable for Twitch Plays. In twitch plays, the chat controls the game and tries to beat it collaboratively. With much help of a kind programmer (see https://github.com/christ0pher/twitch-p ... controller for his bot), I managed to make my own Bot Version which can make all my keyboard inputs (triggered by the chat votes) in TomE. Now basically, the chat can play Tome4 with my bot and it works fine. But I need some little changes to the game. At the moment, viewers cant mess around with access to all parts of the game too much. Because at the moment, viewers can close the game and exit to windows etc. I wrote a script to restart the game automatically if it closes.. But you see the point.. They could even change the resolution of the game or remove addons etc. Now, I am hoping to create an addon which solves this problems.
What do I need:
Most important:
1) Hide the Menu (when you press "escape" ingame) or at least core options like "Exit game, video settings, etc." Unbinding the "Escape" button does not solve this problem, because viewers / players need to hit esc to close windows etc.
2) On death: Remove the option to go back to main menu
Nice to have, but not core:
On death: Restart the game with new (random) character automatically
There are several additional tweaks which would make my project smoother. But the first two are most important.. However, I am pretty new to lua modding. I tried to find the lua files I need to modify.. I found a "GameMenu.lua" in engines/engine/dialogs and I tried to overwrite this with the "overloading" function (I just removed some parts which sounded like Menu options in this lua file ^^). But this does not work at all.. I am totally stuck


Greetings
Yoku