Noeda / dfterm3

Remote Dwarf Fortress playing
ISC License
45 stars 2 forks source link

Disable actions like abandoning, exiting, etc. #25

Open lethosor opened 10 years ago

lethosor commented 10 years ago

There is probably a way to do this with a DFHack plugin that disables certain menu options. Allowing these actions locally would be tricky (except for exiting, which can be done with "die" in the DFHack console).

Noeda commented 10 years ago

This may be handled together with #23. I'll keep this open because having these specific features is important to make public community games viable.

lethosor commented 10 years ago

I was assuming #23 referred to client-side control, but I suppose it could also integrate with DF. Feel free to merge this if you like.

MchgnEnt commented 10 years ago

A workaround for the moment is to assign the esc menu to ctrl+alt+f12.

note: This only works on Windows and was tested using firefox nighty.

lethosor commented 10 years ago

That only works on Windows (and possibly some Linux distributions) where that key combination is intercepted by the system. Also, there's probably a way to send keypress events to Dfterm3 without actually pressing the key in the browser, which someone could figure out if they really wanted to.

lethosor commented 10 years ago

I've started working on a basic DFHack plugin to do this. Right now it prevents quitting, changing keybindings, and abandoning by intercepting SELECT keypresses on the relevant menu and displaying an error message: screen shot 2014-05-31 at 11 05 34 am I'm planning on making it configurable so you can choose which menu options to disable. Thoughts?

Noeda commented 10 years ago

I could distribute it with the Dfterm3 plugin and add a message to make sure server admins can see this is an option they can turn on.