using an external DLL


(3emetype) #1

Hi,
I would like to use an external dll (made in C++) to make my bot for ET. The compilation performs well, but when the game starts, This error occurs :


----- Server Shutdown -----

VM_Create on game failed

Do you have any idea of what could be the problem ?


(3emetype) #2

Well, I discovered we need to use LoadLibrary, so now i use it, but I have a new error message (during the loading of a map) :

Cvar_update: handle out of range


(MessiaH) #3

Cvar_update: handle out of range

Means one/or more of your CVARs wasn’t implemented into the source right.
Re-add the new CVARs in main.c and make sure they’re right in local.h


(3emetype) #4

humm… handle out of range solved, but LoadLibrary fails :frowning:


(3emetype) #5

it works. LoadLibrary searches the dll at the ET.exe directory !