![]() |
Several problems with HL2DM
I have several problems when trying to make my plugins work in HL2DM.
1. Returning "false" in the plugin's Load() virtual method, which would normally tell Source to skip this plugin and not attempt to load it, makes the server crash. 2. I am unable to load the IPlayerInfoManager and IBotManager interfaces through gameServerFactory (which noteworthy, are not interfaces from the engine but from the game DLL, hence the need to load them from gameServerFactory() and not interfaceFactory()). The same code works fine in CS:Source, where I can load all the interfaces I want. Here's my Load() function: Code:
virtual bool Load (CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory) Is it me or is it that HL2DM is buggy ? |
Re: Several problems with HL2DM
lol, well thats odd. The only thing that first did not work was createfakeclient, and now somehow the interfaces do not work. I think you should contact Alfred about this..
|
Re: Several problems with HL2DM
from the hlcoders list this mail gives you an answer:
Quote:
|
Re: Several problems with HL2DM
Haha! I suspected something like that. Gotta toy with the version numbers a bit.
I should sign up for this mailing list someday. |
Re: Several problems with HL2DM
w00t! IPlayerInfoManager interface loaded in HL2DM. Now on the IBotManager one...
Stefan, it's totally normal that creating a fake client wouldn't work, since this function is a member of IBotManager, and the interface has not been attached! The problem is not that calling botmanager->CreateBot crashes, but that botmanager is NULL ;) *edit* found the interface version strings all in hl2mp/bin/server.dll if you hexedit it. Bailopan was right, there's a version mismatch between HL2MP and CS:Source for the IPlayerInfoManager interface. On the IBotManager one though, it's more complicated as its version is already 001 in the SDK and I find no occurence of it in the server DLL. It looks like the IBotManager interface is unknown in HL2DM!!! o_O it means HL2DM doesn't support bots, simply. *edit 2* OK, IPlayerInfoManager interface correctly loaded as version "PlayerInfoManager001" but still unusable. Calling playerinfomanager->GetGlobalVars () leads to a memory access crash. I suspect they added GetGlobalVars to the interface just for this version 002, which means it's inexistent so far in the current server DLL. Dat sux0rz teh big 0n3. |
Re: Several problems with HL2DM
Well there is an update tonight on the SDK... let's hope they fix that!! :)
|
Re: Several problems with HL2DM
where did you see that ? the steam news don't mention it...
|
Re: Several problems with HL2DM
In the meantime, here's a helpful macro for you guys
Code:
// plugin interface loader Code:
virtual bool Load (CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory) |
All times are GMT +2. The time now is 16:29. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.