Server Help

Bot Questions - The moron tramps on...

Helicon - Sun Jan 26, 2003 10:17 pm
Post subject: The moron tramps on...
i have the "morons guide to making merv plugins". i know very little functional C++. please explain, in a nutshell, how a merv plugin operates. If someone could post a well-commented uncompiled VS6 Project i could probably get a lot from that. i know how to start a project, i know how to compile. i would just like the equivalent to "docu in a nutshell" for this program.

a list of structures and/or functions used in common plugins would be helpful.
I know that i am a moron. there is no reason to reiterate that point apart from irritating me.

i am sitting with the callback in front of me. My eyes are swimming in pixels. i am lost. Thanks well in advance.

once again. i know functional C++, but i have never had to use it in "the real world". Please give me the right general direction, and i can take it from there. thanks...
Dr Brain - Sun Jan 26, 2003 10:31 pm
Post subject:
Do what I did and read through lots of working bot code.

I found this site (well, nikon f7 gave me the link) that has some bot source: http://www.dueling.net/bots/
SOS - Sun Jan 26, 2003 11:25 pm
Post subject:
Basically, when MERV spawns a new bot, it loads all the DLLs for it like this:
It executes the talk() function in the DLL, which creates a new instance of the DLL if one is not loaded with the EXE-given ID. This message would be EVENT_Init I belive.
Then it calls talk() whenever it wants to send something to the DLL. talk() in turn calls gotEvent() on the correct bot instance. You should put all your code in that function.
To send something to the EXE, you use tell(eventconstructor()), where eventconstructor is a function beginning with "make".
Tell() then calls the callback() function, which the EXE gave to it with the EVENT_Init call.
Helicon - Mon Jan 27, 2003 3:58 pm
Post subject:
where in the code can i find the declared make functions? Is there a file listing or do i need to look at the code for the exe?

what variables change according to the data received and
*where* would i put code that needs to be run on loading the bot IE loading of a file. do i need to just us a variable switch IE boolean that runs the routine

thanks again, great link DB, and thanks always SOS. BTW, i mailed catid, but anyone got docu for the VB MERV?
Nikon F5 - Mon Jan 27, 2003 5:35 pm
Post subject:
emot-lol.gif dr brain, im nikon f5, not nikon f7 grav_gore.gif
Dr Brain - Mon Jan 27, 2003 5:42 pm
Post subject:
heh, whoops.
Nikon F5 - Mon Jan 27, 2003 5:46 pm
Post subject:
lol, np, all you have to do is say "Nikon F5 is the greatest!! We shall bow down to him kiss his feet!! Also we must give him all our money and possesions" icon_twisted.gif
Dr Brain - Mon Jan 27, 2003 5:48 pm
Post subject:
Or what? You don't invite me to your birthday party?
Nikon F5 - Mon Jan 27, 2003 5:50 pm
Post subject:
im telling my mommy on you. icon_cry.gif youre a big mean stranger, i dont know why i talk to you. like mommy says, dont talk to strangers.
Helicon - Mon Jan 27, 2003 10:00 pm
Post subject:
does that law cover message boards? Big.. he looks kind of small and squash-like to me. thanks for making my post so... inspiring.

if i ever met someone from subpsace i think id have to quit
SOS - Mon Jan 27, 2003 11:28 pm
Post subject:
Quote:
where in the code can i find the declared make functions? Is there a file listing or do i need to look at the code for the exe?

Yes, it's in the EXE code. dllcore.h

Quote:
what variables change according to the data received


Nothing changes unless you change it. You get a bunch of variables with the event. All the variables are extracted from the events in the template code.

Quote:
*where* would i put code that needs to be run on loading the bot IE loading of a file. do i need to just us a variable switch IE boolean that runs the routine


EVENT_Init
ExplodyThingy - Tue Jan 28, 2003 10:57 am
Post subject:
Speaking of digging through sorces for bots, where is the source for the basewars bot? Ive been 'hired' to edit it a bit, like taking out !cheat. Catid's site has no sources for plugins.
SOS - Tue Jan 28, 2003 12:00 pm
Post subject:
You'll have to find and ask it's owner or ask Catid for the source if he made the plugin.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group