I figured i'd start making a bot, now i've spent the last 4 hours reading about HPB, and playing around in MSVS.
I want to make a bot for the mod NS (Natural-Selection)
I used the exports.c, and removed the dublicates, added it to linkfunc.cpp
next I added
Quote:
else if (strcmpi(mod_name, "nsp") == 0)
{
mod_id = NSP_DLL; #ifndef __linux__
// test if the game DLL file is NOT available outside of the Steam/PAK cache
if (access("nsp/dlls/ns.dll", 0) == -1)
{
filebuf = LOAD_FILE_FOR_ME ("dlls/ns.dll", &filesize);
filep = fopen ("nsp/dlls/ns.dll", "wb");
if (filep != NULL)
{
fwrite (filebuf, 1, filesize, filep); // if in cache, then extract it fclose (filep);
}
}
h_Library = LoadLibrary("nsp/dlls/ns.dll");
#else
h_Library = dlopen("nsp/dlls/ns_i386.so", RTLD_NOW);
#endif
}
|
to the h_export.cpp
and in bot.h I added #define NSP_DLL 6
so far so good, I then compiled the DLL file
changed the liblist.gam to the name of the DLL
opened NS, created a server. and puff back to the desktop :/
Is there any way i can get error logs or something :/ or do someone know what might be wrong?