Changing the keys in CSB

Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.

Moderator: Zyx

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
Slick

Changing the keys in CSB

Post by Slick »

Could someone help me figure out how to change the config.txt file to make CSB key map function like the Apple IIGS version of Dungeon Master? I'm not very familiar with Windows keyboard maps, or much about MicroSoft programming at all beyond a little GW-BASIC and qBASIC.

The IIGS keyboard was as follows

main keyboard 1: First champion's inventory
main keyboard 2: Second champion's inventory
main keyboard 3: third champion's inventory
main keyboard 4: fourth champion's inventory
space bar: Leader's inventory

keypad 5: foreward
keypad 4: turn left
keypad 6: turn right
keypad 1: step left
keypad 2: step back
keypad 3: step right

I think there were a few letter alternates to the movement, but I can't remember, I never used them. The arrow keys were also used for movement, but I rarely used them because I couldn't turn with them.

->(CTRL-U):step right
<-(CTRL-H):Step left
^(CTRL-K):Step foreward
down arrow(CTRL-J):Step back

setting up the arrow keys isn't a priority.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: Changing the keys in CSB

Post by Paul Stevens »

Are you aware that there is a feature to help you do this
mapping?????

Make the screen small by 'un-checking' the 'Double Size'
option in the 'Misc' menu. Then you will see the keyscan
codes in the area to the right of the actual playing window.
In that way you can at least determine the scan-codes that
are being created when you press the various keys.

You can cause 'fake' mouse clicks in any part of the
screen with appropriate entries in the config.txt. If you
need a keystroke to cause multiple 'clicks' then you
better write to me for a bit of engineering work in the CSBwin
code itself.

PAul
prsteven@facstaff.wisc.edu
Slick

Re: Changing the keys in CSB

Post by Slick »

Sorry, while I know ANSI C++ code, windows specific code is a little beyond my ken at the moment.

It would help if there was a small "readme" file to alert those of us who are unfamiliar with the game of features and custimizations like this. I know that doing documentation is a PITA, but users really appreciate it. Besides, I'm not asking for the excessive programmer's documentation that Northern Illinois forces their students to do. Heck, a simple "Hello World" program would take at least 4 pages once you finish with the documentation requiements at NIU (Cover, flowchart, source code with a comment for EVERY line, printout), plus all the JCL stuff.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: Changing the keys in CSB

Post by Paul Stevens »

Good morning, Slick,

Are you telling me that you have looked at the config.txt file
and studied the contents and tried the helpful keystroke trace
that I mentioned above and you cannot figure out what (at
least approximately) is going on and a general plan to adapt
the file to your purpose. And that you are a college student?
If so, I don't believe it. It isn't that complex.

I'm willing to help but I am not going to do the work. Sorry.

PAul
prsteven@facstaff.wisc.edu
Slick

Re: Changing the keys in CSB

Post by Slick »

I didn't say that, I was saying it would help if there was a readme file or something to alert us to the little things like that. I'm sorry to imply otherwise, as I just finished reconfiguring the game. The scan code feature helped greatly, since I don't have any Wintel programmers reference books to consult.
Slick

Re: Changing the keys in CSB

Post by Slick »

oh, forgot to mention, I can't figure out how to do the spacebar to view the party leader's inventory. I must have missed it in the config file.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: Changing the keys in CSB

Post by Paul Stevens »

If you are in the 3-d window then a right mouse click
anywhere in the viewport should suffice. I see that the
current config.txt does not contain any right mouse commands
so perhaps it has never been tested.

I will check it out. If it is broken and I can make it work, I
will release a new version just for you. ;-)

I don't have any Wintel reference books either. I made
it work just the way you did....by trying the keys and seeing
what happens. Tedious work.

PAul
prsteven@facstaff.wisc.edu
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: Changing the keys in CSB

Post by Paul Stevens »

The right mouse button business does not work. I have fixed it
and will release a new version tomorrow or Sunday. I have to
package up the symbolics and that takes a little time and effort.

PAul
prsteven@facstaff.wisc.edu
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: Changing the keys in CSB

Post by Paul Stevens »

Version 7.2 has a config.txt file with two definitions for
the space bar.:
1) Cast Spell
2) Show Leader's inventory

Obviously it cannot be used for both purposes. So the
second is 'commented out' with a semi-colon. Moving
the semi-colon to the other definition will make it display
the leader's inventory.

Let me know if you cannot make it work. Good luck.

PAul
prsteven@facstaff.wisc.edu
Post Reply

Return to “Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild”