S9ilent's Vocal Control *29/03/2015*
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
- Phobocaster
- Posts: 99
- Joined: Fri, 16. Jul 10, 18:29
@ 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
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
- Skillzfire
- Posts: 769
- Joined: Tue, 3. May 11, 15:11
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?
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
- Skillzfire
- Posts: 769
- Joined: Tue, 3. May 11, 15:11
sorted i think i just had let it thorugh firewall and run it as admin oh is it compatible with version 3.1?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?
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
-
- Posts: 205
- Joined: Tue, 21. Aug 12, 22:11
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.
I have tried 3 voice command programmes for X3 without success, and I really don't want this one to join the casualty list. 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
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.
I have tried 3 voice command programmes for X3 without success, and I really don't want this one to join the casualty list. 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.
-
- Posts: 205
- Joined: Tue, 21. Aug 12, 22:11
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.
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}
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.
-
- Posts: 205
- Joined: Tue, 21. Aug 12, 22:11
Thanks for letting me know, though I hope you're wrong.
In case it's of any use to anyone who can help me, When I start up SCV I get:
Reloading Grammar
Grammar Loaded
and then when I click "Start Recognition" I get:
--------- Starting SVC ---------
Reloading Grammar
Grammar Loaded
Loading Hotkeys
End of Hotkeys Reached
In case it's of any use to anyone who can help me, When I start up SCV I get:
Reloading Grammar
Grammar Loaded
and then when I click "Start Recognition" I get:
--------- Starting SVC ---------
Reloading Grammar
Grammar Loaded
Loading Hotkeys
End of Hotkeys Reached
When Carl Marx said "Religion is the opiate of the masses.", he hadn't seen television.
Hello,
I can confirm that given the way I coded the program, this most certain does NOT work in windows7/vista. I know how to fix it but I've been away from X3 for quite some time.
*technical bits*
This program just uses the default recognition context, i.e. the one that windows uses. This works fine for xp (as windows doesn't do anything with it) but in vista/windows 7 it will not work at all, as windows intercepts all the voice commands and does its own voice-> text stuff with it.
To fix this its just a matter of spinning up a different context, but there are numerous other changes I would make.
I will look into it this afternoon, but tbh I'm not very motivated to re-do this project as
1) There was never really much interest in this (Through out all of time I think there has been something tiny like <20 downloads of this. I had originally made this so other S&M could use it, but none ever did )
2) I took a long break from x3 (Although I have started playing again)
3) I don't do a whole log of S&M work in x3 any more
What I will most likely do is just redo the actual recognition side of the program, but NOT the grammar compiler (The grammar compiler was a tool for other modders so they could add their own commands, but 1) no one else has modded this, 2) it is easier to just modify the xml directly).
I can confirm that given the way I coded the program, this most certain does NOT work in windows7/vista. I know how to fix it but I've been away from X3 for quite some time.
*technical bits*
This program just uses the default recognition context, i.e. the one that windows uses. This works fine for xp (as windows doesn't do anything with it) but in vista/windows 7 it will not work at all, as windows intercepts all the voice commands and does its own voice-> text stuff with it.
To fix this its just a matter of spinning up a different context, but there are numerous other changes I would make.
I will look into it this afternoon, but tbh I'm not very motivated to re-do this project as
1) There was never really much interest in this (Through out all of time I think there has been something tiny like <20 downloads of this. I had originally made this so other S&M could use it, but none ever did )
2) I took a long break from x3 (Although I have started playing again)
3) I don't do a whole log of S&M work in x3 any more
What I will most likely do is just redo the actual recognition side of the program, but NOT the grammar compiler (The grammar compiler was a tool for other modders so they could add their own commands, but 1) no one else has modded this, 2) it is easier to just modify the xml directly).
i disagree with the lack of intrest bit, i tryed this mod but due to windows 7 it did not work and i would love to see a new version of this mod, it is one of the coolist out there.
please comtinue working on this awsome of mods, ordering you ingame ships around with your voice will never stop being awsome.
please comtinue working on this awsome of mods, ordering you ingame ships around with your voice will never stop being awsome.
When ever people agree with me i always feel i must be wrong.
Hello, S9ilent!
If you think that your program is not much interesting for moders, then try to connect with the developers of X (Egosoft). I saw your other project that was about adding Multiplayer in the game. I think you're really talented and creative programmer. The speech recognition in games is very fashionable now (Skyrim, Mass Effect 3, Binary Domain). I think Egosoft will be glad to cooperate with you.
If X Rebirth will have a feature like your "vocal control", then most of fans will thank you much.
So, I think you should try to write to Egosoft-developers of the game about your amazing MOD.
If you think that your program is not much interesting for moders, then try to connect with the developers of X (Egosoft). I saw your other project that was about adding Multiplayer in the game. I think you're really talented and creative programmer. The speech recognition in games is very fashionable now (Skyrim, Mass Effect 3, Binary Domain). I think Egosoft will be glad to cooperate with you.
If X Rebirth will have a feature like your "vocal control", then most of fans will thank you much.
So, I think you should try to write to Egosoft-developers of the game about your amazing MOD.
-
- Posts: 205
- Joined: Tue, 21. Aug 12, 22:11
Hi S9ilent,
Thanks for the reply. I agree with MuHoTaBP though, I can't see how this would not interest people. My brother and my best friend all play this game and they both want me to let them know the instant I get any form of voice recog working for Windows 7.
I think part of the problem is that people aren't as interested in flavour as they should be. I would definitely like to be able to customize my own commands with more flavour in them e.g.
Instead of "activate SETA", "Initiate time compression"
Instead of "sector map", "display tactical overlay"
Instead of "Autopilot, follow" "Lay in an intercept course"
etc.
Perhaps this would generate more interest from players?
Thanks for the reply. I agree with MuHoTaBP though, I can't see how this would not interest people. My brother and my best friend all play this game and they both want me to let them know the instant I get any form of voice recog working for Windows 7.
I think part of the problem is that people aren't as interested in flavour as they should be. I would definitely like to be able to customize my own commands with more flavour in them e.g.
Instead of "activate SETA", "Initiate time compression"
Instead of "sector map", "display tactical overlay"
Instead of "Autopilot, follow" "Lay in an intercept course"
etc.
Perhaps this would generate more interest from players?
When Carl Marx said "Religion is the opiate of the masses.", he hadn't seen television.
-
- Posts: 205
- Joined: Tue, 21. Aug 12, 22:11
In case you can't get this working for Windows 7, I thought this suggestion worth mentioning.
Earlier in this thread someone mentioned WSR Macros (Downladable from Micrsoft.com) as a good alternative. I looked into it and I think it's great; you can fully customize commands & you can use it with WSR turned off, so you don't send involuntary commands to your OS. The problem? It's impossible to DL anything from ms.com even with my (legit) OS, because their windows validation sucks.
Anyone else having this problem?
Earlier in this thread someone mentioned WSR Macros (Downladable from Micrsoft.com) as a good alternative. I looked into it and I think it's great; you can fully customize commands & you can use it with WSR turned off, so you don't send involuntary commands to your OS. The problem? It's impossible to DL anything from ms.com even with my (legit) OS, because their windows validation sucks.
Anyone else having this problem?
When Carl Marx said "Religion is the opiate of the masses.", he hadn't seen television.
Getting voice recognition working for windows is easy, it is just a bit trickier to get it to work with my old x3 scripts (with out having the re-write the whole system)
I've completed the technical proof in concept. Now I've just got to pull apart my old program, and put those bits in the new program.
w.r.t Customizable phrases- the xml is always customizable, but there are virtually no learning resources on how to do it. At best all I can recommend is that if you really want to change a phrase, edit the xml manually, find the phrase and replace it with what you want to say.
Fingers crossed, it might be done in full 3 days, but this realistically means about 1.5 weeks. (i.e. Another full weekend)
I've completed the technical proof in concept. Now I've just got to pull apart my old program, and put those bits in the new program.
w.r.t Customizable phrases- the xml is always customizable, but there are virtually no learning resources on how to do it. At best all I can recommend is that if you really want to change a phrase, edit the xml manually, find the phrase and replace it with what you want to say.
Fingers crossed, it might be done in full 3 days, but this realistically means about 1.5 weeks. (i.e. Another full weekend)
-
- Posts: 205
- Joined: Tue, 21. Aug 12, 22:11
Great stuff! I'm actually more interested in the hotkeys than the scripts (mostly because I'm more adept at modifying those. )
I used your compiler a bit while trying to get the thing working for me, and I think it's very well laid out and easy to use.
I used your compiler a bit while trying to get the thing working for me, and I think it's very well laid out and easy to use.
When Carl Marx said "Religion is the opiate of the masses.", he hadn't seen television.