Valve Developer And Community Tidbits: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
the game and client .dlls).</dd></dl>
the game and client .dlls).</dd></dl>


==Usefull Forum Threads==
==Useful Forum Threads==
Crashing when spawning a client:
* [http://www.chatbear.com/board.plm?a=viewthread&b=4991&t=898,1122330204,23151&s=20&id=897291#27 Chatbear: Crashing when spawning a client]
http://www.chatbear.com/board.plm?a=viewthread&b=4991&t=898,1122330204,23151&s=20&id=897291#27
* [http://www.swallowbush.com/forum/viewtopic.php?t=294&sid=5b402dbd9cb0babca4107da5864d21a4 SwallowBush: Notes]
SwallowBush's notes:
http://www.swallowbush.com/forum/viewtopic.php?t=294&sid=5b402dbd9cb0babca4107da5864d21a4

Revision as of 17:56, 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).

Useful Forum Threads