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 08-26-07, 01:50 PM   #151
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Rockin Robbins
If I go through the csv file and make it actually work with Trigger Maru, will you use it?
I should first clarify the "I don't know if it will have a negative effect" comment - I think it's important to note that if you use TM with the stock key config file instead of the TM custom one, TM itself seems to work fine, though those certain changes are missing.

If you make the CSV, I'll absolutely use it! I'll also support/update it as TM changes. If you don't do it, I'll get to it soon. I've been playing TM and like it so I'd also like to know what I'm missing.

I think what initially annoyed me is that 1.) a mod would just change my map and attack scope keys, and 2.) There's no documentation in TM as to what keys are changed, and 3.) SH4 has no option screen for key config, like every other game ever made, ever, and 4.) It's one thing to add a new key with your mod to the stock config, it's another thing entirely to just randomly change stock keys. So, with all that, my first instinct was to roll that back to defaults to get my keys back, extra TM features be damned, so I've been on stock config this whole time so they key thing hasn't been begging for a fix, on my system anyway. I'm still bewildered as to why TM would change the keys to not match the conveniently provided glossy reference card and then not document them.

Please don't read this as a major complaint against TM - it's an awesome mod - but stock was my priority and the work pile was pretty high. I've only worked on this for a month, and it is only within the last few days starting to truly settle down with no major changes, so now we can really get on this, and for any other popular ones (RFB anyone?)

Quote:
Trigger Maru is the mountain, you are Mohammed. You must go to the mountain. The mountain will not come to you.
But if you do the CSV for me... isn't that... the mountain coming... nevermind

Here's a list of the changes from TM I just typed up:

TM 1.6 Key Command Changes vs. Stock:

Removed Pause with Backsp
Added Time_compr_normal with Backsp
Added Numpad Ins for Go_back_to_prev_cam
Removed F11 from User_free_camera
Added F9 for Conning_tower_camera
Changed Coning_deck_camera from F4 to F5
Changed Periscope_camera from F4 to F3
Removed B for Binocular_camera
Changed Deckgun_camera from F6 to F10
Changed Cycle_flak_cam from F7 to F11
Changed Navigation_2D_map from F3 to F5
Added F6 for Attack_2D_map
Changed Crew_control from F10 to F7
Disabled > for Camera_on_next_unit
Disabled < for Camera_on_prev_unit
Changed Hydrophone from F8 to H
Removed Y from Systems_control
Removed Cam_zoom_in and Cam_zoom_out (but no keys assigned)
Changed Guns_control from T to I
Changed Toggle_captain_panel from F12 to F8
Added R Radar_toggle_on_off
Added , for Snorkel_depth
Added Ctrl+R for Return_to_course
Added Shift+G for Report_time_to_turn
Added G for Report_time_to_course_end
Added Ctrl+G for Report_range_to_course_end
Added Ctrl+W for Report_weather
Changed Fire from Enter to Ctrl+Enter
Changed W from Cycle_torp_tube to Cycle_fore_torp_tube
Added Y for Cycle_aft_torp_tube
Added Ctrl+V for Report_nearest_visual_contact
Added B for Toggle_battle_stations
Added Ctrl+B for Repeat_last_report
Added Ctrl+N for Report_nearest_sound_contact
Added Shift+N for Report_nearest_warship_sound_contact
Added Ctrl+M for Follow_nearest_sound_contact
Added Shift+M for Follow_nearest_warship_sound_contact
Removed F9 from Radar_view_ascope

Uh oh, I'm seeing a problem. W no longer cycles among all tubes, instead limiting to fore tubes, and Y does aft tubes. That's going to throw off all of my tube management related tracking stuff, I'll have to put some special code in for that. But pretty much all the others are no problem, though I don't think Shift is defined in key_codes.csv yet (hint: VK is 0x10, Scancode is 0x00 (not used), see how CTRL and chained ones like CTRL+Insert are set up in key_codes.csv).

If someone wants to provide an updated key_commands.csv (with any necessary key_codes.csv changes) for TM while I'm working on the tube thing, that'd be great!
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread

Last edited by minsc_tdp; 08-26-07 at 02:30 PM.
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 02:00 PM   #152
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,899
Downloads: 135
Uploads: 52


Default

