Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Shader Plugin errors
Shader Plugin errors [message #439792] Sat, 20 November 2010 04:02 Go to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I'm currently trying to get access to The_Game(), Get_Player_Name(GameObject *obj) and **TheStar through a shader plugin.

Problem being: I'm getting unresolved external errors.

1>dllmain.obj : error LNK2001: unresolved external symbol "class ReferenceableClass<class ScriptableGameObj> * * TheStar" (?TheStar@@3PAPAV?$ReferenceableClass@VScriptableGameObj@@@@A)
1>dllmain.obj : error LNK2001: unresolved external symbol "char const * __cdecl Get_Player_Name(unsigned char *)" (?Get_Player_Name@@YAPBDPAE@Z)
1>dllmain.obj : error LNK2001: unresolved external symbol "class cGameData * __cdecl The_Game(void)" (?The_Game@@YAPAVcGameData@@XZ)


Does anyone know how I can get these to work inside the plugin??


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

[Updated on: Sat, 20 November 2010 04:03]

Report message to a moderator

Re: Shader Plugin errors [message #439908 is a reply to message #439792] Mon, 22 November 2010 15:06 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Plugins are no longer available in 4.0, so unless you wanna build something then scrap it in 4.0 you might as well just build it in the shaders file itself.

(Also, I don't think shaders.dll includes engine_game.h, if that is the case you'll need to include it in order to get access to it).


Re: Shader Plugin errors [message #439911 is a reply to message #439792] Mon, 22 November 2010 15:29 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Shaders.dll does include the engine_* files.
Though the whole point of making a plugin is making it work without the need of a custom shaders.dll...

Does TT/4.0 offer an alternative to shader plugins?


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Shader Plugin errors [message #439938 is a reply to message #439792] Mon, 22 November 2010 21:57 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

No, there is no alternative to shader plugins in 4.0
Custom shaders.dll files arent likely to be supported either due to anti-cheat reasons (being that its possible to modify shaders.dll for anti-cheat)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Shader Plugin errors [message #439949 is a reply to message #439792] Tue, 23 November 2010 01:15 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)
But his actual problem right now, does anyone have any help for him?


Re: Shader Plugin errors [message #439951 is a reply to message #439792] Tue, 23 November 2010 02:10 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
The errors are telling you that those functions are not exported by any of the libraries you are linking against. If they are not exported by scripts.dll then you will not be able to use them in your plugin.

http://steamsignature.com/card/1/76561197975867233.png
Re: Shader Plugin errors [message #439973 is a reply to message #439792] Tue, 23 November 2010 14:51 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Well that sucks D:
I guess I'll have to make it a custom shaders.dll then instead. Bye plug-in and play ;P
(yea bad joke >.<)


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

[Updated on: Tue, 23 November 2010 14:53]

Report message to a moderator

Re: Shader Plugin errors [message #439974 is a reply to message #439973] Tue, 23 November 2010 14:52 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)
Omar007 wrote on Tue, 23 November 2010 16:51


(yea bad joke >.<)


I lol'd.



Re: Shader Plugin errors [message #439976 is a reply to message #439938] Tue, 23 November 2010 15:33 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
jonwil wrote on Mon, 22 November 2010 21:57

No, there is no alternative to shader plugins in 4.0
Custom shaders.dll files arent likely to be supported either due to anti-cheat reasons (being that its possible to modify shaders.dll for anti-cheat)


Saberhawk told me support for the plug-ins was dropped in 4.0 due to them having a high performance cost.


Re: Shader Plugin errors [message #439989 is a reply to message #439792] Tue, 23 November 2010 22:32 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Shader plugin support was dropped because it was a performance hog.
But the reason custom shaders.dlls wont be supported is because of the anti-cheat.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Shader Plugin errors [message #439990 is a reply to message #439792] Tue, 23 November 2010 22:35 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Shader plugin support was dropped because it was a performance hog.
But the reason custom shaders.dlls wont be supported is because of the anti-cheat.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Shader Plugin errors [message #439992 is a reply to message #439792] Tue, 23 November 2010 23:29 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
I thought that there would be the ability to send shaders.dll files to the TT team so that they could approve the hashes of ones that were considered to be okay.

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Shader Plugin errors [message #440000 is a reply to message #439792] Wed, 24 November 2010 07:13 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Yes I imagine that if we find a shaders.dll that is verified clean and safe (not just by examining the binary but by examining the source and possibly even compiling it ourselves) we may well approve it.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies

[Updated on: Wed, 24 November 2010 07:14]

Report message to a moderator

Re: Shader Plugin errors [message #440011 is a reply to message #439792] Wed, 24 November 2010 11:11 Go to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Ok well that at least gives me the possibility to make it available when 4.0 hits the web Thumbs Up

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

[Updated on: Wed, 24 November 2010 11:11]

Report message to a moderator

Previous Topic: color variation problem with skining
Next Topic: seat and damage bones?
Goto Forum:
  


Current Time: Sat Jan 11 10:48:47 MST 2025

Total time taken to generate the page: 0.00981 seconds