![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
03-22-10, 02:40 PM
|
#1 |
|
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
|
#2 |
|
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
|
#3 | |
|
中国水兵
![]() 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
|
#4 | |
|
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
|
#5 | |
|
中国水兵
![]() 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
|
#6 | |
|
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-22-10, 03:13 PM
|
#7 | |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
Quote:
Again, people here probably have updated CSV files that could save a lot of headache I hope this helps. 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:40 PM
|
#8 | ||
|
Watch
![]() Join Date: Dec 2007
Posts: 19
Downloads: 148
Uploads: 0
|
Quote:
There are slight differences between running sh4Speech in "stock" and "trigger maru" modes in the code, but nothing that looked like it would break anything. Looking at the source, I only noticed that torpedo tube handling is somehow different (probably to handle different tube cycling in TM). I've got tube cycling working well enough for me at this point, so that is not a concern. Quote:
|
||
|
|
03-22-10, 03:42 PM
|
#9 | |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
Quote:
__________________
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-23-10, 01:41 AM
|
#10 |
|
Sailor man
![]() Join Date: Aug 2009
Location: Manchester, NH
Posts: 43
Downloads: 151
Uploads: 0
|
Has anyone got some modded files that work with RFB 2.0 (1680x1050) just trying to save myself time.
|
|
|
03-23-10, 01:42 AM
|
#11 |
|
Watch
![]() Join Date: Dec 2007
Posts: 19
Downloads: 148
Uploads: 0
|
OK, well, this "damage control team" problem is a strange one. It turns out it has nothing to do with the CSV files. I thought the problem wasn't appearing in stock until I remembered that I had left the stock batch file at 1024x768. When I changed it to 1440x900, it evidenced the exact same behaviour. There is a bug in the script itself for that resolution.
I don't know Perl and I don't have a runtime installed on my computer, so it's a bit hard for me to debug. Nevertheless, I have a powerful suspicion that the script is going awry in the MouseMoveAbsPix subroutine. It enters an until() loop on line 811, and I think the condition never evaluates true. But why it's happening, why I've only seen it triggered with this one command, I have no idea. It's possible that it occurs with other commands as well. I probably haven't used every single command defined. Another command with the same co-ordinates ("Aim For Weapons", ID=543) works fine. |
|
|
03-29-10, 03:10 AM
|
#12 | |
|
XO
![]() Join Date: Mar 2007
Posts: 413
Downloads: 1
Uploads: 0
|
Quote:
That damage control bug is really scary. Seems like it is locking up - I'd bet voice.exe is running 100% CPU when this happens. Very ugly. |
|
|
|
04-16-10, 09:40 AM
|
#13 |
|
Grey Wolf
![]() Join Date: Aug 2005
Posts: 930
Downloads: 23
Uploads: 0
|
OK, LOL, I'm still plugging away at this.
BACKGROUND: When using SHIV Speech no matter which sub, the forward tubes react to voice commands but not the aft tubes. STATUS AT THE MOMENT: I added a line in the tubes.csv file which was basically a duplicate of the 'W' key line which cycles the forward tubes except I changed the 'W' to 'Y' and the key number was IIRC 55 whereas the 'W' line had key 15. I'm going on memory here as I'm not in front of my PC. Now none of the tubes react to voice, LOL. No biggie I guess as I can just remove the line I added. I obviously don't understand the linkage between all the .csv files so I there's obviously more to do than simply add the line into the tubes.csv but I'm not sure what. Can someone assist please? thanks,
|
|
|
04-16-10, 11:31 AM
|
#14 | |
|
中国水兵
![]() Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
|
Quote:
Also, you *did* remember to give the aft tube cycling a different command? (Like: "Next aft tube.")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? |
|
|
|
04-16-10, 12:09 PM
|
#15 |
|
Grey Wolf
![]() Join Date: Aug 2005
Posts: 930
Downloads: 23
Uploads: 0
|
I basically duplicated the forward tubes cycling 'W' key commands/scripts etc but adjusted things accordingly for the 'Y' key which is the accepted aft tubes cycling key and is indicated as such in the commands.csv.
I've obviously missed something as I mentioned and need to look more closely at the various commands/scripts in the respective .csv files. Perhaps you're right and I missed changing something else for the 'Y' key although I'm fairly sure it was good to go. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