Quote:
Originally Posted by minsc_tdp
Quote:
Trigger Maru is the mountain, you are Mohammed. You must go to the mountain. The mountain will not come to you.
But if you do the CSV for me... isn't that... the mountain coming... nevermind
Now you're making me think! "Honest, I never saw the mountain. It ran right out in front of me."

Ok, I'll have to edit the key_commands.csv, of course, but it also looks to me I'll have to add ctrl-enter to the key_codes.csv as well. Am I on the right track? I'll get to work. If I could do a Shoot configuration, yours is easier than that, so I shouldn't have a problem there. Ingenius work there identifying the shortcomings of present software and overcoming it. I read your very first post on voice command and never dreamed it would lead to this.

Ducimus should get involved in coordination here, except that he like you is overworked. I'll get involved then. <DANGER! DANGER!> This allows you to use ALL THE FUNCTIONS without having to remember the arcane key combinations. Therefore, it opens up the mod so everyone can more fully utilize it.

Let me put on my Schwarzenegger voice: "I'll be baaaack."
Rockin Robbins is offline   Reply With Quote
Old 08-26-07, 02:04 PM   #153
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by minsc_tdp
3.) SH4 has no option screen for key config, like every other game ever made, ever
Don't want to stick my neck out here, but I've seriously been considering tackling this deficiency in a manner similar to Setkeys for SH3. If I can stay coding motivated, maybe I can get it done before football (American style) gets going real well and the new MotoGP game comes out. If not, all bets are off on when it gets done because, between SH4, MotoGP and the NFL, I won't even have time to sleep.
__________________

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

Digital_Trucker is offline   Reply With Quote
Old 08-26-07, 02:34 PM   #154
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default d'oh!

IMPORTANT! Very occasionally sh4speech will stop recognizing commands and the system will slow down. If you alt-tab out of SH4 you'll notice a process in Task Manager called sapisvr.exe using a ton of memory. I doubt this is my fault, that's the Microsoft piece. Just kill sh4speech, kill that sapisvr.exe process, restart sh4speech and resume your game. This happened after about an hour of play only once so far.

UPDATE: Fixed in 2.2!
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread

Last edited by minsc_tdp; 08-29-07 at 01:16 AM.
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 02:37 PM   #155
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
between SH4, MotoGP and the NFL, I won't even have time to sleep.
Welcome to my world. UFC, SH4, sh4Speech, Counter-Strike, BioShock, Lost Planet, Overlord, DiRT, and at least two dozen other games I haven't finished. Hell I broke up with my girlfriend recently due to not having enough time for games and programming projects like sh4speech. Who said men can't commit?
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 03:42 PM   #156
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,899
Downloads: 135
Uploads: 52


Default

Quote:
Originally Posted by minsc_tdp
Hell I broke up with my girlfriend recently due to not having enough time for games and programming projects like sh4speech. Who said men can't commit?
Arrrrrr! Like a bad penny, I return. Let me try pasting this in here. This represents all key changes from stock SH4 to TM 1.6.

Code:
         Trigger Maru 1.6 Changes from Stock commands.cfg
 Name of Command                               Keys       
