Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Windows 7 DirectX SDK
Windows 7 DirectX SDK [message #417310] Mon, 11 January 2010 14:10 Go to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
I tried installing DirectX SDK August 2006 but after i install it it corrupts my windows 7 and my screen will be black when i restart my pc. had to do a system restore. Can i use a newer version of directx sdk and still compile scripts.dll.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Windows 7 DirectX SDK [message #417318 is a reply to message #417310] Mon, 11 January 2010 14:54 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Gen_Blacky wrote on Mon, 11 January 2010 22:10

I tried installing DirectX SDK August 2006 but after i install it it corrupts my windows 7 and my screen will be black when i restart my pc. had to do a system restore. Can i use a newer version of directx sdk and still compile scripts.dll.

You dont need DirectX SDK to compile scripts.dll only if you also want to compile shaders.dll

And you can use a newer version. I use March 2009 atm if i recall correctly


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Windows 7 DirectX SDK [message #417332 is a reply to message #417310] Mon, 11 January 2010 16:31 Go to previous messageGo to next message
Lone0001 is currently offline  Lone0001
Messages: 2112
Registered: August 2006
Location: Ontario, Canada
Karma: 0
General (2 Stars)

I tried a newer version of the DirectX SDK (August 2009) and it's missing 2 files (d3d9caps.h and d3dx9.h if I recall correctly) from the August 2006 version, simply getting the two files from someone who has the August 2006 does not work (for some reason it can't find one of them Huh).

[Updated on: Mon, 11 January 2010 16:35]

Report message to a moderator

Re: Windows 7 DirectX SDK [message #417342 is a reply to message #417310] Mon, 11 January 2010 17:13 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
yea i got this error

shaders.cpp(37) : fatal error C1189: #error : The Renegade shaders.dll requires the DirectX August 2006 SDK installed in order to produce a proper executable. If you wish to use a different version of the SDK, modify the delay load dll in linker settings to point to the newer d3dx.dll


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Windows 7 DirectX SDK [message #417343 is a reply to message #417310] Mon, 11 January 2010 17:16 Go to previous messageGo to next message
Lone0001 is currently offline  Lone0001
Messages: 2112
Registered: August 2006
Location: Ontario, Canada
Karma: 0
General (2 Stars)

That's new to me Huh I didn't get that error.

Re: Windows 7 DirectX SDK [message #417388 is a reply to message #417310] Tue, 12 January 2010 04:07 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
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

  • Attachment: DelayLoad.png
    (Size: 129.31KB, Downloaded 866 times)
  • Attachment: d3d_caps.png
    (Size: 24.87KB, Downloaded 843 times)
  • Attachment: shader41.png
    (Size: 13.54KB, Downloaded 838 times)


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 12 January 2010 05:32]

Report message to a moderator

Re: Windows 7 DirectX SDK [message #417404 is a reply to message #417310] Tue, 12 January 2010 09:49 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
I got two new errors when i changed 'd3d8_caps.h' in engine_d3d.h to 'd3d9_caps.h'

My linker looks exactly like yours and it still says it needs dx 2006.


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

shaders.cpp(37) : fatal error C1189: #error :  The Renegade shaders.dll requires the DirectX August 2006 SDK installed in order to produce a proper executable. If you wish to use a different version of the SDK, modify the delay load dll in linker settings to point to the newer d3dx.dll


I think it might because i did i system restore after installing 2006 and the files are still there so the lib and include files are still being added.


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Tue, 12 January 2010 09:52]

Report message to a moderator

Re: Windows 7 DirectX SDK [message #417411 is a reply to message #417310] Tue, 12 January 2010 11:08 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
You either didnt change the line in shaders.cpp
#if D3DX_SDK_VERSION != 30

to
#if D3DX_SDK_VERSION != 41



Or because of you system restore you lost the newer version or w/e


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Tue, 12 January 2010 11:09]

Report message to a moderator

Re: Windows 7 DirectX SDK [message #417417 is a reply to message #417411] Tue, 12 January 2010 11:51 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Omar007 wrote on Tue, 12 January 2010 13:08

You either didnt change the line in shaders.cpp
#if D3DX_SDK_VERSION != 30

to
#if D3DX_SDK_VERSION != 41



Or because of you system restore you lost the newer version or w/e


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.
Re: Windows 7 DirectX SDK [message #417420 is a reply to message #417417] Tue, 12 January 2010 12:09 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Saberhawk wrote on Tue, 12 January 2010 19:51

Omar007 wrote on Tue, 12 January 2010 13:08

You either didnt change the line in shaders.cpp
#if D3DX_SDK_VERSION != 30

to
#if D3DX_SDK_VERSION != 41



Or because of you system restore you lost the newer version or w/e


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.

Well i dont really know which files it where. I only got this far with my memory + looking through source.
And if you say there are more places then its certainly true but i dont know them right now Razz


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Windows 7 DirectX SDK [message #417462 is a reply to message #417417] Tue, 12 January 2010 18:05 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Saberhawk wrote on Tue, 12 January 2010 12:51

Omar007 wrote on Tue, 12 January 2010 13:08

You either didnt change the line in shaders.cpp
#if D3DX_SDK_VERSION != 30

to
#if D3DX_SDK_VERSION != 41



Or because of you system restore you lost the newer version or w/e


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.


That solved my problem tahnk you. Also thanks Omar007 for your help you didn't have to give me screen shots Razz.


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Previous Topic: My Renegade HUD
Next Topic: c++ code distance calculator
Goto Forum:
  


Current Time: Sat Dec 21 00:36:34 MST 2024

Total time taken to generate the page: 0.01144 seconds