Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
The moron tramps on...

 
Post new topic   Reply to topic Printable version
 View previous topic  help Post :: Post SOS, ur plugins  View next topic  
Author Message
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Sun Jan 26, 2003 10:17 pm    Post subject: The moron tramps on... Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Jan 26, 2003 10:31 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Sun Jan 26, 2003 11:25 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Mon Jan 27, 2003 3:58 pm    Post subject: Reply to topic Reply with 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?

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
View users profile Send private message Add User to Ignore List
Nikon F5
Newbie


Gender:Gender:Male
Joined: Jan 17 2003
Posts: 20
Offline

PostPosted: Mon Jan 27, 2003 5:35 pm    Post subject: Reply to topic Reply with quote

emot-lol.gif dr brain, im nikon f5, not nikon f7 grav_gore.gif
_________________
clouds that thunder dont always rain
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Jan 27, 2003 5:42 pm    Post subject: Reply to topic Reply with quote

heh, whoops.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Nikon F5
Newbie


Gender:Gender:Male
Joined: Jan 17 2003
Posts: 20
Offline

PostPosted: Mon Jan 27, 2003 5:46 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Jan 27, 2003 5:48 pm    Post subject: Reply to topic Reply with quote

Or what? You don't invite me to your birthday party?
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Nikon F5
Newbie


Gender:Gender:Male
Joined: Jan 17 2003
Posts: 20
Offline

PostPosted: Mon Jan 27, 2003 5:50 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Mon Jan 27, 2003 10:00 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Mon Jan 27, 2003 11:28 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Tue Jan 28, 2003 10:57 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Tue Jan 28, 2003 12:00 pm    Post subject: Reply to topic Reply with quote

You'll have to find and ask it's owner or ask Catid for the source if he made the plugin.
Back to top
View users profile Send private message Add User to Ignore List Send email
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 662 page(s) served in previous 5 minutes.

phpBB Created this page in 0.621711 seconds : 38 queries executed (84.7%): GZIP compression disabled