Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Shader Plugin / Shader Help
Shader Plugin / Shader Help [message #388741] Sun, 31 May 2009 13:32 Go to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
I saw how Scrin and D6 did there huds, and it got me thinking on the possibilities of drawing things on Renegade's screen.

Since the only way to keep source private while still releasing it is with a plugin...
Is there a way to draw parts of the hud via a plugin?
Just like you would with "void __declspec(dllexport) UpdateHUD2()" from the Shaders.dll?



http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Shader Plugin / Shader Help [message #388751 is a reply to message #388741] Sun, 31 May 2009 14:26 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
You couldn't keep the source private if you released a plug-in that was based on the scripts.dll shader's plug-in. It's still covered under the license agreement.
But yeah, you can draw thing on the screen with a shaders plug-in.



Re: Shader Plugin / Shader Help [message #388754 is a reply to message #388741] Sun, 31 May 2009 15:13 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Ok well I guess I will just have to release it anyways...
It's just too awesome to keep to my self Razz

The 'Shader Plugin Example' was hardly an example...
It was more like a Blank Plugin.

Does anyone know where I could find a better plugin example.

Also...
I'm a total nub and I don't know why the Output is saying this:
Toggle Spoiler


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Shader Plugin / Shader Help [message #388755 is a reply to message #388754] Sun, 31 May 2009 15:14 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
user32.lib is not linked in.
Re: Shader Plugin / Shader Help [message #388768 is a reply to message #388755] Sun, 31 May 2009 19:15 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Ok that fixes that problem but why is it saying:
1>.\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 have
index.php?t=getfile&id=10911&private=0
already set before it shows that error.
  • Attachment: l1.PNG
    (Size: 9.50KB, Downloaded 476 times)


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Sun, 31 May 2009 19:16]

Report message to a moderator

Re: Shader Plugin / Shader Help [message #389803 is a reply to message #388768] Tue, 09 June 2009 10:25 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
halo2pac wrote on Mon, 01 June 2009 04:15

Ok that fixes that problem but why is it saying:
1>.\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 have
index.php?t=getfile&id=10911&private=0
already set before it shows that error.

I have the same problem as Halo2pac. Is there someone who knows what do do to solve it??
Thx


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shader Plugin / Shader Help [message #389855 is a reply to message #388768] Tue, 09 June 2009 13:52 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
halo2pac wrote on Sun, 31 May 2009 22:15

Ok that fixes that problem but why is it saying:
1>.\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 have
index.php?t=getfile&id=10911&private=0
already set before it shows that error.


It's saying that because you don't have the August 2006 SDK. If you don't, you need to modify the Delay-Load DLL to the proper dll file for the version of the SDK you have installed.
Re: Shader Plugin / Shader Help [message #389859 is a reply to message #388741] Tue, 09 June 2009 14:42 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 know i have to do that but isnt the d3d9_30.dll already right?
It was added when installing the March 2009 SDK

So what do you thinnk would it be for March 2009 if this isnt the one?

PS. The only difference between his screenshot and mine if i where to post one is i don't have user32.lib in the Additional Dependencies. Although this is surely not the problem xD


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shader Plugin / Shader Help [message #389865 is a reply to message #389859] Tue, 09 June 2009 15:50 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Omar007 wrote on Tue, 09 June 2009 17:42

I know i have to do that but isnt the d3d9_30.dll already right?
It was added when installing the March 2009 SDK

So what do you thinnk would it be for March 2009 if this isnt the one?

PS. The only difference between his screenshot and mine if i where to post one is i don't have user32.lib in the Additional Dependencies. Although this is surely not the problem xD


March 2009 definately is not d3dx9_30.dll. I just don't feel like looking it up; the only confirmed DirectX SDK to build shaders.dll is the August 2006 one. Install that.
Re: Shader Plugin / Shader Help [message #389903 is a reply to message #389865] Wed, 10 June 2009 03:04 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 Wed, 10 June 2009 00:50

Omar007 wrote on Tue, 09 June 2009 17:42

I know i have to do that but isnt the d3d9_30.dll already right?
It was added when installing the March 2009 SDK

So what do you thinnk would it be for March 2009 if this isnt the one?

PS. The only difference between his screenshot and mine if i where to post one is i don't have user32.lib in the Additional Dependencies. Although this is surely not the problem xD


March 2009 definately is not d3dx9_30.dll. I just don't feel like looking it up; the only confirmed DirectX SDK to build shaders.dll is the August 2006 one. Install that.

Ah you where indeed right. It was the file from the August 2006 SDK :S
I only cant find the more recent one. ATM im guessing on d3dx9_41.dll

EDIT: nope its not working but supposed to be this one i believe :S

EDIT2: I found this in shaders.cpp:
#if D3DX_SDK_VERSION != 30
#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
#endif

AFAIK this means even if i do change the Delay Load to the newest (confirmed that is d3dx9_41.dll) it will still give this error. Seems it doesnt check if it is newer/older yes or no but only if it is August 2006 version.

EDIT3: When i change
#if D3DX_SDK_VERSION != 30
to
#if D3DX_SDK_VERSION <= 30
it does seem to compile as it should. This way you should be able to use all version after August 2006.


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

[Updated on: Wed, 10 June 2009 04:15]

Report message to a moderator

Re: Shader Plugin / Shader Help [message #389904 is a reply to message #388741] Wed, 10 June 2009 03:45 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Question apart from the above: Which version of the SDK will be used by TT/scripts 4.0??

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shader Plugin / Shader Help [message #389917 is a reply to message #389903] Wed, 10 June 2009 06:46 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Omar007 wrote on Wed, 10 June 2009 05:04


EDIT3: When i change
#if D3DX_SDK_VERSION != 30
to
#if D3DX_SDK_VERSION <= 30
it does seem to compile as it should. This way you should be able to use all version after August 2006.


Um is that a good idea?
and if so .. why not just remove the line instead of adding "<="?


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Shader Plugin / Shader Help [message #389923 is a reply to message #389917] Wed, 10 June 2009 07:50 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
halo2pac wrote on Wed, 10 June 2009 15:46

Omar007 wrote on Wed, 10 June 2009 05:04


EDIT3: When i change
#if D3DX_SDK_VERSION != 30
to
#if D3DX_SDK_VERSION <= 30
it does seem to compile as it should. This way you should be able to use all version after August 2006.


Um is that a good idea?
and if so .. why not just remove the line instead of adding "<="?

Actually it comes down to the same point as having to change the _MSC_VER_ == 1400 to _MSC_VER_ <= 1400 in engine_common.cpp (or something) to compile scripts on VC2008.

And i think you could delete the line BUT only if you also delete the 2 following lines otherwise it would ALWAYS give the error you have to change the Delay Load DLL.

I just changed it to
#if D3DX_SDK_VERSION <= 30
so i cant use any older SDK than August 2006. If you would use older it would maybe not work because it is to old. This way i eliminate the possibility of using older SDK's than August 2006.


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

[Updated on: Wed, 10 June 2009 07:51]

Report message to a moderator

Re: Shader Plugin / Shader Help [message #389945 is a reply to message #389923] Wed, 10 June 2009 10:36 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Omar007 wrote on Wed, 10 June 2009 10:50

halo2pac wrote on Wed, 10 June 2009 15:46

Omar007 wrote on Wed, 10 June 2009 05:04


EDIT3: When i change
#if D3DX_SDK_VERSION != 30
to
#if D3DX_SDK_VERSION <= 30
it does seem to compile as it should. This way you should be able to use all version after August 2006.


Um is that a good idea?
and if so .. why not just remove the line instead of adding "<="?

Actually it comes down to the same point as having to change the _MSC_VER_ == 1400 to _MSC_VER_ <= 1400 in engine_common.cpp (or something) to compile scripts on VC2008.

And i think you could delete the line BUT only if you also delete the 2 following lines otherwise it would ALWAYS give the error you have to change the Delay Load DLL.

I just changed it to
#if D3DX_SDK_VERSION <= 30
so i cant use any older SDK than August 2006. If you would use older it would maybe not work because it is to old. This way i eliminate the possibility of using older SDK's than August 2006.



The *reason* for that #if being exactly the way it was is so that the warning always triggers if you don't have the SDK matching that version number installed. If the DLL file says 41, the D3DX_SDK_VERSION is 41 and the line should be changed to read #if D3DX_SDK_VERSION != 41
Re: Shader Plugin / Shader Help [message #389951 is a reply to message #389945] Wed, 10 June 2009 10:58 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 Wed, 10 June 2009 19:36

Omar007 wrote on Wed, 10 June 2009 10:50

halo2pac wrote on Wed, 10 June 2009 15:46

Omar007 wrote on Wed, 10 June 2009 05:04


EDIT3: When i change
#if D3DX_SDK_VERSION != 30
to
#if D3DX_SDK_VERSION <= 30
it does seem to compile as it should. This way you should be able to use all version after August 2006.


Um is that a good idea?
and if so .. why not just remove the line instead of adding "<="?

Actually it comes down to the same point as having to change the _MSC_VER_ == 1400 to _MSC_VER_ <= 1400 in engine_common.cpp (or something) to compile scripts on VC2008.

And i think you could delete the line BUT only if you also delete the 2 following lines otherwise it would ALWAYS give the error you have to change the Delay Load DLL.

I just changed it to
#if D3DX_SDK_VERSION <= 30
so i cant use any older SDK than August 2006. If you would use older it would maybe not work because it is to old. This way i eliminate the possibility of using older SDK's than August 2006.



The *reason* for that #if being exactly the way it was is so that the warning always triggers if you don't have the SDK matching that version number installed. If the DLL file says 41, the D3DX_SDK_VERSION is 41 and the line should be changed to read #if D3DX_SDK_VERSION != 41

True but i changed it to <= 30 so even if i get on a PC with a version between 30 and 41 i still can compile it Thumbs Up


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shader Plugin / Shader Help [message #390003 is a reply to message #389951] Wed, 10 June 2009 15:05 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Omar007 wrote on Wed, 10 June 2009 13:58

Saberhawk wrote on Wed, 10 June 2009 19:36

Omar007 wrote on Wed, 10 June 2009 10:50

halo2pac wrote on Wed, 10 June 2009 15:46

Omar007 wrote on Wed, 10 June 2009 05:04


EDIT3: When i change
#if D3DX_SDK_VERSION != 30
to
#if D3DX_SDK_VERSION <= 30
it does seem to compile as it should. This way you should be able to use all version after August 2006.


Um is that a good idea?
and if so .. why not just remove the line instead of adding "<="?

Actually it comes down to the same point as having to change the _MSC_VER_ == 1400 to _MSC_VER_ <= 1400 in engine_common.cpp (or something) to compile scripts on VC2008.

And i think you could delete the line BUT only if you also delete the 2 following lines otherwise it would ALWAYS give the error you have to change the Delay Load DLL.

I just changed it to
#if D3DX_SDK_VERSION <= 30
so i cant use any older SDK than August 2006. If you would use older it would maybe not work because it is to old. This way i eliminate the possibility of using older SDK's than August 2006.



The *reason* for that #if being exactly the way it was is so that the warning always triggers if you don't have the SDK matching that version number installed. If the DLL file says 41, the D3DX_SDK_VERSION is 41 and the line should be changed to read #if D3DX_SDK_VERSION != 41

True but i changed it to <= 30 so even if i get on a PC with a version between 30 and 41 i still can compile it Thumbs Up


But it won't work because the Delay Load settings would be wrong. It was setup to always trigger if the SDK version was different because you can only build versions of shaders.dll that match the version of the SDK installed.
Re: Shader Plugin / Shader Help [message #390091 is a reply to message #390003] Thu, 11 June 2009 01:20 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Toggle Spoiler

I did use that first but as i typed earlier it works also in the way i use it now so it doesnt really matter because it works now too.

*Jumped into my mind:
And wouldnt that it the same for case for the change of
_MSC_VER_ == 1400
to
_MSC_VER_ <= 1400
which has to be changed to use a newer VC++ version than 2005.
What i did is actually the same but than for using a newer SDK instead of using a newer Compiler.

EDIT: What version does TT use for scripts 4.0?


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

[Updated on: Thu, 11 June 2009 01:22]

Report message to a moderator

Re: Shader Plugin / Shader Help [message #390109 is a reply to message #390091] Thu, 11 June 2009 03:03 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Omar007 wrote on Thu, 11 June 2009 04:20


I did use that first but as i typed earlier it works also in the way i use it now so it doesnt really matter because it works now too.

*Jumped into my mind:
And wouldnt that it the same for case for the change of
_MSC_VER_ == 1400
to
_MSC_VER_ <= 1400
which has to be changed to use a newer VC++ version than 2005.
What i did is actually the same but than for using a newer SDK instead of using a newer Compiler.

EDIT: What version does TT use for scripts 4.0?


It's not the same case as for the change of the _MSC_VER_ because the DXSDK error was put in there to remind people to look at the project settings and match the SDK version up, whereas the _MSC_VER_ code was put in there to fix issues with the way scripts.dll did things when Visual Studio 2005 SP1 *or newer* was used to compile it.

scripts 4.0 is currently using the November 2007 DirectX SDK
Re: Shader Plugin / Shader Help [message #390149 is a reply to message #390109] Thu, 11 June 2009 09:26 Go to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Saberhawk wrote on Thu, 11 June 2009 12:03

Omar007 wrote on Thu, 11 June 2009 04:20


I did use that first but as i typed earlier it works also in the way i use it now so it doesnt really matter because it works now too.

*Jumped into my mind:
And wouldnt that it the same for case for the change of
_MSC_VER_ == 1400
to
_MSC_VER_ <= 1400
which has to be changed to use a newer VC++ version than 2005.
What i did is actually the same but than for using a newer SDK instead of using a newer Compiler.

EDIT: What version does TT use for scripts 4.0?


It's not the same case as for the change of the _MSC_VER_ because the DXSDK error was put in there to remind people to look at the project settings and match the SDK version up, whereas the _MSC_VER_ code was put in there to fix issues with the way scripts.dll did things when Visual Studio 2005 SP1 *or newer* was used to compile it.

scripts 4.0 is currently using the November 2007 DirectX SDK

Ah i get it.
Thx Thumbs Up


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Previous Topic: Rene cloaking sound
Next Topic: shader edit
Goto Forum:
  


Current Time: Sat Dec 21 20:36:49 MST 2024

Total time taken to generate the page: 0.01219 seconds