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 11-23-16, 05:48 PM   #1
razark
Ocean Warrior
 
Join Date: Mar 2007
Location: Houston, TX
Posts: 2,697
Downloads: 402
Uploads: 12
Default

Quote:
Originally Posted by kickswitch View Post
I speak the command and the mouse moves - but the mouse misses the button for say depth under keel for example.
It sounds like the mouse click locations in the config files are not lined up with what you've got on your screen.

Are you running any mods that change the orders bar?
Are you setting the correct screen resolution in the batch file?
Are you running SH4 in fullscreen or windowed mode?
__________________
"Never ask a World War II history buff for a 'final solution' to your problem!"
razark is offline   Reply With Quote
Old 11-24-16, 12:59 AM   #2
kickswitch
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default Batch file

I checked the csv config files and changed the files command bar and files by adding to the top lines the correct resolution I'm running 1920x1080 so I changed both those files top lines to my desktop screen resolution. It didn't work. Any suggestions?

Thanks
  Reply With Quote
Old 11-24-16, 10:28 AM   #3
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by razark View Post
It sounds like the mouse click locations in the config files are not lined up with what you've got on your screen.

Are you running any mods that change the orders bar?
Are you setting the correct screen resolution in the batch file?
Are you running SH4 in fullscreen or windowed mode?
Emphasis added
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 11-24-16, 01:21 PM   #4
razark
Ocean Warrior
 
Join Date: Mar 2007
Location: Houston, TX
Posts: 2,697
Downloads: 402
Uploads: 12
Default

The resolution is set in the sh4speech.bat file. Open that up, and you should see a line like:
voice 1024x768 stock 1 right sh4
That's where you need to set your resolution. The ones in the .csv files are just labels, if I remember correctly.
__________________
"Never ask a World War II history buff for a 'final solution' to your problem!"
razark is offline   Reply With Quote
Old 11-24-16, 05:59 PM   #5
kickswitch
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

By sh4 speech .bat file do you mean the file I run to recognize my speech commands, the one I use is called "Sh4Speech - trigger maru"

I had a look at the text in the file and there is a line as razark mentioned that says


C:\Users\Barca1\Desktop\shSpeech2.55\dist>voice 1024x768 "trigger maru" 1 right
sh4
shSpeech 2.54 by Minsc (Erik Knepfler)

Specified resolution: 1024x768 (change under sh4speech.bat)
Using command set: trigger maru
Delay multiplier: 1 (change under sh4speech.bat)
Mouse hand: Right-handed

Caching trigger maru key_codes.csv
Caching trigger maru voice_commands.csv
Caching trigger maru key_commands.csv
Caching trigger maru variables.csv
Caching trigger maru tubes.csv
Caching trigger maru command_bar.csv
Caching trigger maru dials.csv
Listening...

I notice it says 'change under sh4speech.bat - I'm guessing this isn't the file I need to change that info as it is uneditable - where do I find sh4speech.bat

I can't find it in any of the sh4speech folders within the main folder?

Thank you all by the way for your help so far, much appreciated.

And also I'm running Trigger Maru 2.5 and Optical Targeting correction those are my only mods

Cheers
  Reply With Quote
Old 11-24-16, 10:27 PM   #6
razark
Ocean Warrior
 
Join Date: Mar 2007
Location: Houston, TX
Posts: 2,697
Downloads: 402
Uploads: 12
Default

Yes, that's the right .bat file. However, mine only has two lines.
It looks like yours contains the log of a running session, for some reason.

Change the resolution in that command to match what you're running and see if it helps.
The TMO files I created are not perfect, and I never tested them on other screen resolutions besides mine. The mouse click locations may need some adjustment for other screens.

I don't know if OTC makes any changes to the orders bar or other mouse click locations. If it does, it's going to be a matter of trial and error to figure out what works on your system.
__________________
"Never ask a World War II history buff for a 'final solution' to your problem!"
razark is offline   Reply With Quote
Old 02-26-17, 03:32 PM   #7
billko
中国水兵
 
Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
Default SH4 Speech tries to boss my computer around, too...

