Raised This Month: $32 Target: $400
 8% 

ServerGameDLL003 not found in Day of Defeat: Source


Post New Thread Reply   
 
Thread Tools Display Modes
BAILOPAN
Join Date: Jan 2004
Old 10-04-2005 , 03:38  
Reply With Quote #11

I'm working on a way to make valve updates of this nature irrelevant by loading the gamedll before the interface request is known. Hopefully I'll have it committed to CVS tomorrow.
__________________
egg
BAILOPAN is offline
showdax
Senior Member
Join Date: Dec 2004
Old 10-06-2005 , 07:14  
Reply With Quote #12

I've got a question about this:
Quote:
* NOTE - As of API 7, you can override factories before the engine and gamedll exchange them.
* However, take care to note that if your plugin is unloaded, and the gamedll/engine have cached
* an interface you've passed, something will definitely crash. Be careful.
Is there any way to get around this? Perhaps doing something like firing an event that says such and such interface will become invalid, and other plugins can catch that and handle it appropriately?

Also, is there any way for a plugin to see if Con_Printf is found? I know sourcemm prints a warning message, but some sort of bool method somewhere that says it's usable or not would be nice.
showdax is offline
Send a message via MSN to showdax
BAILOPAN
Join Date: Jan 2004
Old 10-06-2005 , 13:05  
Reply With Quote #13

There is no way around this, sadly. Once the engine or gamedll have cached an interface of yours, they're is no way to tell them it has changed.

There is an internal function to do this - I'll make it public before the release.
__________________
egg
BAILOPAN is offline
showdax
Senior Member
Join Date: Dec 2004
Old 10-06-2005 , 23:56  
Reply With Quote #14

Quote:
Originally Posted by BAILOPAN
There is no way around this, sadly. Once the engine or gamedll have cached an interface of yours, they're is no way to tell them it has changed.
Well I meant having a callback for plugin unloading that other plugins can use. Maybe one of the arguments could be a list of the interfaces the plugin created so there's less guesswork.

I was also thinking of literally firing a game event for this, but I don't really know how to make custom game events, if that's even possible.
showdax is offline
Send a message via MSN to showdax
BAILOPAN
Join Date: Jan 2004
Old 10-07-2005 , 00:38  
Reply With Quote #15

Actually, I was planning on adding this for not this release but the next. It would be IPluginListener, like SourceMod has.
__________________
egg
BAILOPAN is offline
rob2t3s
Junior Member
Join Date: Oct 2005
Old 11-04-2005 , 20:06  
Reply With Quote #16

so is there a way to fix this problem?
rob2t3s is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 11-04-2005 , 20:26  
Reply With Quote #17

The DOD:S problem was fixed in sourcemm 1.1
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
showdax
Senior Member
Join Date: Dec 2004
Old 11-04-2005 , 20:52  
Reply With Quote #18

It doesn't fix it for plugins that use this interface though, but the fix is trivial if you don't intend on using the two new functions.
showdax is offline
Send a message via MSN to showdax
band325
Junior Member
Join Date: Oct 2005
Old 11-05-2005 , 04:19   Comment
Reply With Quote #19

Quote:
I've got a question about this:
Well as brief as your comment is it explains alot.
__________________
band325 is offline
kormonautti
Junior Member
Join Date: Apr 2006
Old 05-04-2006 , 19:00  
Reply With Quote #20

So, are these only changes between version 003 and version 004? Somebody has verified this?

Quote:
Originally Posted by showdax

virtual bool PostInit(void) = 0;
virtual void Think(bool) = 0;
kormonautti is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode