I'm goin' down
10-10-11, 03:40 AM
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.
Wreford-Brown
10-10-11, 06:36 AM
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
I'm goin' down
10-10-11, 07:12 AM
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.
postalbyke
10-10-11, 11:29 PM
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...
Wreford-Brown
10-11-11, 04:08 AM
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.
I'm goin' down
10-11-11, 10:14 AM
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
10-11-11, 10:33 AM
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
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.