Difference between revisions of "Valve Developer And Community Tidbits"

From Valve Developer Community
Jump to: navigation, search
m
Line 1: Line 1:
Use this page to post any misc information from valve developers made on mailing lists, forums or emails.
+
Use this page to post any information from Valve developers made on mailing lists, forums, or emails. This information should also be sorted into specific pages.
 
 
 
==Using external libarys with source==
 
==Using external libarys with source==
'''Q: Mailing List'''
+
<dl>
In order to do certain things in my mod I need to use some third-party
+
<dt>Q: Mailing List</dt>
libraries which need to do some initialization/termination work.  Is
+
<dd>In order to do certain things in my mod I need to use some third-party libraries which need to do some initialization/termination work.  Is there a certain place where I can call these functions as the mod is loaded?</dd>
there a certain place where I can call these functions as the mod is
+
<dt>A: Yahn Bernier</dt>
loaded?
+
<dd>Anyway, you are free to add a DllMain to the server or client .dlls.  In addition, you might look at dlls/GameInterface.cpp at DllInit(...) and put your init code in there.  I believe there is a corresponding shutdown section.
 
 
'''A: Yahn Bernier'''
 
Anyway, you are free to add a DllMain to the server or client .dlls.  In
 
addition, you might look at dlls/GameInterface.cpp at DllInit(...) and
 
put your init code in there.  I believe there is a corresponding
 
shutdown section.
 
  
 
The other possibility is to create a new CAutoGameSystem and implement
 
The other possibility is to create a new CAutoGameSystem and implement
 
the Init/Shutdown methods (see IGameSystem.h and numerous examples in
 
the Init/Shutdown methods (see IGameSystem.h and numerous examples in
the game and client .dlls).
+
the game and client .dlls).</dd></dl>

Revision as of 22:05, 23 March 2006

Use this page to post any information from Valve developers made on mailing lists, forums, or emails. This information should also be sorted into specific pages.

Using external libarys with source

Q: Mailing List
In order to do certain things in my mod I need to use some third-party libraries which need to do some initialization/termination work. Is there a certain place where I can call these functions as the mod is loaded?
A: Yahn Bernier
Anyway, you are free to add a DllMain to the server or client .dlls. In addition, you might look at dlls/GameInterface.cpp at DllInit(...) and put your init code in there. I believe there is a corresponding shutdown section. The other possibility is to create a new CAutoGameSystem and implement the Init/Shutdown methods (see IGameSystem.h and numerous examples in the game and client .dlls).