Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » General Jazz Jackrabbit Talk

Bizarre problem running JJ1 on DOSBox. HELP!

MG_EyE_04

JCF Member

Joined: Oct 2004

Posts: 18

MG_EyE_04 is doing well so far

Feb 26, 2017, 12:27 PM
MG_EyE_04 is offline
Reply With Quote
Bizarre problem running JJ1 on DOSBox. HELP!

When I run any version of JJ1, including HH95, on Dosbox, there is a really strange issue with the CTRL & ALT key configurations. But it only happens with the right alt key.

I'm on Windows 10.

Whenever I press ALT, Jazz jumps, but the weapon select also happens at the same time. So DOSBox is registering the CTRL key alongside the ALT key, every time I press RIGHT ALT.

I tried the key configuration in the main menu. Every time I push ALT, it comes up as CTRL. This doesn't happen with LEFT ALT.

Tried the DOSBox keymapper, nothing is off there.
Tried different versions of DOSBox, same problem.
Tried uninstalling & reinstalling Jazz, same problem.
Tried online emulations of Jazz running DOSBox, same problem.

This ONLY happens in JJ. No other game has this problem.

Is this a common problem? How do I fix it?

HELP!
Torkell Torkell's Avatar

Stealth Admin

Joined: Jul 2004

Posts: 2,153

Torkell is a forum legendTorkell is a forum legendTorkell is a forum legend

Feb 26, 2017, 01:45 PM
Torkell is offline
Reply With Quote
In Windows, the right Alt key (sometimes labelled "Alt Gr") behaves as if you're pressing both Ctrl and Alt. It's to do with support for extended characters on some keyboard layouts, particularly non-English ones - you get the characters by pressing AltGr and the key (for example AltGr+4 gives € on a UK layout). https://en.wikipedia.org/wiki/AltGr_key has some more details.

Unfortunately I don't know how to fix this. It's not a JJ1 problem - it'll be a Dosbox setting if anything.
__________________
-- Torkell



MG_EyE_04

JCF Member

Joined: Oct 2004

Posts: 18

MG_EyE_04 is doing well so far

Feb 26, 2017, 04:36 PM
MG_EyE_04 is offline
Reply With Quote
Thank you for that info.

Seems like a potential headache trying to fix. I just switched the weapon select key to shift. Not perfect but one heck of a lot less annoying.
Simon Simon's Avatar

JCF Member

Joined: Dec 2016

Posts: 58

Simon is doing well so far

Feb 27, 2017, 03:07 AM
Simon is offline
Reply With Quote
You've done excellent debugging, in particular with the online emulation. The Dosbox mapper file should be OK.

It might depend on Windows's keyboard layout, as Torkell explains. On Windows's German layout, most programs interpret (AltGr = right Alt) as (Ctrl + left Alt). I don't remember if that happens at scancode level, or merely during key chords. AltGr, or Ctrl + left Alt, input symbols from a third layer. The US doesn't use AltGr to access symbols from a third key layer; it has only the normal layer and the shift layer.

Idea 1: Toggle the Windows keyboard layout to US before you play.

Idea 2: In the JJ1 main menu, remap jump/fire to left-hand letters. Use the numbers to select weapon. That's faster anyway than cycling weapons, you don't have to look at the panel anymore.

Idea 3: Because JJ1 hardcodes some keys (weapons, turtle mode, load, save, pause, ingame menu), remap everything in the Dosbox mapper for 100 % convenience. The downside is that you probably want a mapper file for each game in Dosbox, thus have to move them around between games.

I use a nonstandard keyboard layout and had to remap heavily in the Dosbox mapper anyway. In JJ1, 12345 are weapons, D is jump, F is fire, and JKL; are directions.

-- Simon
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 01:43 AM.