![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
03-21-10, 05:56 AM
|
#1 |
|
Watch
![]() Join Date: Dec 2007
Posts: 19
Downloads: 148
Uploads: 0
|
Problem solved. TMO does indeed transpose the dials. Using a screenshot from the stock game, I figured the TMO dial centres to be 35 pixels higher. By adjusting the values in dials.csv, I got it to work just fine. I think I'm going to enjoy sh4Speech very much once I work out all the TMO incompatibilities.
Thanks for your help Billko. |
|
|
03-21-10, 07:30 AM
|
#2 |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
It's GREAT to see that you can finally enjoy his work. The first time I used it, it sent shivers down my spine watching the crew respond to my voice with their own voiced acknowledgments.
Have fun! Bill
__________________
Damage Control 1.1 - LeoVampire Edition - Can you trust the experience of your crew to inform you of how deep you can really dive? |
|
|
03-21-10, 09:08 PM
|
#3 |
|
Grey Wolf
![]() Join Date: Aug 2005
Posts: 930
Downloads: 23
Uploads: 0
|
Minsc_tdp;
I'd brought this up quite a few posts ago but have been away for awhile. Any updates to the issue where SH4 speech doesn't recognize aft tubes? cheers, tomoose |
|
|
03-21-10, 09:36 PM
|
#4 | |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
Quote:
Bill
__________________
Damage Control 1.1 - LeoVampire Edition - Can you trust the experience of your crew to inform you of how deep you can really dive? |
|
|
|
03-22-10, 02:40 PM
|
#5 |
|
Watch
![]() Join Date: Dec 2007
Posts: 19
Downloads: 148
Uploads: 0
|
There's a bug with the command "Damage Control Team". sh4Speech outputs the following:
"damage control team" Code:
damage control team (572, BUTTON) voice command detected at +7.22 seconds
damage control team (voice_command.csv id = 572)
Parent detected
Adding 584 Move Mouse Away
Type is TAB, data is 384,819
Moving to bottom left (0, 900) to help load command bar)
384,819 are mouse coordinates for voice command damage control team from command_bar.csv or dials.csv
Mouse clicking at 384,819 for Sub Management (id=565)
Type is BUTTON, data is 336,871
336,871 are mouse coordinates for voice command damage control team from command_bar.csv or dials.csv
Mouse clicking at 336,871 for Damage Control Team (id=572)
Note that the text output is complete. This is all it outputs; I didn't cut anything off. You can see that it does not complete the procedure since it never outputs the familiar "Phrase processed. Listening..." Compared to a similar command, "man the deck gun", it appears to me that the data is defined correctly. Here's the output for that command for comparison. "man the deck gun" Code:
Man the deck gun (538, BUTTON) voice command detected at +28.81 seconds
Man the deck gun (voice_command.csv id = 538)
Parent detected
Adding 584 Move Mouse Away
Type is TAB, data is 216,819
Moving to bottom left (0, 900) to help load command bar)
216,819 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 216,819 for Deck Gun (id=536)
Type is BUTTON, data is 91,871
91,871 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 91,871 for Man The Deck Gun (id=538)
Type is MOUSEMOVE, data is 928,582
928,582 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 928,582 for Move Mouse Away (id=584)
Phrase processed. Listening...
|
|
|
03-22-10, 02:48 PM
|
#6 |
|
Watch
![]() Join Date: Dec 2007
Posts: 19
Downloads: 148
Uploads: 0
|
This is a fairly minor bug, but it's irritating and should be fixed. When I give a speed command, it moves my mouse pointer. Since it uses a key command, it shouldn't touch the mouse at all. This is really problematic when I am using a view. For example, let's say I'm viewing a merchant through the scope and order "Ahead 1/3". My view jerks violently away from the target. There's no reason for this, is there? It's an awful work-around to have to release the view, give the throttle order, and then reacquire the view again.
Output is: Code:
Ahead one third (20, KEY) voice command detected at +4.08 seconds
Ahead one third (voice_command.csv id = 20)
Adding 584 Move Mouse Away
Type is KEY, data is 1
1 is key sequence for voice command Ahead one third from key_commands.csv
1 is a single-key sequence
Pressing key 1 (virtual key code 0x31) from key_codes.csv
Running key() sequence for 1
Type is MOUSEMOVE, data is 928,582
928,582 are mouse coordinates for voice command Ahead one third from command_bar.csv or dials.csv
Mouse clicking at 928,582 for Move Mouse Away (id=584)
Phrase processed. Listening...
-- Looks like I edited this in before Billko replied. Whoops! -- I think the problem is here in voice.pl: Code:
if (
($TYPE{$original_id} =~ /BUTTON/i || $TYPE{$original_id} =~ /DIAL/i
|| ($original_id >= 19 && $original_id <= 28) # Telegraph reversion
) &&
$original_id != 580 && $original_id != 581 && $original_id != 582 && $original_id != 583) {
print "\t\tAdding 584 $NAME{584}\n";
push(@ids, 584); # Move Mouse Away
}
I'd also make a suggestion from a software design point of view. If per-item mouse move functionality is desired, why not external it in the CSV? If I could just change a mouse move column from "true" to "false" in one of the files, that'd be a lot easier than learning perl and recompiling the script to modify the hardcoding. Once again, thank you, minsc, for this utility! Last edited by ferg; 03-22-10 at 03:00 PM. |
|
|
03-22-10, 02:51 PM
|
#7 | |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
Quote:
Bill
__________________
Damage Control 1.1 - LeoVampire Edition - Can you trust the experience of your crew to inform you of how deep you can really dive? |
|
|
|
03-29-10, 03:07 AM
|
#8 | |
|
XO
![]() Join Date: Mar 2007
Posts: 413
Downloads: 1
Uploads: 0
|
Quote:
# Move to center area to prevent obscuring the screen for certain commands The idea was to move the mouse cursor to the center as leaving it at the bottom caused a tooltip or something which would then obscure part of the screen. This may be solvable in general in the CSV. If you see ANY reference to a specific ID number in the voice.pl script, where it looks like it's handling it special and it's screwing things up, the solution may be simple: change the ID to something else in the CSV. Most of the ID numbers are arbitrary and ignored by the code, or used only for linking commands and stuff like that. Try a really crazy ID number like 94293. Yes you could download the compiler (all you'd need is ActiveState Perl and perl2exe.exe) and tweak the Perl if you like but finding a solution in the CSVs is always preferred since everyone else can implement them more easily I would think. |
|
|
|
03-22-10, 02:57 PM
|
#9 | |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
Quote:
Bill
__________________
Damage Control 1.1 - LeoVampire Edition - Can you trust the experience of your crew to inform you of how deep you can really dive? |
|
|
|
03-22-10, 03:04 PM
|
#10 | |
|
Watch
![]() Join Date: Dec 2007
Posts: 19
Downloads: 148
Uploads: 0
|
Quote:
Edit: Confirmed. The problem exists in the provided "trigger maru" files. I'll see if I can figure it out. Thanks for the clue that it works with the stock data! With any luck I should be able to fix it. Edit: Turns out the problem affects the script anytime the resolution is set to 1440x900... Last edited by ferg; 03-23-10 at 01:33 AM. |
|
|
|
03-29-10, 03:00 AM
|
#11 | |
|
XO
![]() Join Date: Mar 2007
Posts: 413
Downloads: 1
Uploads: 0
|
Quote:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
