SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-24-08, 08:54 AM   #1
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default "All Stop" - Key command...

Right, I have been playing the game for a while, and decided to make a change to the key config as it was bugging me...

Note: I have UK keyboard layout

My "All-Stop" command key is the apostrophe key ('), which is near the return key, so I decided to put it where it supposed to be, to the left of the "1" key...

The key on my keyboard is "`", which is ASCII Code 96, which is Hex 60, so I amended the All_Stop order in the command.cfg file to this...

[Cmd171]
Name=All_stop
Ctxt=1
Str=1010
Key0=0x60,C,"`"

But this does not work. What am I doing wrong?

Thanks

PS. I tried to search for a solution on this forum, as I thought all UK people would have this problem, and would have asked to fix it - but I found nothing - (I searched for "all stop", but the search decides to only search for "stop" - I find searching on this forum does not work very well )
__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Old 07-24-08, 10:10 AM   #2
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Try this line instead:

Key0=0xC0,C,"~"

I think the game looks for the upper case equivalent of the key and this is the line that is entered in my commands.cfg file (which mod it came from, I don't know:rotfl

As for the search function, the one here doesn't like 3 letter words. I use the "search site" function of google to search here and it works much better and allows the advanced functions (quotes around several words to look for the exact group of words, etc.). The disadvantage there is that you can't search one forum or one thread, it searches the whole site.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 07-24-08, 10:19 AM   #3
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Try this line instead:

Key0=0xC0,C,"~"

I think the game looks for the upper case equivalent of the key and this is the line that is entered in my commands.cfg file (which mod it came from, I don't know:rotfl

As for the search function, the one here doesn't like 3 letter words. I use the "search site" function of google to search here and it works much better and allows the advanced functions (quotes around several words to look for the exact group of words, etc.). The disadvantage there is that you can't search one forum or one thread, it searches the whole site.
Thanks for the reply - I will give the command go. Forgot all about the Google site search

Thanks
__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Old 07-24-08, 10:28 AM   #4
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Try this line instead:

Key0=0xC0,C,"~"

I think the game looks for the upper case equivalent of the key and this is the line that is entered in my commands.cfg file (which mod it came from, I don't know:rotfl

As for the search function, the one here doesn't like 3 letter words. I use the "search site" function of google to search here and it works much better and allows the advanced functions (quotes around several words to look for the exact group of words, etc.). The disadvantage there is that you can't search one forum or one thread, it searches the whole site.
Just realised, the line you gave me is the default setting, which is what I am trying to change.

Thanks anyway
__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Old 07-24-08, 12:15 PM   #5
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Oops, my bad, I didn't think about the difference in layout on a UK keyboard.

Edit : perhaps try the keycode for the character above the ` on your keyboard? Since the default keyboard command is for the upper character on the key on the US keyboard, perhaps it's for the upper character on the UK keyboard also.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 07-24-08, 12:37 PM   #6
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Someone else evidently was having the same problem while trying to trap that keypress in a program and came up with the following

Quote:
Thankyou, Ive got it now! On my keyboard (UK) the code is 223.. But
im also going to include 192 for compatibility with others.
So it looks like your hex code should be DF and the character in quotes should be the little "drunken L" that I don't have on my keyboard:rotfl:

Edit : Link to the page that I found this answer on http://www.vbmonster.com/Uwe/Forum.a...01/vbkey-codes
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 07-24-08, 12:37 PM   #7
fred8615
Saint of the seas
 
fred8615's Avatar
 
Join Date: Mar 2004
Location: Sorrento, Louisiana
Posts: 1,320
Downloads: 265
Uploads: 127
Default

This is what's in my Commands.cfg (1.5 version):


[Cmd171]
Name=All_stop
Ctxt=1
Str=1010
Key0=0xC0,C,"~"
;Key1=0x30,C,"0"


If you take out the semi-colon on the bottom line and put it in front of the line above it, "All Stop" will become the zero key, which in a way makes sense.
fred8615 is offline   Reply With Quote
Old 07-24-08, 01:48 PM   #8
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Someone else evidently was having the same problem while trying to trap that keypress in a program and came up with the following

Quote:
Thankyou, Ive got it now! On my keyboard (UK) the code is 223.. But
im also going to include 192 for compatibility with others.
So it looks like your hex code should be DF and the character in quotes should be the little "drunken L" that I don't have on my keyboard:rotfl:

Edit : Link to the page that I found this answer on http://www.vbmonster.com/Uwe/Forum.a...01/vbkey-codes
SUPERB: Thank you SO MUCH!!!!

My command.cfg now looks like this:

[Cmd171]
Name=All_stop
Ctxt=1
Str=1010
Key0=0xDF,C,"¬"



This was driving me insane!!

I was using Microsoft Excel to obtain the ASCII and HEX codes of characters, using the CHAR(), CODE(), and DEC2HEX(), and HEX2DEC() functions, but I just was not able to get the correct character - I was fighting a losing battle...

I was putting in the "¬" character in Excel, and it was returning ASCII 172, and HEX AC. I even went through changing my keyboard settings to U.S, trying SHIFT etc - but I was getting nowhere.

If I put HEX "DF" into my Excel sheet, I get ASCII 223, and the "BETA" character - "ß"!! So I had no chance in finding the character!

Again, thank you very much
__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Old 07-24-08, 01:50 PM   #9
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by fred8615
This is what's in my Commands.cfg (1.5 version):


[Cmd171]
Name=All_stop
Ctxt=1
Str=1010
Key0=0xC0,C,"~"
;Key1=0x30,C,"0"


If you take out the semi-colon on the bottom line and put it in front of the line above it, "All Stop" will become the zero key, which in a way makes sense.
Yes, that appears to be the default setting, but is no good for UK keyboards

Thanks for taking the time to post this
__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Old 07-24-08, 02:18 PM   #10
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Glad it's working out for you, DT Happy hunting now that fat fingering the all stop won't launch a torpedo:p
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 07-24-08, 03:12 PM   #11
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Glad it's working out for you, DT Happy hunting now that fat fingering the all stop won't launch a torpedo:p
It has happened once!!! And setting rudder to centre too
__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Old 07-24-08, 03:49 PM   #12
Orion2012
Commodore
 
Join Date: Jul 2008
Posts: 611
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Glad it's working out for you, DT Happy hunting now that fat fingering the all stop won't launch a torpedo:p
I don't know which mod disabled enter as the torpedo firing key, don't know how many times I fired off a couple fish trying to fast foward with the number pad....
Orion2012 is offline   Reply With Quote
Old 07-24-08, 04:01 PM   #13
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by Orion2012
I don't know which mod disabled enter as the torpedo firing key, don't know how many times I fired off a couple fish trying to fast foward with the number pad....
I set the thumb buttons on my mouse up to handle time compression by mapping them to the numpad + and -. That way I don't have to get anywhere near that numpad enter key.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 07-24-08, 05:17 PM   #14
fred8615
Saint of the seas
 
fred8615's Avatar
 
Join Date: Mar 2004
Location: Sorrento, Louisiana
Posts: 1,320
Downloads: 265
Uploads: 127
Default

Quote:
Originally Posted by DemonTraitor
Yes, that appears to be the default setting, but is no good for UK keyboards
What, UK keyboards don't have a zero key??

fred8615 is offline   Reply With Quote
Old 07-24-08, 05:27 PM   #15
DemonTraitor
Loader
 
Join Date: Aug 2005
Posts: 87
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by fred8615
Quote:
Originally Posted by DemonTraitor
Yes, that appears to be the default setting, but is no good for UK keyboards
What, UK keyboards don't have a zero key??

Doh, I completely missed the last line - it had merged in somewhat with your sig. I need glasses

"If you take out the semi-colon on the bottom line and put it in front of the line above it, "All Stop" will become the zero key, which in a way makes sense."

__________________
a l i e n m o o n s
d i g i t a l s t u d i o s

"I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in the rain. Time to die"
DemonTraitor is offline   Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT -5. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.