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,731
Downloads: 394
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,134
Downloads: 453
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,731
Downloads: 394
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 09-03-20, 06:38 PM   #6
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by kickswitch View Post
Hi I have a problem with speech rec on sh4

I issue a command like nav map, goes to the nav map fine. But other commands like speed and depth and depth under keel, I speak the command and the mouse moves - but the mouse misses the button for say depth under keel for example. This renders most of the commands useless for me I'm afrai, and suggestions?
typically this is because you're either running a mod that has remapped your keys, or you didn't set the screen resolution properly in the startup files, so everything is a bit off kilter.

i haven't run this in years and I suspect that, if like me, you run a 4K monitor that uses font scaling, that could fundamentally alter the resolution in a way that even matching it in the shSpeech config files wouldn't work right. but generally if you use the right launcher depending on your mod setup, and your resolution is right, then everything should line up - and the excel files are included showing the coordinates of everything (I believe based on some core resolution and everything is calculated from there)

I found all these coordinates by running the game at that resolution and taking screenshots into Photoshop so I could use the cursor tools to determine the exact x/y offset of the pixel I wanted to click. so as the game has changed (and mods change it as well) some things could not quite be where I programmed them to be.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp 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 11:34 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.