Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Shaders.dll Compiling Errors
Shaders.dll Compiling Errors [message #449300] Thu, 30 June 2011 23:34 Go to next message
Intradox is currently offline  Intradox
Messages: 60
Registered: February 2011
Location: United States
Karma: 0
Recruit
Hello, I'm using Windows Visual Studio 2008, and have the March 2009 SDK installed as well. Now when I try to compile the shaders.dll I get this error:

engine_3dre.h(267) : error C2146: syntax error : missing ';' before identifier 'Caps'
engine_3dre.h(267) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


Thats what happened after I set it up like in this thread, from this quote:

Omar007 wrote on Tue, 12 January 2010 04:07

You indeed have to update the linker to the new library (if it didnt by itself which it did for me Huh )



Also you'll have to modify a the import line 'd3d8_caps.h' in engine_d3d.h to 'd3d9_caps.h'
It will look like this after that;




I believe that was all but if you encounter another problem just post it here and ill take a look at it again ^^

EDIT: Oh i forgot to tell this;
In shaders.cpp change the line
#if D3DX_SDK_VERSION != 30

to
#if D3DX_SDK_VERSION != 41







Not pro enough at renegade to snipe.
Re: Shaders.dll Compiling Errors [message #449303 is a reply to message #449300] Fri, 01 July 2011 01:58 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
you need newest Direct X SDK installed on PC and be sure that VS uses it.

Creator of Mutant Co-Op
Developer of LuaTT
Re: Shaders.dll Compiling Errors [message #449308 is a reply to message #449300] Fri, 01 July 2011 06:27 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I do not see why it won't work for you Huh

Quoting from the same topic
Saberhawk wrote on Tue, 12 January 2010 12:51

That only would explain one error (the one with the fancy text). The other two are caused because you changed #include "d3d8_caps.h" to #include "d3d9_caps.h". Newer versions of the DirectX SDK don't really include D3D8 header files anymore, so you'll need to find that header (and all dependencies) on the intertubes and toss it in your shaders folder.

You might want to try and figure this out, though I did not have to do anything else for it to work then what you quoted from me.


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shaders.dll Compiling Errors [message #449310 is a reply to message #449300] Fri, 01 July 2011 09:52 Go to previous messageGo to next message
Intradox is currently offline  Intradox
Messages: 60
Registered: February 2011
Location: United States
Karma: 0
Recruit
sla.ro(master) wrote on Fri, 01 July 2011 01:58

you need newest Direct X SDK installed on PC and be sure that VS uses it.


If I did this would it solve that problem?

Omar007 wrote on Fri, 01 July 2011 06:27

I do not see why it won't work for you Huh

Quoting from the same topic
Saberhawk wrote on Tue, 12 January 2010 12:51

That only would explain one error (the one with the fancy text). The other two are caused because you changed #include "d3d8_caps.h" to #include "d3d9_caps.h". Newer versions of the DirectX SDK don't really include D3D8 header files anymore, so you'll need to find that header (and all dependencies) on the intertubes and toss it in your shaders folder.

You might want to try and figure this out, though I did not have to do anything else for it to work then what you quoted from me.



I have a question though, is it possible that I'm getting these errors because I have both August 2006 SDK and March 2009 SDK installed? Or that my Visual Studio is using my August 2006 SDK instead of my March 2009 SDK?


Not pro enough at renegade to snipe.

[Updated on: Fri, 01 July 2011 13:50]

Report message to a moderator

Re: Shaders.dll Compiling Errors [message #449311 is a reply to message #449300] Fri, 01 July 2011 11:48 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
The instructions are working for sure on March 2009. (atleast for me Razz)
Ofcource your VS has to use 2009. TBH I never installed August 2006. March 2009 was the only one on my system Smile


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shaders.dll Compiling Errors [message #449314 is a reply to message #449311] Fri, 01 July 2011 12:18 Go to previous messageGo to next message
Intradox is currently offline  Intradox
Messages: 60
Registered: February 2011
Location: United States
Karma: 0
Recruit
Omar007 wrote on Fri, 01 July 2011 11:48

The instructions are working for sure on March 2009. (atleast for me Razz)
Ofcource your VS has to use 2009. TBH I never installed August 2006. March 2009 was the only one on my system Smile


Well I don't know whats wrong, I set it up exactly like you showed, and its using the March 2009 SDK.

Could you do me a favor (or anybody else that wants to help) and see if you could compile it? I know very little about C++ and all I wanted to do was compile the stealth wire frame effect, rotating weapon list, and the D6 Hud. If you would like to, the link to the source is here


Not pro enough at renegade to snipe.

[Updated on: Sat, 02 July 2011 01:04]

Report message to a moderator

Re: Shaders.dll Compiling Errors [message #449341 is a reply to message #449314] Sat, 02 July 2011 08:10 Go to previous messageGo to next message
Intradox is currently offline  Intradox
Messages: 60
Registered: February 2011
Location: United States
Karma: 0
Recruit
Could anybody compile this source?

Not pro enough at renegade to snipe.
Re: Shaders.dll Compiling Errors [message #449354 is a reply to message #449300] Sat, 02 July 2011 17:24 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I'd love to, but atm my system is not set up for Renegade coding.
Since I upgraded to 64-bit, I haven't taken the time to install it all xD

Also, as my focus has been on coding on a different front, IDK when I'll be installing the software for Renegade coding again.

I hope someone else is able to compile it for you.


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shaders.dll Compiling Errors [message #449355 is a reply to message #449354] Sat, 02 July 2011 17:31 Go to previous message
Intradox is currently offline  Intradox
Messages: 60
Registered: February 2011
Location: United States
Karma: 0
Recruit
Oh that's alright, I understand, it can be a pain installing and setting up crap Razz

Well hopefully I can find another person to compile it for me (or someone volunteers to) Smile


Not pro enough at renegade to snipe.

[Updated on: Sat, 02 July 2011 17:34]

Report message to a moderator

Previous Topic: Another Lua question
Next Topic: PATHING TROUBLE
Goto Forum:
  


Current Time: Sat Nov 09 09:38:48 MST 2024

Total time taken to generate the page: 0.00993 seconds