Witchaven II Configuration
v11-14-2014 Release 5 ©
RTCM Corvin
Introduction
| Controls.cfg |
Key Scan Codes |
Hard Coded Keys |
HMIset.cfg |
Pref.dat
The Witchaven II CONTROLS.CFG is a bit different than some other
BUILD Games, it uses Hex Code to assign keys. It has support for a
various amount of 1996 controllers, of course including Keyboard and
Mouse. It also controls the video display from VGA to SVGA. I will
show how to setup the WASD modern FPS controls with Mouse support
manually with notepad on the left Custom Layout column below.
You can however do this with the games SETUP.EXE file. But make
sure you have a copy of the your game elsewhere as the program after
Sound configuration will reinstall the game from the CD or Mounted
ISO. This will over write your game, effectively downgrading any
updates you may have applied. Then the program will ask you to
configure your keyboard, mouse or any other controllers you have.
There is no known way around skipping steps in the SETUP.EXE.
All Downloads for this page are in the
witchaven-patchs folder.
Here is inside the CONTROLS.CFG, You can see the Key Scan Codes
after the functions. You can simple copy this text and insert it
into your CONTROLS.CFG.
Strafe Bug: In version 2.0c of WH2 there is a bug that will
prevent you from configuring Strafe to your liking. It's stuck at
assigned keys , and . regardless what
you set them too. To overcome this, update WH2 to the unreleased
version 2.0g. The bug was fixed by Capstone after the game was
released, but they never issued a patch at the time.
Custom Layout |
Default Layout |
[KEYBOARD]
USE SHIELD = 0x21 // F
FLY DOWN = 0x2C // Z
FLY UP = 0x10 // Q
CAST SPELL = 0x29 // `
USE POTION = 0x1c // RETURN
STRAFE RIGHT = 0x20 // D
STRAFE LEFT = 0x1e // A
LOOK CENTER = 0xc7
LOOK DOWN = 0xd1
LOOK UP = 0xc9
DUCK = 0x2E // C
JUMP = 0x12 // E
OPEN/CLOSE = 0x39 // SPACE
USE WEAPON = 0x35
STRAFE MODE = 0x38 // LALT (Turns Mouse Strafing on)
RUN MODE = 0x2A // LSHIFT
TURN RIGHT = 0xcd
TURN LEFT = 0xcb
MOVE BACKWARD = 0x1F // S
MOVE FORWARD = 0x11 // W
[MOUSE]
RIGHT BUTTON = 0x13 // Cast Spell
MIDDLE BUTTON = 0x7 // Open and Close
LEFT BUTTON = 0x6 // Use Weapon
MOUSE ENABLE = 0x1
[JOYSTICK]
BUTTON 4 = 0x4
BUTTON 3 = 0x5
BUTTON 2 = 0x7
BUTTON 1 = 0x6
JOYSTICK ENABLE = 0xff
[AVENGER]
BUTTON F = 0x1d
BUTTON E = 0x8
BUTTON D = 0x13
BUTTON C = 0x12
BUTTON B = 0x7
BUTTON A = 0x6
AVENGER ENABLE = 0x1
[GAMEPAD]
BUTTON 4 = 0x4
BUTTON 3 = 0x5
BUTTON 2 = 0x7
BUTTON 1 = 0x6
GAMEPAD ENABLE = 0x0
[WINGMAN]
MIDDLE BUTTON = 0x12
TRIGGER BUTTON = 0x6
THUMB BUTTON = 0x7
TOP BUTTON = 0x15
WINGMAN ENABLE = 0x0
[VFX1]
BOTTOM BUTTON = 0x12
MIDDLE BUTTON = 0x7
TOP BUTTON = 0x6
CYBERPUCK ENABLE = 0x0
[VIDEO]
Resolution = SUPERVGA 640 X 480
// MCGA 320 X 200 |
[KEYBOARD]
USE SHIELD = 0x1f // S
FLY DOWN = 0xd3 // Delete
FLY UP = 0xd2 // Insert
CAST SPELL = 0x29 // `
USE POTION = 0x1c // Enter
STRAFE RIGHT = 0x34 // .
STRAFE LEFT = 0x33 // ,
LOOK CENTER = 0xc7 // Home
LOOK DOWN = 0xd1 // Page Down
LOOK UP = 0xc9 // Page Up
DUCK = 0x2c // z
JUMP = 0x1e // a
OPEN/CLOSE = 0x39 // Space
USE WEAPON = 0x1d // LCrtl
STRAFE MODE = 0x38 // LAlt
RUN MODE = 0x2a // LShift
TURN RIGHT = 0xcd // Right Arrow
TURN LEFT = 0xcb // Left Arrow
MOVE BACKWARD = 0xd0 // Down Arrow
MOVE FORWARD = 0xc8 // Up Arrow
[MOUSE]
RIGHT BUTTON = 0x0
MIDDLE BUTTON = 0x5
LEFT BUTTON = 0x6 // Use Weapon
MOUSE ENABLE = 0x1
[JOYSTICK]
BUTTON 4 = 0x4
BUTTON 3 = 0x5
BUTTON 2 = 0x7
BUTTON 1 = 0x6
JOYSTICK ENABLE = 0x1
[AVENGER]
BUTTON F = 0x1d
BUTTON E = 0x8
BUTTON D = 0x13
BUTTON C = 0x12
BUTTON B = 0x7
BUTTON A = 0x6
AVENGER ENABLE = 0x1
[GAMEPAD]
BUTTON 4 = 0x4
BUTTON 3 = 0x5
BUTTON 2 = 0x7
BUTTON 1 = 0x6
GAMEPAD ENABLE = 0x0
[WINGMAN]
MIDDLE BUTTON = 0x12
TRIGGER BUTTON = 0x6
THUMB BUTTON = 0x7
TOP BUTTON = 0x15
WINGMAN ENABLE = 0x0
[VFX1]
BOTTOM BUTTON = 0x12
MIDDLE BUTTON = 0x7
TOP BUTTON = 0x6
CYBERPUCK ENABLE = 0x0
[VIDEO]
Resolution = SUPERVGA 640 X 480 |
Use this chart to assign your keys. The Hex Code must be preceded
by 0x
If you want to turn a key off or function off, apply the hex code
zero x zero 0x0
Note: Some hard coded keys where removed from the chart, do not
assign functions to the Hard code keys.
Hex Scan
Code |
Key |
Hex Scan
Code |
Key |
Hex Scan
Code |
Key |
Hex Scan
Code |
Key |
|
|
20 |
D |
|
|
c8 |
UP ARROW |
01 |
ESC |
|
|
|
|
d0 |
DOWN
ARROW |
c7 |
Home |
22 |
G |
|
|
cb |
LEFT
ARROW |
d1 |
Pg Dwn |
23 |
H |
|
|
cd |
RIGHT
ARROW |
c9 |
Pg Up |
24 |
J |
|
|
9d |
RCTRL |
d2 |
Insert |
25 |
K |
45 |
Num Lock |
|
|
d3 |
Delete |
26 |
L |
46 |
Scroll Lock |
|
|
|
|
|
|
|
|
|
|
|
|
27 |
; |
|
|
|
|
28 |
' |
|
|
|
|
29 |
`
(~) |
48 |
8 Up Arrow (num) |
|
|
2A |
LSHIFT |
4A |
- (num) |
|
|
2B |
\ |
4B |
4 Left
Arrow (num) |
|
|
2C |
Z |
4C |
5 (num) |
|
|
2D |
X |
4D |
6 Right
Arrow (num) |
0E |
Backspace |
2E |
C |
4E |
+ (num) |
|
|
2F |
V |
4F |
1 End
(num) |
10 |
Q |
30 |
B |
50 |
2 Down
Arrow
(num) |
11 |
W |
31 |
N |
51 |
3 Page Down (num) |
12 |
E |
32 |
M |
52 |
0 Ins
(num) |
13 |
R |
33 |
,
(<) |
53 |
Del .
(num) |
14 |
T |
34 |
.
(>) |
15 |
Y |
35 |
/ |
16 |
U |
36 |
RSHIFT |
17 |
I |
37 |
PtScr |
18 |
O |
38 |
LAlt |
19 |
P |
39 |
Space |
|
|
|
|
|
|
|
|
1C |
Enter |
|
|
1D |
LCTRL |
|
|
1E |
A |
|
|
1F |
S |
|
|
You may want to download a KEYTRY.EXE program; When you run it and
you press a key it will display the coded needed to enter in WH2's
CONTROLS.CFG file.
You do not want to assign any functions to the following keys since
they are hard coded in the game and can cause problems if double
assigned.TAB is the Overhead Map (-
and = keys change the size of the map)
F is Map Follow Mode
F1 through F8 are Spells
1 through 0 are Weapons
- and = Changes screen size/HUD (one step only)
END is Cancel Spell (Used primarily to end the Flight spell)
[ and ] are Select Potion inventory keys
F9 is Quick Load
F10 is Quick Save
F11 is Brightness
F12 is Saves a screen shot in .PCX
format
CAPS LOCK is Run Lock
This is the audio part of the configuration, saved by SETUP.EXE.
[DIGITAL]
DeviceName = Sound Blaster 16/AWE32
DeviceIRQ = 7
DeviceDMA = 1
DevicePort = 0x220
DeviceID = 0xe015
[MIDI]
DeviceName = MPU-401
DevicePort = 0x330
DeviceID = 0xa001
This file holds all the adjustments you make in game, with the in
game Options menu. There's nothing you can really edit in the file.
It saves upon exit of the game regardless if you made any changes or
not.
|