Guest Report post Posted June 23, 2004 Hi there! When i type the @ to chat in a channel the client shuts down. I have a german keyboard with @ on ALTGR+Q. Is there a hotkey ALT+Q to quit the game? Is there a way to change the hotkeys in the client or participating in the chat using another key? Thanks in advance, tanky Quote Share this post Link to post Share on other sites
Flexo Report post Posted June 23, 2004 Ent knows the bug and prolly is fixing it atm :-) Quote Share this post Link to post Share on other sites
tanky Report post Posted June 23, 2004 No Chat for me atm? Thanks anyway! :? Quote Share this post Link to post Share on other sites
Sadez Report post Posted June 23, 2004 The client is set to exit with alt+x and ctrl+q, but whe you press altgr sdl reports that ctrl and alt have been pressed... if you can compile the client remove this: || (event->key.keysym.sym == SDLK_q && ctrl_on) from events.c line 101 Quote Share this post Link to post Share on other sites
Grum Report post Posted June 23, 2004 Why not change it to || (event->key.keysym.sym == SDLK_q && ctrl_on && !alt_on) in cvs so that it's fixed once and for all? Quote Share this post Link to post Share on other sites
Sadez Report post Posted June 23, 2004 As I have said in my previous message, when you press altgr sdl says that both crtl and alt are pressed so that code won't work. Quote Share this post Link to post Share on other sites
Grum Report post Posted June 23, 2004 ?? That was the whole point. This way, the client won't quit when SDL reports both Ctrl and Alt, but only when just Ctrl is detected. Quote Share this post Link to post Share on other sites
Cicero Report post Posted June 23, 2004 Grum, does that work? If so, I'm adding it. Quote Share this post Link to post Share on other sites
Grum Report post Posted June 23, 2004 Sorry Cicero, couldn't tell since I can't reproduce the problem here. At least it doesn't hurt Quote Share this post Link to post Share on other sites
Mar(c) Report post Posted June 23, 2004 tip: For as long as this isn't fix0red, copy '@' to your clipboard from any text editor or wherever, and paste (ctrl-v) it in EL every time you want to channel chat. (I know, it's not a solution for the problem, but it's a workaround many Germans are using, I read somewhere...) Quote Share this post Link to post Share on other sites
Guest Report post Posted June 23, 2004 That code does not work, client keeps exiting with altgr+q Quote Share this post Link to post Share on other sites
Sadez Report post Posted June 23, 2004 Last post was mine, forgot to login. Quote Share this post Link to post Share on other sites
Grum Report post Posted June 23, 2004 Hmm, that's weird. Maybe SDL generates two events then, Alt-q and Ctrl-q ? Quote Share this post Link to post Share on other sites
Entropy Report post Posted June 23, 2004 Yes, we really need to fix this issue. To respond to the original poster, there are two thing you can do until the next version (besids for compiling the client yuorself). You can either change the keyboard settings to english, or copy the character @ in your clipboard, and paste it with ctrl+v Quote Share this post Link to post Share on other sites
Cicero Report post Posted June 23, 2004 Ok . . . could someone with a german keybord find something that works, please? :? Quote Share this post Link to post Share on other sites
Flexo Report post Posted June 24, 2004 can't you simply change @ to another symbol or change the exit thingy? Quote Share this post Link to post Share on other sites
Grum Report post Posted June 24, 2004 Okay, I tried changing my keyboard layout to German, and after spending half an hour trying to find the forward slash back again, I got the following values for mod_key_status Left Alt, US: 0x1100, De: 0x1100 Right Alt, US: 0x1200, De: 0x5000 These values would explain why the fix doesn't work, but not why the problem occurs at all. Sadez (or someone else who experiences this problem and runs cvs), could you add a printf ("%#xn", mod_key_status); in events.c and see what you get? Quote Share this post Link to post Share on other sites
Sadez Report post Posted June 24, 2004 When I press altgr I get 0x240 which means: KMOD_LCTRL | KMOD_RALT We could make the exit keys configurable in key.ini so the german guys can change it to something else. Quote Share this post Link to post Share on other sites
Grum Report post Posted June 24, 2004 If you get KMOD_RALT, I don't understand why the change I proposed earlier doesn't work. <-- Dazed and confused Perhaps your idea of making the exit keys configurable is the best. Quote Share this post Link to post Share on other sites
Sadez Report post Posted June 24, 2004 Sorry Grum that code does work, it seems I can't even copypaste Quote Share this post Link to post Share on other sites
Grum Report post Posted June 24, 2004 lol okay, good to hear. hope this causes no more problems then... Quote Share this post Link to post Share on other sites