Keyboard arrow commands with CSBWin

Discuss Chaos Strikes Back, the "expansion pack" for Dungeon Master.
This forum may contain spoilers.
Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
ADDF_Toxic
On Master
Posts: 623
Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:

Keyboard arrow commands with CSBWin

Post by ADDF_Toxic »

I would like to use the old controls in CSBWin. Is there a way I can do that? What old controls? Side arrows are turn not stride and backup is usable. In CSBWin, up is normal, back is not there, and side arrows are stride and I'm not used to it!
Can someone please help?
thx
cya
I'm a boy, unlike my avatar.
User avatar
Florent
Um Master
Posts: 457
Joined: Sun Nov 14, 2004 5:03 pm
Location: Paris, France
Contact:

Post by Florent »

You need to edit the config.txt files and replace the hexadecimal coordinates of the default keys with the ones of the keys you want to assign. To find the coordinates of a key, turn your screen size to 1x (under the Misc menu) and look at the last 2 lines : it is an array of the last 2 keys hit (if I remember correctly... not running CSBWin on this computer). Hit a key repeatedly and you'll see its coordinates, then type them into config.txt where you want. Hope this is clear enough.
User avatar
ADDF_Toxic
On Master
Posts: 623
Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:

Post by ADDF_Toxic »

I think I understand, so if it says 1,0 for coordinates, I find that in config.txt and change it to the new command, example TURN_LEFT?
cya



I'm a bit hyper today




cya



hyper=spaces
I'm a boy, unlike my avatar.
User avatar
cowsmanaut
Moo Master
Posts: 4378
Joined: Fri Jun 30, 2000 12:53 am
Location: canada

Post by cowsmanaut »

if you use the numeric keypad then 7,9 are turn and 4,6 are side to side, and 8,5 are forward back.

moo
User avatar
ADDF_Toxic
On Master
Posts: 623
Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:

Post by ADDF_Toxic »

awsome! I'll try that,
thanks
cya
cya
I'm going hyper again sorry I had to do the double cya
I'm a boy, unlike my avatar.
User avatar
Florent
Um Master
Posts: 457
Joined: Sun Nov 14, 2004 5:03 pm
Location: Paris, France
Contact:

Post by Florent »

To make it clearer : open config.txt in the notepad and locate the part that looks like this :

Code: Select all

key  1 00006b 480000  ; 'k' = move forward
key  1 00004b 480000  ; 'K' = move forward
scan 1 000048 480000  ; Keypad '8' = move forward
key  1 000108 480000  ; SDL Keypad '8' = move forward
;
key  1 00006c 470000  ; 'l' = turn right
key  1 00004c 470000  ; 'L' = turn right
scan 1 000049 470000  ; Keypad '9' = turn right
key  1 000109 470000  ; SDL Keypad '9'
;
key  1 00006a 520000  ; 'j' = turn left
key  1 00004a 520000  ; 'J' = turn left
scan 1 000047 520000  ; Keypad '7' = turn left
key  1 000107 520000  ; SDL Keypad '7'
;
key  1 00002e 4d0000  ; '.' = move right
scan 1 00004d 4d0000  ; Keypad '6' = move right
key  1 000106 4d0000  ; SDL Keypad '6'
;
key  1 00006d 4b0000  ; 'm' = move left
key  1 00004d 4b0000  ; 'M' = move left
scan 1 00004b 4b0000  ; Keypad '4' = move left
key  1 000104 4b0000  ; SDL Keypad '4'
;
key  1 00002c 500000  ; ',' = move backward
scan 1 00004c 500000  ; Keypad '5' = move backward
key  1 000105 500000  ; SDL Keypad '5'
This is my file not the original - my keys are set up just like Cowsmanaut said, so if you like it that way you can just paste this over the code you have.
If you don't like that, here's a little more detailed explanation of the method I described yesterday (got CSBWin running here) : in the game, select "Size x1" from the Misc. menu. Look at the "mscan" and "scan" lines on the right, they show the keyboard coordinates that you will need to enter to change a key.
For example when I press keypad 8 I get

Code: Select all

00000048 scan -> translated to 00480000
Leaving out the first 2 leading zeros, you need to enter the following in config.txt :

Code: Select all

scan 1 000048 480000  ; Keypad '8' = move forward
Some other keys like the space bar work with mscan...
Post Reply