Author |
Message |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: 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... _________________ Signatures just seem so quaint. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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/ _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: 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. _________________ 3y3 4m l33t h4x0r
j0! 3y3 4m t4lking to j00!
fux0red 5cr1pt k1dd13.
-"l33t h41ku" |
|
Back to top |
|
|
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: 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? |
|
Back to top |
|
|
Nikon F5 Newbie
Gender: Joined: Jan 17 2003 Posts: 20 Offline
|
Posted: Mon Jan 27, 2003 5:35 pm Post subject: |
|
|
|
|
dr brain, im nikon f5, not nikon f7 _________________ clouds that thunder dont always rain |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Jan 27, 2003 5:42 pm Post subject: |
|
|
|
|
heh, whoops. |
|
Back to top |
|
|
Nikon F5 Newbie
Gender: Joined: Jan 17 2003 Posts: 20 Offline
|
Posted: 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" |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Jan 27, 2003 5:48 pm Post subject: |
|
|
|
|
Or what? You don't invite me to your birthday party? |
|
Back to top |
|
|
Nikon F5 Newbie
Gender: Joined: Jan 17 2003 Posts: 20 Offline
|
Posted: Mon Jan 27, 2003 5:50 pm Post subject: |
|
|
|
|
im telling my mommy on you. youre a big mean stranger, i dont know why i talk to you. like mommy says, dont talk to strangers. |
|
Back to top |
|
|
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: 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 |
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: 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 |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: 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. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: 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. |
|
Back to top |
|
|
|