Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: portej05 on June 22, 2009, 11:11:59 am

Title: Speech under non-VC6 builds
Post by: portej05 on June 22, 2009, 11:11:59 am
Hi folks,

With a simple change to speech.cpp, and renaming the speech folder speech_pleasedontusethis (a random filename NOT on the path), I've got the TTS working under a VC2008 build.

To enable:
Define FS2_SPEECH in the preprocessor options of Freespace2 and code
Make sure you have the Vista 6.0A or 6.1 SDKs

Enjoy!

portej05
Title: Re: Speech under non-VC6 builds
Post by: Goober5000 on June 22, 2009, 11:21:20 am
Make sure you have the Vista 6.0A or 6.1 SDKs
No love for XP?
Title: Re: Speech under non-VC6 builds
Post by: portej05 on June 22, 2009, 11:33:44 am
Just define _WINVER to 0x502 if you want the XP loving
Title: Re: Speech under non-VC6 builds
Post by: portej05 on June 22, 2009, 11:34:30 am
Defining FS2_VOICER doesn't cause any errors for me either.
Title: Re: Speech under non-VC6 builds
Post by: chief1983 on June 22, 2009, 04:47:44 pm
Also, that's just the SDK version, you can use the Vista/Server08 SDKs and still compile XP-compatible code.  No point really in using such an old PSDK now, they've all been superceded by the Server 2008 PSDK.  Is anyone still running FS on Windows 2000?  That's one of the only reasons I could think to use an older one, but I think the Vista one works, if not then the Server 2003 one will.
Title: Re: Speech under non-VC6 builds
Post by: portej05 on June 23, 2009, 12:31:46 am
Also, that's just the SDK version, you can use the Vista/Server08 SDKs and still compile XP-compatible code.

That _WINVER def (and there's a whole pile like it - just start an MFC project in VC2008 to see what I mean) makes sure that you can only use XP compatible APIs.