Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Fri May 24, 2013 12:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 8:50 am 
Offline
fired 300 rounds

Joined: Thu Jun 16, 2005 4:01 pm
Posts: 311
Hi, I'm running v.1.3.1302 on BootCamp. I am getting that dreaded "Wrong Game DLL API" error with a custom DLL i made using the first tutorial offered by id:

Quote:
A quick way to test if your code is being used is by opening up Entity.cpp, scrolling idEntity::Spawn and inserting this code right at the beginning after the "if ( def )" line:
Code:
gameLocal.Printf("Hello %s!\n", classname);

This should cause "Hello <classname>!" to appear in the console any time a new entity spawns.


I'm using VisualStudio C++ Express 2008 with the appropriate Platform SDK and get no errors when I compile the DLL. the SDK is v1.3.1

Does anyone have any insight about using VC++ Express 2008 with the d3 SDK? all of the info on here relates to VC++ Express 2005 and the corresponding Platform SDK. so, who knows what they changed between 2005 and 2008.

thanks


Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 9:41 am 
Offline
Addict.
User avatar

Joined: Tue Nov 22, 2005 1:42 am
Posts: 2165
Location: France, 59
if you're sure that you're really compiling the 1.3.1 SDK, then maybe your game is not patched to the good version (1.3.1.1304 in the console).

_________________
idTech 4 still amaze me.

Doom III High Quality Mainmenu Pack.
Doom III Boss Contest: Alpha Lab Zero.
idTech4 Extended [Alpha].


Top
 Profile E-mail  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 9:49 am 
Offline
fired 300 rounds

Joined: Thu Jun 16, 2005 4:01 pm
Posts: 311
Hey, 6th Venom. I did the built-in update and the console says 1.3.1302 still and indicates that there are no more updates. Where can I acquire the version you mentioned?

Heh, all this just to add arc- sine/cos/tan functions to the script engine...


Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 11:50 am 
Offline
Last man standing
User avatar

Joined: Tue Feb 22, 2005 4:59 pm
Posts: 1061
Location: In The Zone
You can download the 1.3.1 patch from my mirror site:

http://www.the-emz.com/download/

Edit: Also, see the link in my sig to my tutorials about building the SDK with Visual Studio. You may want to download the modified project files that are linked in the tutorial, or add the additional defines yourself to eliminate the ton of warnings that you get with 2008.

_________________
http://www.the-emz.com/ - A Multiplayer Mod for Doom 3


Last edited by simulation on Thu Jun 18, 2009 11:52 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 11:51 am 
Offline
Addict.
User avatar

Joined: Tue Nov 22, 2005 1:42 am
Posts: 2165
Location: France, 59
Here :)

_________________
idTech 4 still amaze me.

Doom III High Quality Mainmenu Pack.
Doom III Boss Contest: Alpha Lab Zero.
idTech4 Extended [Alpha].


Top
 Profile E-mail  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 7:46 pm 
Offline
fired 300 rounds

Joined: Thu Jun 16, 2005 4:01 pm
Posts: 311
Thanks guys. I made the stupid error of extracting to c:\Doom3 instead of c:\doom3 where the game is installed. durrrrrr

Now I'm stuck with trying to make it load the DLL instead of copying it from game03.pk4 to my mod dir. I guess I have to zip up the modded DLL into a pk4 as part of a build step?


Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 8:26 pm 
Offline
Last man standing
User avatar

Joined: Tue Feb 22, 2005 4:59 pm
Posts: 1061
Location: In The Zone
chuckdood wrote:
Thanks guys. I made the stupid error of extracting to c:\Doom3 instead of c:\doom3 where the game is installed. durrrrrr

Now I'm stuck with trying to make it load the DLL instead of copying it from game03.pk4 to my mod dir. I guess I have to zip up the modded DLL into a pk4 as part of a build step?

I always have a custom build step that ZIPs my DLL into a PK4 (along with binary.conf), and copies it to the mod folder.

_________________
http://www.the-emz.com/ - A Multiplayer Mod for Doom 3


Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Thu Jun 18, 2009 9:38 pm 
Offline
fired 300 rounds

Joined: Thu Jun 16, 2005 4:01 pm
Posts: 311
Custom3 stepped up with some good knowledge about the need to zip up: viewtopic.php?t=10912&

Success!!!

the only thing is that gameLocal.PrintF() didn't do anything.

so, when I changed it to gameLocal.Warning() those messages of "Hello <classname>!" suddenly appeared in the console. i really don't know why PrintF() didnt' work... probably some console setting, I guess. Either way, it all works fine now. on with adding the arc- trig functions to scripts!


Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Fri Jun 19, 2009 9:25 am 
Offline
fired 300 rounds

Joined: Tue Oct 19, 2004 8:04 am
Posts: 356
simulation wrote:
I always have a custom build step that ZIPs my DLL into a PK4 (along with binary.conf), and copies it to the mod folder.


I just set the linker output to the same directory as quake4.exe, and make sure I have si_pure 0. I'm pretty sure this works with all D3 engine games (where as the "read only" solution is disabled in Q4 and ETQW for good reasons).


Top
 Profile  
 
 Post subject: Re: "Wrong Game DLL API" with VC++ Express 2008
PostPosted: Tue Jul 28, 2009 3:42 am 
Offline
is connecting to Doom3world.org

Joined: Sun Jun 14, 2009 9:30 am
Posts: 1
can some one please put all the steps in 1 place for me 2 understand because i got confused in 1st reply, and by the way
i have Visual Studio 2008 Professional 90 Day Trial does all this still apply ¿¿¿ :oops:

Oh And when i build first prey SDK it builds without any errors whatsoever !!!!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group