S9ilent's Vocal Control *29/03/2015*

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
MuHoTaBP
Posts: 10
Joined: Tue, 25. May 10, 22:38

Post by MuHoTaBP » Mon, 27. Sep 10, 14:56

I can start the speech recognition in my computer but there is no supporting russian version of the game in your program, so I can't use your program as good as I want. I have tried to modify x3tc.xml but it didn't solved the problem. After I have edited that file the program have ceased to perceive commands, so I have returned the previous state of that file.

I think that you should try to add supporting for russian version to the next build (now your program supports english, french and even polsky version). Please help me with my problem when you will can.

BlueShade Zero
Posts: 362
Joined: Wed, 2. Aug 06, 03:41
x3tc

Post by BlueShade Zero » Mon, 27. Sep 10, 22:29

So, does this actually work fo anything usefull? So far, it seems to me i can only designate ships, and get them to follow me. I cant even have them follow another ship, or attack them, or dock, or anything.

It recognizes the commands and puts it in the subtitle, but does nothing... I said to dock at my target, and it just ran up to it, and stayed there...

EDIT:

Seems to me that, for some reason, the ships are either not complying with the orders they get, like having a "dock" order and just sitting there though theres plenty space, or not attacking what i told them to... Or theyre not receiving the orders period, such as it seems the windows speech recog keeps giving me the "what was that" ding... Only on some commands "such as a follow target command"
(\__/)
(='.'=)
(")_(") Chaos, panic and disorder- my work here is done.
[ external image ]

MuHoTaBP
Posts: 10
Joined: Tue, 25. May 10, 22:38

Post by MuHoTaBP » Mon, 27. Sep 10, 23:21

BlueShade Zero, I think that you haven't learnt how to use this program correctly. But of course a few of commands in readme file are became outdated because it should be others, for example if you want to give a command for any wing you shouldn't speak the word 'wing'.

BlueShade Zero
Posts: 362
Joined: Wed, 2. Aug 06, 03:41
x3tc

Post by BlueShade Zero » Tue, 28. Sep 10, 01:25

MuHoTaBP wrote:BlueShade Zero, I think that you haven't learnt how to use this program correctly. But of course a few of commands in readme file are became outdated because it should be others, for example if you want to give a command for any wing you shouldn't speak the word 'wing'.
This is, (though unfortunately) likely true. Most of what i know of how to use it was by looking at the examples in the documents, and by examining the grammar compiler... took me about an hour to figure out what some stuff ment, like cname.

If theres a more updated document that details exactly how to use it, it would be nice.

Also, i noticed you cant order ships to do anything that involves stations... unless its your target.

EDIT

yeah, so some further testing showed that, even with designating my target, my ships WOULD NOT dock at my caravel. it recognized what i was saying, it even said "blue wing docking at ReAver" which was right. But they just sat there with their previous order.

also, how do i clear designations. I've got a few that i'd like to replace with other things.
(\__/)
(='.'=)
(")_(") Chaos, panic and disorder- my work here is done.
[ external image ]

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Tue, 28. Sep 10, 09:02

@BlueShade Zero
There are some bugs in the current system which I'm working out in the newer build. (The more complex commands with more then 2 levels of properties are failing to register correctly)

The *ding* "What was that" bug is being removed in the newer version. (I built this in xp which had no built in voice recognition which was ok, but then in vista/7 it is conflicting with the windows voice recognition, hence all the dinging)

I'm hoping to simplify the grammar designer
(it will look mostly the same, by the define section will be removed)
(I will also try to add linking so (right/control) clicking on a ruleref e.g. cname will jump to that rule)
(I will unfortunately also add complexity to the grammar designer by allowing plug ins to be used, at the moment it is just 1 file for everything)



Can I just ask you
So you said "blue wing dock at my target"
And then ingame, in the subtitles, it said
"blue wing dock at ReAver" (I'm going to assume your target is called ReAver)
But then nothing happened?

You can just overwrite designations, I have not implemented a clear yet, but I will in the next version. (e.g. just say betty designate delta 7 again, and your target will become the new delta 7)



@MuHoTaBP
I'll work on it (Sorry I had assumed you meant it wasn't working on Russian, not that I hadn't built the langId option in :S)
It will still have to run through the english recognition.. stuff (so you will need to sound out russian words into english~like spelling) but hopefully, it should be compatible. (I did adhoc tests with German words before)

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Tue, 28. Sep 10, 09:23

Sorry what is the X3 language Id used for the Russian version of the game?

In your Pm you said it is 7, is it just 7 or like 47? (e.g. English is 44, french is 32, Deutsh is 49)

I'll also add a more generic config so you can manually change the number

MuHoTaBP
Posts: 10
Joined: Tue, 25. May 10, 22:38

Post by MuHoTaBP » Tue, 28. Sep 10, 13:46

Yes, of course. The Russian LangID=7. You are right.

BlueShade Zero
Posts: 362
Joined: Wed, 2. Aug 06, 03:41
x3tc

Post by BlueShade Zero » Tue, 28. Sep 10, 15:23

s9ilent wrote:@BlueShade Zero
There are some bugs in the current system which I'm working out in the newer build. (The more complex commands with more then 2 levels of properties are failing to register correctly)

The *ding* "What was that" bug is being removed in the newer version. (I built this in xp which had no built in voice recognition which was ok, but then in vista/7 it is conflicting with the windows voice recognition, hence all the dinging)

I'm hoping to simplify the grammar designer
(it will look mostly the same, by the define section will be removed)
(I will also try to add linking so (right/control) clicking on a ruleref e.g. cname will jump to that rule)
(I will unfortunately also add complexity to the grammar designer by allowing plug ins to be used, at the moment it is just 1 file for everything)



Can I just ask you
So you said "blue wing dock at my target"
And then ingame, in the subtitles, it said
"blue wing dock at ReAver" (I'm going to assume your target is called ReAver)
But then nothing happened?

You can just overwrite designations, I have not implemented a clear yet, but I will in the next version. (e.g. just say betty designate delta 7 again, and your target will become the new delta 7)
Cant wait to try out the updated version. When i saw this at first, i kinda shrugged it off, but then thinking about it i saw its potential for multi wing, and fleet combat.

Yes, ReAver is the name of my TM (a pirate caravel). And not exactly nothing... Let me do abit of testing, i think i arbitrarily ran into another, perhaps unrelated bug. From what i've seen, the ship would approach the TM and just stop, but i noticed it did that again recently with a manual command though it eventually docked with some fiddling... However i've played for hours in this profile and it never did that before i tried using the verbal docking command...

As i said, i'll do some heafty testing, see what works what doesnt... I think something in installed jacked up the ships AI. I got my guys to attack a TS, but they'd follow it for about 10 KM before even one of them opened fire. I made sure they all had weapons, check, all turrets set to defend, check... they all had the "attack" order set... check... but their behavior is strange...

I'm looking at the naval shuffle right now as the culprit... I'll make a fresh install with only the mods i REALLY want and see what happens.
(\__/)
(='.'=)
(")_(") Chaos, panic and disorder- my work here is done.
[ external image ]

MuHoTaBP
Posts: 10
Joined: Tue, 25. May 10, 22:38

Post by MuHoTaBP » Wed, 29. Sep 10, 15:00

S9ilent
Thanks a lot. It is very nice information for me. I will wait for new build very much. I hope it will be a great new experience to use voice control in Russian version of the game, and I really hope that it will works with Russian words :)

kissmejulie
Posts: 6
Joined: Wed, 6. Jan 10, 18:12

Post by kissmejulie » Thu, 21. Oct 10, 17:12

I still love it, Is there a way to order ships to board my target?

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Thu, 21. Oct 10, 21:56

Currently no, thou you can add one if you like

I'll add one to the new version (thou that is still a fair way off)

User avatar
Phobocaster
Posts: 99
Joined: Fri, 16. Jul 10, 18:29

Post by Phobocaster » Thu, 21. Oct 10, 22:31

The idea is really neat, makes you feel like a real captain. I'm currently starting over again, I'll give it a try once I get a capital ship. I'm a bit skeptical whether this stuff works as well as advertised in practice and how it will interact with other mods, but that's just my normal caution.

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Wed, 17. Nov 10, 07:55

@ MuHoTaBP / others

Hi,

I've found my self EXTREMELY short of time, so I dont forsee my self completing this any time soon.


I have completed the program, and it exports the required data to X3's tfile folder (you can configure the tfiles/lang id's etc.) and I have written the lib files to decode the xml data that gets imported into x3



What I have not done is,
1) I have not finished re-writing the grammar's (i.e. telling the program what to recognize)
2) I have not written a script to do the actual importing
3) I have not finished writing scripts, that use the imported data, and "do stuff" (e.g. if the game realizes I say all ships follow me, there is no script that makes all the ships follow me)


So what I"m going to do, is I'm going to post up what I've already done and if there are any avid scripters out there they can take a look at it and use it.

(I unfortunately have to re-divert time to my SFM project, as I've recently discovered it is a source of major lag on my system)
Download Link
http://www.members.optusnet.com.au/whyi ... ersion.rar

The lib script required to convert the tfile data, to my xml objects is available here:
link

User avatar
Skillzfire
Posts: 769
Joined: Tue, 3. May 11, 15:11
x3ap

Post by Skillzfire » Tue, 16. Aug 11, 21:49

hey guys getting a wierd problem, i followed the directions unziped the file and ran the aplication but, i get this

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\EGOSOFT\X3 Terran Conflict\t\7742-L044.xml' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at SVC_Gamma.Form1.Tickactual()
at SVC_Gamma.Form1.Timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SVC Gamma
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Anthony/Desktop/svc_gamma/SVC%20Gamma.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.SpeechLib
Assembly Version: 5.0.0.0
Win32 Version: 5.0.0.0
CodeBase: file:///C:/Users/Anthony/Desktop/svc_gamma/Interop.SpeechLib.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:



any fixes?
Death is not a hunter unbeknownst to its prey, one is always aware that it lies in wait. Though life merely a journey to the grave, it must not be undertaken without hope. Only then will a traveler's story live on, treasured by who bid him farewell. But alas, my guest's life has ended, his tale left unwritten

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Tue, 16. Aug 11, 23:12

System.UnauthorizedAccessException: Access to the path 'C:\Program Files\EGOSOFT\X3 Terran Conflict\t\7742-L044.xml' is denied.

Something in your computer is not giving me access to the file. (firewall? run as administrator? Is the file being edited by something else?)

Did you get the path correct?

User avatar
Skillzfire
Posts: 769
Joined: Tue, 3. May 11, 15:11
x3ap

Post by Skillzfire » Tue, 16. Aug 11, 23:57

s9ilent wrote:System.UnauthorizedAccessException: Access to the path 'C:\Program Files\EGOSOFT\X3 Terran Conflict\t\7742-L044.xml' is denied.

Something in your computer is not giving me access to the file. (firewall? run as administrator? Is the file being edited by something else?)

Did you get the path correct?
sorted i think i just had let it thorugh firewall and run it as admin :D oh is it compatible with version 3.1?
Death is not a hunter unbeknownst to its prey, one is always aware that it lies in wait. Though life merely a journey to the grave, it must not be undertaken without hope. Only then will a traveler's story live on, treasured by who bid him farewell. But alas, my guest's life has ended, his tale left unwritten

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Wed, 17. Aug 11, 03:59

w.r.t 3.1 I really don't know...
I don't see why it shouldn't although to be honest, I haven't actually played TC in a little while (I'm still on v2.5 :oops:)

Ender_Xenocide
Posts: 205
Joined: Tue, 21. Aug 12, 22:11
x3ap

Post by Ender_Xenocide » Tue, 21. Aug 12, 22:28

Hi. Sorry to start up an old thread, but I'm really hoping you're still involved with this potentially brilliant mod.

I just can't get it to actually work. I unzipped to a folder OTHER THAN the game folder, ran as admin (with voice recog running), and started X3:TC, enabled subtitles and started talking. Nothing. :twisted:

I have tried 3 voice command programmes for X3 without success, and I really don't want this one to join the casualty list. :cry: Please help!

Additional Info:

OS: Windows 7 Home Premium 64bit
Language: English (UK) (could this be causing problems?)
Mods: X3 Rebalance Mod, Marine Repairs, Green Factories Turbo Boost
When Carl Marx said "Religion is the opiate of the masses.", he hadn't seen television.

Ender_Xenocide
Posts: 205
Joined: Tue, 21. Aug 12, 22:11
x3ap

Post by Ender_Xenocide » Tue, 21. Aug 12, 22:40

Rofl my emoticons didn't come out so great. Apologies, this has been my first post on this forum. Will use them properly from now on. :D

I have a couple of other questions while I'm at it, I've read nearly the whole thread, and it seems unclear whether several issues have been cleared up. Namely:

1. Will I (using Windows 7) need to have my speech recog active, running, but in "sleep" mode, or not on at all?

2. Do I have to cut/paste scripts etc. into the appropriate folders in X3TC's directory?

3. Are hotkeys actually usable now? (The OP says they are, but most recent reference in the thread says they aren't and never will be.)

Any help = most appreciated. :)


{Emoticons fixed. - Terre}
When Carl Marx said "Religion is the opiate of the masses.", he hadn't seen television.

MuHoTaBP
Posts: 10
Joined: Tue, 25. May 10, 22:38

Post by MuHoTaBP » Wed, 22. Aug 12, 07:20

Hi, Ender_Xenocide. I hope this mod is not dead. But, as far as I know, this mod works properly only on X3: TC ver. 2.5/2.7.1 (not newer). The idea of this mod is much fantastic and amazing. But no news for about one year is bad news in this case :(((

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”