Valhalla Legends Forums Archive | Battle.net Bot Development | Simple dll plugins

AuthorMessageTime
warz
I understand a lot of people use dll files as their plugins for their bot. Similar to skywings bot, except without any win32 api, simply linux console bot, how is loading dll plugins done? Skywings thing seemed rather indepth when i looked into it for my win32 bot. Just lookin for a brief description or website link that might help out some.

Thanks
February 28, 2005, 6:19 AM
Newby
Probably belongs in general programming. =P

This was the first thing that came up in Google.
February 28, 2005, 6:20 AM
kamakazie
[quote author=Newby link=topic=10751.msg101930#msg101930 date=1109571618]
Probably belongs in general programming. =P

This was the first thing that came up in Google.
[/quote]

Did you actually click that link?
February 28, 2005, 6:22 AM
warz
Nevermind, found some useful functions.

[quote]
> man dlopen
DLOPEN(3)          Linux Programmer's Manual          DLOPEN(3)

NAME
      dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - program­
      ming interface to dynamic linking loader

SYNOPSIS
      #include <dlfcn.h>

      void *dlopen(const char *filename, int flag);

      char *dlerror(void);

      void *dlsym(void *handle, const char *symbol);

      int dlclose(void *handle);

DESCRIPTION
      The four functions dlopen(), dlsym(), dlclose(), dlerror()
      implement the interface to the dynamic linking loader.
[/quote]

Thanks.
February 28, 2005, 6:27 AM
iago
You should have a look at how Gaim loads plugins.  It's nice and clean, and I got a lot of ideas for my Java bot from them.
February 28, 2005, 2:37 PM
Newby
[quote author=dxoigmn link=topic=10751.msg101931#msg101931 date=1109571735]
[quote author=Newby link=topic=10751.msg101930#msg101930 date=1109571618]
Probably belongs in general programming. =P

This was the first thing that came up in Google.
[/quote]

Did you actually click that link?
[/quote]
Nope, damnit.

BugMeNot had no passwords for it either. Lame. :(
February 28, 2005, 2:44 PM

Search