VOGONS


First post, by purple_toupee

User metadata
Rank Newbie
Rank
Newbie

Hey folks. Semi-experienced dosbox user here. I can't get Covert Action to work quite right.

Everything's dandy until I get into combat, at which point I can't make the character jump. The numeric keypad is used to control walking and jumping. For example, 4 walks left, and Shift+4 jumps left. When I press Shift+4, he just walks. The shift key is ignored.

I have reproduced this problem on the following configurations:

Windows Vista x64 + dosbox 0.74 via dbgl
Windows Vista x64 + dosbox 0.74 directly
Windows Vista x64 + dosbox 0.65
Windows Vista x64 + dosbox 0.5x
Mac 10.6 + Boxer (not sure which rev of dosbox it's based on)

On Windows, I've tried the windib workaround, and toggling the scancode option in DBGL, to no avail. I've also tried with and without numlock when launching dosbox, when launching game, within game...nothing works.

In all cases, I was testing with a USB microsoft natural keyboard 4000. All locales/mappings are en-us. Keymap is us-103.

Help! Does anyone know what this is about? The Covert Action page (http://www.dosbox.com/comp_list.php?showID=1041) seems to discuss the problem, but it looks like it should be working now.

Reply 1 of 4, by robertmo

User metadata
Rank l33t++
Rank
l33t++

i can confirm this, game works properly on my 386 with both numlock settings.

i can confirm this, game works properly on my 386 with both numlock settings.

in winxp this game works properly only with turned off numlock

this game i guess tries to lock numpad off and while it succeeds on 386, it doesn't succeed in winxp, hence the difference in 386 vs winxp behaviour. and also explains why it doesn't work in dosbox

The problem of dosbox is that in dosbox's command line i can modify numpad behaviour with shift when numlock is on, but i cannot do it when numlock is off (on my 386 and in winxp i can always modify numpad's behaviour)

edit:
that would be true if it was working in windows with numlock on, anyway the solution may be caused by dosbox's numpad not working properly with shift

Last edited by robertmo on 2011-07-26, 19:22. Edited 1 time in total.

Reply 2 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

so with numlock off, shift works as if numlock is pressed on your 386 ? Got to check how I coded that part in dosbox.

edit: at first glance it looks like either shift or numlock toggle the shift values.
So that is alright ? The only part missing is the cancelling when they are both there.

Does your keyboard generate extended keypresses ?

Last edited by Qbix on 2011-07-26, 19:27. Edited 1 time in total.

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 4, by robertmo

User metadata
Rank l33t++
Rank
l33t++

on 386
with numlock off, shift works as if numlock is on
with numlock on, shift works as if numlock is off

anyway when testing dosbox and 386 in "star control 2" keys.exe both look different way: in dosbox i see numlock pressed when it is on, while on 386 i see numlock only for the moment when it is being pressed,
also when i press arrow keys i see as if i pressed both: shift and arrow (depending whether numlock is on or off)

Reply 4 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

that numlock always pressed is to work around a problem in sdl. it should go off once you press another key.

check my edit.

Water flows down the stream
How to ask questions the smart way!