I know this has more to do with the WSR implemntation in Win7, but I find that if I grunt something that Windows thinks is a command, it will execute it. For example, if I clear my throat, it thinks I wanted to press the TAB key (which is fine, because the tab key isn't defined in my csv file). But sometimes Windows thinks I want to open up an application, or it opens up a help file, or switch applications.

Anyone know how to give SH4 Speech exclusive access to the WSR? Thanks!
__________________
Damage Control 1.1 - LeoVampire Edition - Can you trust the experience of your crew to inform you of how deep you can really dive?
billko is offline   Reply With Quote
Old 03-01-17, 02:24 PM   #8
bdd458
Seaman
 
Join Date: May 2012
Location: United States
Posts: 31
Downloads: 51
Uploads: 0
Default

I had the same issue as Kickswitch, all I had to do however was go to the command bar csv file and change the location for the buttons on the UI that the mouse was not moving to correctly. The X value was originally 189, I changed to 350 and now it works perfectly (had the problem with Battlestations and Depth Under Keel, changed it to that for both of them. Their X axis location was both originally 189).
bdd458 is offline   Reply With Quote
Old 09-03-20, 06:49 PM   #9
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 413
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by kickswitch View Post
I notice it says 'change under sh4speech.bat - I'm guessing this isn't the file I need to change that info as it is uneditable - where do I find sh4speech.bat
sorry it's been like 4 years but

root folder of the zip has all the different BATs, use whichever best matches your setup

.bat files are just text files and are indeed editable.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 09-04-21, 10:33 AM   #10
hughesjr
Watch
 
Join Date: Dec 2019
Posts: 30
Downloads: 20
Uploads: 0
Default

Quote:
Originally Posted by minsc_tdp View Post
sorry it's been like 4 years but

root folder of the zip has all the different BATs, use whichever best matches your setup

.bat files are just text files and are indeed editable.
I don't suppose you would let me know the secret of how to directly input a 3 digit course or heading into the interface? Maybe there is not a way, and this is done via mouse clicks .. in which case I will need to try something else

EDIT: Based on everything that I am looking at, the heading and rudder changes seem to be based on the screen layout and do not have a direct numerical input .. is this correct? I do see that Shift Page up has been set to this:

[Cmd180]
Name=Set_course
Ctxt=1
Key0=0x21,Cs,"SHIFT Page Up"

BUT .. I do not see a way to feed it input.

Last edited by hughesjr; 09-04-21 at 11:00 AM.
hughesjr is offline   Reply With Quote
Old 11-04-26, 12:27 AM   #11
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 413
Downloads: 1
Uploads: 0
Default should I refactor/rebuild shSpeech with modern code?

i sure did love perl hashes (still do)
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 11-04-26, 12:29 AM   #12
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 413
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by hughesjr View Post
I don't suppose you would let me know the secret of how to directly input a 3 digit course or heading into the interface? Maybe there is not a way, and this is done via mouse clicks .. in which case I will need to try something else

EDIT: Based on everything that I am looking at, the heading and rudder changes seem to be based on the screen layout and do not have a direct numerical input .. is this correct? I do see that Shift Page up has been set to this:

[Cmd180]
Name=Set_course
Ctxt=1
Key0=0x21,Cs,"SHIFT Page Up"

BUT .. I do not see a way to feed it input.
Sorry I'm far too old to remember, but I'm sure now that any AI agent could evaluate the code and explain better than I. Source is in the zip. However I do believe there's no numeric heading input since everything was mouseclick and that was indeed resolution-dependent.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 11-04-26, 09:58 AM   #13
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by hughesjr View Post
I don't suppose you would let me know the secret of how to directly input a 3 digit course or heading into the interface? Maybe there is not a way, and this is done via mouse clicks .. in which case I will need to try something else

EDIT: Based on everything that I am looking at, the heading and rudder changes seem to be based on the screen layout and do not have a direct numerical input .. is this correct? I do see that Shift Page up has been set to this:

[Cmd180]
Name=Set_course
Ctxt=1
Key0=0x21,Cs,"SHIFT Page Up"

BUT .. I do not see a way to feed it input.
that command enables a cursor change and waits for the player to use the mouse and click on a new course.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Reply

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 03:12 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.