Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Styx locks up my compiled program

Author
Message
aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 01:26 Edited at: 6th Jun 2014 01:30
I have been writing my TOWER CAB sim for quite a while now. I bought the Styx plugin to be able to use TextToSpeech. I wrote a little program that loads the VTEXT.DLL, sets a voice property, and speaks a phrase. Everything appears to be working well....until I introduce it into my very large TOWER CAB project. It appears that everything compiles fine, but the TOWERCAB.EXE refuses to execute. But, if I leave out Styx, TOWERCAB.EXE runs fine, or if I compile my little TTS test, it runs fine on its own. I have no idea what is causing the problem.

Here is the code to check for, and load the VTEXT.DLL



Why the 2 won't work together is a mystery to me.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 6th Jun 2014 09:59
How many commands actually get executed in the main project; does the first line of code run successfully? Insert this as the first line of code: Show Message "The program has successfully started"

If you do not see the message box when the program starts; you are more likely to have a compiler problem which may be down to conflicting plugins, which is very rear.

What operating system are you using?

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 6th Jun 2014 10:50 Edited at: 6th Jun 2014 10:58
Get this for speech, http://www.thegamecreators.com/?m=view_product&id=2083 has many other functions that you will find very useful, especially the OGG part of it all...

I have the plugin on that page and use it [parts of it] in every project...

EDIT

Darn migraine typo

aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 14:01
@MrValentine,

I actually purchased that plugin for using TextToSpeech. But, that particular facet of the plugin does not work. And there is no cleare explanation as to which Speech SDK should be installed. I have the 4.0a, 5.x and most recent speech server from Microsoft. I use them all the time in VB6 and VB.NET, so I know I have them installed properly on this end. But the plugin reports an error when I try to use it.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 6th Jun 2014 14:06
Which OS are you on? Works fine for me on 7 Home Premium / Ultimate and 8 Pro

aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 14:06
@Chris, I tried your suggestion and this is what happened:

Problem Event Name: APPCRASH
Application Name: towercab.exe
Application Version: 1.0.0.0
Application Timestamp: 4d460aea
Fault Module Name: DarkCLOUDS.dll
Fault Module Version: 1.0.0.0
Fault Module Timestamp: 4ab4c650
Exception Code: c0000090
Exception Offset: 0003d8c6
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

I removed that first line and everything went back to normal. I am using the DarkClouds plugin and its working flawlessly. Perhaps it doesn't play well with others? When I added the commands to LOAD the VTEXT.DLL, I received the same error regarding DarkClouds. Maybe that's the culprit.
aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 14:08
@MRValentine, I am running Windows 7 Ultimate on a 32 bit desktop, and Windows 7 Professional on a 64 bit laptop. It doesn't work on either system.
aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 14:12 Edited at: 6th Jun 2014 14:13
When I run the speech example 1 that comes with the plugin, it reports:

Could not find function '?GetVoiceList@@YAXXZ' in 6:Enhancements.dll
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 6th Jun 2014 14:21
Have you got .Net 2.0/3.5/4.5 installed? Just a wild guess, strange... It works on fresh installs for me after fully updating which I do anyway... Might test on a Hyper-V fresh install sometime and see what happens, but my guess is .Net might be needed...

aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 14:42
something must have been corrupted. I removed the plugin and reinstalled it, now its working.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 6th Jun 2014 16:22
Ahh that is good

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 6th Jun 2014 20:24


I always forget to mention this, as it is something I expect even beginners to do ;

YAY, more coding for you now then

Keep in mind, the default voice for Windows 8 vs. Win7 are very different, I prefer the one on Windows 8

aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 6th Jun 2014 22:33
Well, TGC has pretty good reputation for things working right-out-of-the-box. My first instinct is not to remove and reinstall... Other parts of the plugin were working.

I actually need to be able to load the VTEXT.DLL instead. Its great that this plugin works, but I need to create custom voices of pilot-to-controller communications. The VTEXT.DLL would allow me to create and playback voice "fonts" that I would then mix with aircraft engine sounds to simulate a pilot talking to the controller with his headset microphone. This is the technique I used with my other product, "ATCsimulator2" in providing real recorded pilot voices.

Its good to have a voice that can speak, but it does not meet my real requirement. But I am glad I got it working at any rate. Thanks for the help everyone.

Login to post a reply

Server time is: 2026-07-06 00:10:24
Your offset time is: 2026-07-06 00:10:24