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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-10-11, 03:40 AM   #1
I'm goin' down
Ocean Warrior
 
Join Date: Sep 2008
Location: Notify command we have entered the Grass Sea
Posts: 2,822
Downloads: 813
Uploads: 0
Default Setkeys for SH4?

Can anyone from SH3 convert Setkeys into a program that can be used in SH4. Also, a tutorial is requested, as I cannot locate one.
I'm goin' down is offline   Reply With Quote
Old 10-10-11, 06:36 AM   #2
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,750
Downloads: 51
Uploads: 26
Default

Changing Setkeys is well outside my ability, but I've created a mod for SH4 that maps SH3 keys across: http://www.mediafire.com/?zdte0dcdm0y5g25
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Old 10-10-11, 07:12 AM   #3
I'm goin' down
Ocean Warrior
 
Join Date: Sep 2008
Location: Notify command we have entered the Grass Sea
Posts: 2,822
Downloads: 813
Uploads: 0
Default

I want to add things to SH4 such as a command to open all of the torpedoe tube doors, fire salvos, etc. Those commands do not exist in the SH4 program. Either Setkey or AutoHotKey should make it possible, but I have no idea how to work eithter of those programs.
I'm goin' down is offline   Reply With Quote
Old 10-10-11, 11:29 PM   #4
postalbyke
Chief
 
Join Date: Feb 2011
Location: In the past...
Posts: 321
Downloads: 89
Uploads: 1
Default

I'm relatively certain setkeys will work for sh4, just be aware that there are more commands available for sh4.
Also, this thread could be put in the sh3 mods or the sh4 mods sections...
__________________
God is a comedian playing to an audience too afraid to laugh.
-Voltaire
postalbyke is offline   Reply With Quote
Old 10-11-11, 04:08 AM   #5
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,750
Downloads: 51
Uploads: 26
Default

Quote:
Originally Posted by I'm goin' down View Post
I want to add things to SH4 such as a command to open all of the torpedoe tube doors, fire salvos, etc. Those commands do not exist in the SH4 program. Either Setkey or AutoHotKey should make it possible, but I have no idea how to work eithter of those programs.
Try bastardising my mod - If you want to change a key combination, do a search for the key (e.g. "P") and it will give you the right line to put in.

You could also try postalbyke's suggestion, as Setkeys should work in SH4 as it's (mostly) the same file structure.
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Old 10-11-11, 10:14 AM   #6
I'm goin' down
Ocean Warrior
 
Join Date: Sep 2008
Location: Notify command we have entered the Grass Sea
Posts: 2,822
Downloads: 813
Uploads: 0
Default

I am trying to figure out how to read the cfg files. I do not know the code for the key strokes in the game. How can I modify the keystrokes if I do not know that? I can't obviously, nor can I program new functions. Where do I get started on figuring it out. There is no tutorial for Setkeys that I can locate. I need some basic guidance to get started.
I'm goin' down is offline   Reply With Quote
Old 10-11-11, 10:33 AM   #7
I'm goin' down
Ocean Warrior
 
Join Date: Sep 2008
Location: Notify command we have entered the Grass Sea
Posts: 2,822
Downloads: 813
Uploads: 0
Default Wrevford Brown

I downloaded your mod. Here are some cfg entries that hopefully you can explain to me. I am not sure where you figured any of this out, but maybe if it is explained, I can get strarted. What I am interested in doing is firing salvos in SH4. Currently it is not possible. There are several other changes, as well, such going to maximum TC in one keystroke. Here is a portion of the cfg file that I copied.

;WB's SH3 commands for SH4 17 Sep 11

[Contexts]
ContextsNb=13; max contexts nb is 16
Context0=None; default - should not be changed
Context1=Game
Context2=Pause
Context3=Spectator
Context4=Console
Context5=Museum
Context6=Effects
Context7=Final
Context8=Edic
Context9=Replay
Context10=ModalMsg
Context11=AdversarialMode
Context12=DeathEffect

[Commands]
CommandsNb=600
MaxKeyCommandsNb=170; Keys number shoud be smaller than this value (in order to accelerate the loading)

;Name = command name -> will be translated in command index
;Ctxt = command context(s) as indexes -> see [Contexts] section
;MnID = menu item id associated with this command
;Str = string id (from en_menu.txt) associated with this command
;KeyX = an entry containing <key_code>,<flags chars>,<help text id>; flags chars could be C=executed by the crew, R=repeat key, c=with control, s=with shift, m=only when mouse is captured (enabled), n=only when mouse is not captured (enabled)
;Page = <page_id>,<title_id>; associated page (only for user commands) and a title if is necessary

;______________________________________
;USER COMMANDS

[Cmd1]
Name=Help
Ctxt=1,2,3,4,5,6,7,8,9,10,11
Key0=0x70,,"F1(EN)"

[Cmd2]
Name=Console
Ctxt=1,2,3,4,6,11
Key0=0x91,,"ScrLock"

[Cmd3]
Name=Pause_game
Ctxt=1,2,6,9
MnID=0x3F010009
Key0=0x08,,"Backsp"

[Cmd4]
Name=Time_compr_reduce
Ctxt=1,2,6,9
MnID=0x3F010004
Key0=0x6D,,"Npad -"

[Cmd5]
Name=Time_compr_increase
Ctxt=1,2,6,9
MnID=0x3F010001
Key0=0x6B,,"Npad +"
Key1=0x6A,R,"NumPad *" ;WB

[Cmd6]
Name=Time_compr_normal
Ctxt=1,2,6,9
Key0=0x0D,,"Enter" ;WB

;______________________________________

[Cmd7]
Name=Go_back_to_prev_cam
Ctxt=1,11

[Cmd8]
Name=Free_camera
Ctxt=1,2,9,11
Page=0x34000000,3701

[Cmd9]
Name=User_free_camera
Ctxt=1,2,9,11
MnID=0x3F02000B
Key0=0x7B,,"F12" ;WB Key0=0x7A,,"F11"
Key1=0x7B,c,"" ;WB Key1=0x7A,c,""
Key2=0x7B,s,"" ;WB Key2=0x7A,s,""

[Cmd10]
Name=Interior_fore_camera
Ctxt=1,12
MnID=0x3F020001
Key0=0x71,,"F2"
Page=0x33000000,3703
I'm goin' down 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 08:49 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.