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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-31-10, 03:55 PM   #1
ustahl
Watch Officer
 
Join Date: Apr 2005
Location: Oulu, Finland
Posts: 339
Downloads: 156
Uploads: 0
Default Keyboard Command Issues

TDW, thanks a million for this mod, I refuse to play without it.
There are, however, certain keyboard issues I would like solved or clarified.

With this mod enabled, is it possible to toggle Deck gun, Flak gun and crew management with function keys F5, F6 and F7 respectively? These earlier settings from Commands.cfg seem defunct now.

I took a look at TheDarkWraithUserOptions.py to make relevant changes there, but Line 18 says:

# F1-F11 functions keys are unavailable even though MenuKeyManagerWrapper says they are available. Do not try to use F1-F11.

This sort of stunned me. Acc. to that line keys F1-F11 are unusable. Nevertheless keys F1-F4 do work (help, boat, nav map, conning tower), and that's how it should be. But why not the rest? Consistency? I want to key toggle Deck gun, Flak gun etc. Are keys F5-F11 intentionally meant to be dead & useless? Or is there a way to make them available?

Are all other keys (except function keys) supposed to work exactly as set in Commands.cfg, like before?
I have a feeling that this UI mod somehow "overrules" some of the key commands set in Commands.cfg, even if the keyboard mod with Commands.cfg is added after this UI mod. It seems some commands are determined by Commands.cfg and other by the UI mod. Is there a rule?

I have touched this issue in some other postings, but haven't got to the bottom of it yet. TDW, can you pls shed some light on this?
__________________
Cheers
Uffe
ustahl is offline   Reply With Quote
Old 10-31-10, 05:16 PM   #2
SashaKA001
中国水兵
 
Join Date: Mar 2010
Location: 47°46′46″N, 37°14′51″E
Posts: 271
Downloads: 231
Uploads: 0
Default

Quote:
Originally Posted by ustahl View Post
# F1-F11 functions keys are unavailable even though MenuKeyManagerWrapper says they are available. Do not try to use F1-F11.
You can find those buttons in Commands.cfg if they are registered there then it should work. if not then there is nothing to change these.

Quote:
[Cmd574]
Name=Ability_1
Contexts=1
Key0=0x74,,"F5"

[Cmd575]
Name=Ability_2
Contexts=1
Key0=0x75,,"F6"

[Cmd576]
Name=Ability_3
Contexts=1
Key0=0x76,,"F7"

[Cmd577]
Name=Ability_4
Contexts=1
Key0=0x77,,"F8"

[Cmd578]
Name=Ability_5
Contexts=1
Key0=0x78,,"F9"

[Cmd579]
Name=Ability_6
Contexts=1
Key0=0x79,,"F10"

[Cmd580]
Name=Ability_7
Contexts=1
Key0=0x7A,,"F11"

[Cmd581]
Name=Ability_8
Contexts=1
Key0=0x7B,,"F12"
SashaKA001 is offline   Reply With Quote
Old 10-31-10, 05:43 PM   #3
DavyJonesFootlocker
The Old Man
 
Join Date: Dec 2007
Location: Stink Drunk in Trinidad
Posts: 1,572
Downloads: 138
Uploads: 0
Default

Hey TDW couldn't read all these posts but the patches how do you install. When I did it overwrites the original version 4.8.0 is this how it's supposed to be?
__________________
"Silence means death. Stand on your feet. Inner fear your worst enemy."- Sepultura.
My Silent Hunter 5 mantra is this......"Torpedo missed, sir!"
A P-400 is a P-40 with a Zero after it.
A proud member of the Wikipedia Haters Club
DavyJonesFootlocker is offline   Reply With Quote
Old 10-31-10, 05:56 PM   #4
ustahl
Watch Officer
 
Join Date: Apr 2005
Location: Oulu, Finland
Posts: 339
Downloads: 156
Uploads: 0
Default

Quote:
Originally Posted by DavyJonesFootlocker View Post
Hey TDW couldn't read all these posts but the patches how do you install. When I did it overwrites the original version 4.8.0 is this how it's supposed to be?
I'm not TDW (wish I was), but yes, the patches overwrite some files of the original mod, one file being the ...Options.py file with all the personal settings. Thus one is well advised to migrate one's personal mod settings into ...Options.py contained in the patch (piece of cake with the migrating tool).
__________________
Cheers
Uffe
ustahl is offline   Reply With Quote
Old 10-31-10, 05:48 PM   #5
ustahl
Watch Officer
 
Join Date: Apr 2005
Location: Oulu, Finland
Posts: 339
Downloads: 156
Uploads: 0
Default

Quote:
Originally Posted by SashaKA001 View Post
You can find those buttons in Commands.cfg if they are registered there then it should work. if not then there is nothing to change these.
Sasha, thanks for trying to help.
Yes, I know those key commands are in Commands.cfg, my settings are exactly the same as the ones shown by you. But F5, F6, F7 etc don't work now. Before I installed TDW's UI mod they worked fine (toggle gun etc.), but with TDW's UI mod installed nothing happens.
__________________
Cheers
Uffe
ustahl is offline   Reply With Quote
Old 11-01-10, 12:01 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by ustahl View Post
TDW, thanks a million for this mod, I refuse to play without it.
There are, however, certain keyboard issues I would like solved or clarified.

With this mod enabled, is it possible to toggle Deck gun, Flak gun and crew management with function keys F5, F6 and F7 respectively? These earlier settings from Commands.cfg seem defunct now.

I took a look at TheDarkWraithUserOptions.py to make relevant changes there, but Line 18 says:

# F1-F11 functions keys are unavailable even though MenuKeyManagerWrapper says they are available. Do not try to use F1-F11.
You cannot assign keys F1-F12 as hot keys in the user options file. Game will not recognize them as valid keys. That being said I do nothing with those keys. If they are not working then something else is wrong. All the game's default values for those function keys work fine for me (using v4.9.0 of the mod)
TheDarkWraith is offline   Reply With Quote
Old 11-01-10, 02:27 AM   #7
quad5
Soundman
 
Join Date: Nov 2008
Location: Russia
Posts: 147
Downloads: 581
Uploads: 0
Default

TheDarkWraith, You can make the panel as on a photo? Very much it would be desirable to see more elements of a real German u-boat.



Uploaded with ImageShack.us
quad5 is offline   Reply With Quote
Old 11-01-10, 09:57 AM   #8
ustahl
Watch Officer
 
Join Date: Apr 2005
Location: Oulu, Finland
Posts: 339
Downloads: 156
Uploads: 0
Keyboard Command Issues Solved

Quote:
Originally Posted by TheDarkWraith View Post
You cannot assign keys F1-F12 as hot keys in the user options file. Game will not recognize them as valid keys. That being said I do nothing with those keys. If they are not working then something else is wrong. All the game's default values for those function keys work fine for me (using v4.9.0 of the mod)
You are so right! Thank you for opening my eyes! I can see clearly now...
In my misunderstanding I thought the F1-F12 limitation would also impact the game's default values (Commands.cfg), and, as some function keys' behaviour indeed had changed for me, that confused me. I did not realize that the F1-F12 restriction was limited to the Options.py file only. I feel really stupid now, having sort of barked at the wrong tree, sorry.

I went back to make certain changes in Commands.cfg, and, voilá, I got my lately defunct function keys working again.

I feel like hiding away for a long time to make you forget my display of stupidity.
__________________
Cheers
Uffe
ustahl is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

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 11:00 AM.


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