Pause_game                   key command deleted       
Time_compr_normal         Key0=0x08,,"Backsp"       
Go_back_to_prev_cam     Key0=0x60,,"Numpad Ins"       
Free_camera                  Key0=0x71,c,"F2"       
User_free_camera           Key0=0x7B,,"F12"       
Interior_radio_camera       key command deleted       
Conning_tower_camera     Key0=0x78,,"F9"       
Conning_deck_camera      Key0=0x73,,"F4"       
Periscope_camera            Key0=0x72,,"F3"       
Binocular_camera             key command deleted       
Deckgun_camera             Key0=0x79,,"F10"       
Flakgun_camera               key command deleted       
A01gun_camera               key command deleted       
A02gun_camera               key command deleted       
Cycle_flak_cam                Key0=0x7A,,"F11"       
Navigation_2D_map           Key0=0x74,,"F5"       
Attack_2D_map                Key0=0x75,,"F6"       
Crew_control                   Key0=0x76,,"F7"       
Mission_order                   key command deleted       
Camera_on_next_unit        key command deleted       
Camera_on_prev_unit        key command deleted       
Systems_control;Weapons_mng       key command deleted       
Toggle_hydrophone_view       Key0=0x48,,"H"       
Toggle_radar_view            key command deleted       
Systems_control               key command deleted       
Cam_wheel_zoom              key command deleted       
Move_forward                  delete 0x68,R,"" and 0x68,Rc,""       
Move_forward_fast           delete 0x68,Rs,"" and 0x68,Rcs,""       
Move_backward               delete 0x62,R,"" and 0x62,Rc,""       
Move_backward_fast      delete 0x62,Rs,"" and 0x62,Rcs,""       
Guns_control                   Key0=0x49,,"I"       
Toggle_captain_panel      Key0=0x77,,"F8"       
Radar_toggle_on_off         Key0=0x52,,"R"       
Toggle_snorkel                 key command deleted       
Snorkel_depth                  Key0=0xBA,C,"Comma"       
Return_to_course             Key0=0x52,c,"Ctrl+R"       
Report_time_to_turn          Key0=0x47,s,"Shift+G"       
Report_time_to_course_end        Key0=0x47,,"G"       
Report_range_to_course_end      Key0=0x47,c,"Ctrl+G"       
Report_weather                Key0=0x57,c,"Ctrl+W"       
Activate_deckgun           key command deleted       
Deactivate_gun                key command deleted       
Close_sel_torpedo_tube   key command deleted       
Fire_torpedo                    Key0=0x0D,c,"Ctrl+Enter"       
Cycle_torp_tube               key command deleted       
Cycle_fore_torp_tube        Key0=0x57,,"W"       
Cycle_aft_torp_tube          Key0=0x59,,"Y"       
WP_Identify_target           Key0=0x49,s,"I"       
Report_nearest_visual_contact        Key0=0x56,c,"Ctrl+V"       
Toggle_battle_stations       Key0=0x42,,"B"       
Repeat_last_report            Key0=0x42,c,"Ctrl+B"       
Report_nearest_sound_contac         Key0=0x4e,c,"Ctrl+N"
Report_nearest_warship_sound_contact        Key0=0x4e,s,"Shift+N"
Follow_nearest_sound_contact        Key0=0x4d,c,"Ctrl+M"
Follow_nearest_warship_sound_contact        Key0=0x4d,s,"Shift+M" 
Radar_view_ascope           key command deleted       
View_previous_escort_unit              key command deleted       
View_next_escort_unit       key command deleted
That's just in case someone is interested. Now down to doing violence to key_commands.csv and one hack to key_codes.csv. I'm going to add a keyboard shortcut, shift-I for Weapons Officer Identify Target. Then all of Trigger Maru becomes mine, I'll rename it, route it out of China, sell it for half of what Ducimus does and get FILTHY RICH!!!!! MWAHAHAHAHAHAHA!

This plan can't go wrong! I am a GENIUS!!!!!

Last edited by Rockin Robbins; 08-26-07 at 03:57 PM.
Rockin Robbins is offline   Reply With Quote
Old 08-26-07, 06:52 PM   #157
mobius22
Seaman
 
Join Date: Jun 2007
Posts: 32
Downloads: 0
Uploads: 0
Default

This mod is awesome. Sitting in the chair five feet fom the keyboard and using the Logitech PS2 headphones (they got a long reach) is really cool. Also, it makes me feel like a real captain. "GO DO THIS!!!" "Yes sir, this." "This."
"GO DO THAT!" "Yes sir. That." "That."
I've also modified the Excel sheet to better suit Trigger Marus settup; this way, I don't get the map when I order "BRIDGE!"
mobius22 is offline   Reply With Quote
Old 08-26-07, 08:05 PM   #158
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by mobius22
I've also modified the Excel sheet to better suit Trigger Marus setup;
Um... cool. Well as you can see we're in the middle of some more major surgery to properly support Trigger Maru's custom commands.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 08:32 PM   #159
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by minsc_tdp
Who said men can't commit?
:rotfl: "Yes, committed , that word should describe most of us." he says as he starts to hum the opening bars of "They're coming to take me away, HaHa".
__________________

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

Digital_Trucker is offline   Reply With Quote
Old 08-26-07, 10:04 PM   #160
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

It is done! 2.1 is posted with FULL Trigger Maru support, including new custom keys and proper tube support! You can now use trigger maru with its customized Commands.cfg file without having to overwrite that with the stock one.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread

Last edited by minsc_tdp; 08-27-07 at 02:42 AM.
minsc_tdp is offline   Reply With Quote
Old 08-27-07, 06:58 AM   #161
mountainmanUK
Sparky
 
Join Date: Jun 2006
Location: Blackburn, Lancashire, ENGLAND
Posts: 154
Downloads: 23
Uploads: 0
Default

Well......I finally ran my first ever full voice control SH4 session!!
Everything worked great.....even managed to sink a Jap DD by voice alone....IMPRESSIVE! (Pity he was so close at the time that we got rammed and sunk ourselves, but "hey"!)

Serious KUDOS to you for all the work you've put in on this project over the past few weeks......the short timescale only goes to prove your committment! Some days have included 2 or 3 updates!

My earlier problems with keyboard settings (difference between US and UK boards) didn't amount to much...it was more my own stupidity in implimentation! D'Oh!

Just a couple of questions:

Is it possible to get views (eg. Binoculars, TBT) to "pan" right or left by voice?

Any chance of a similar programme for SH3? There are still a LOT of us over at Wolves at War who are just about to start out on a new WW2 Campaign (the 3rd in the WaW series), and pure voice control for SH3 would be absolutely brilliant!

Many thanks for all your efforts....it's certainly appreciated by this British "Seadog"!
mountainmanUK is offline   Reply With Quote
Old 08-27-07, 10:38 AM   #162
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by mountainmanUK
Is it possible to get views (eg. Binoculars, TBT) to "pan" right or left by voice?
I thought about this but wanted to focus on things that a real captain would generally do by voice. When the Cap picks up his binoculars, he doesn't have an ensign holding them in front of his eyes, and then he says "pan left.... stop" and another ensign to turn his body. He just moves them with his hands, and so should you. That's my sort of working design philosophy. It could be done but I think it would be a little silly, and the slight lag in response time would probably make it not stop when you wanted it to anyway. The mouse is just so much better for this.

Quote:
Any chance of a similar programme for SH3? There are still a LOT of us over at Wolves at War who are just about to start out on a new WW2 Campaign (the 3rd in the WaW series), and pure voice control for SH3 would be absolutely brilliant!
It's been discussed earlier in the thread, all the key commands will work with SH3 already without any code changes, you would just have to update the key_commands.csv and voice_commands.csv to taste. The mouse stuff wouldn't work obviously since the controls aren't in the same place. That would be a pretty major effort - not too bad since there's a lot of similarities - but I'm not sure I want to tackle that right now. I need to wrap this up and work on some other things that need my attention, and then maybe I can do that. But a big de-motivator for me is that I do not even have sh3 installed anymore.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-27-07, 11:30 AM   #163
mountainmanUK
Sparky
 
Join Date: Jun 2006
Location: Blackburn, Lancashire, ENGLAND
Posts: 154
Downloads: 23
Uploads: 0
Default

Hi!
Thanks for your response! As quick as usual!!!

I can see your point about the Binocs etc. Makes sense!

I may have a play around with the .csv, to see if I can match it up with SH3. The programme itself seems SO much more responsive and "idiot-proof" than Shoot or VAC, so even without SH3 mouse function, it would still make for a more "real" experience!

I've also given you a valid reason for reinstalling SH3 on to your computer!!
I will be happy to try out anything you come up with, in the future, for SH3 Voice Control.

Cheers!
mountainmanUK is offline   Reply With Quote
Old 08-27-07, 11:35 AM   #164
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default mountainmanUK, what you need is

.... one of those IR control visors that keeps track of which way you are turning your head (can't remember the name of them, old age ) and changes your view in the game to match your head movements. With that implemented into the game and using sh4speech, we might never have to touch the keyboard or mouse again!
__________________

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

Digital_Trucker is offline   Reply With Quote
Old 08-27-07, 11:38 AM   #165
John Channing
Sea Lord
 
John Channing's Avatar
 
Join Date: Sep 1998
Posts: 1,846
Downloads: 156
Uploads: 5
Default

I believe you are thinking of TrackIR...

http://www.naturalpoint.com/trackir/

JCC
John Channing 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 02:55 PM.


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