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
MERVbot Tutorial

 
Post new topic   Reply to topic Printable version
 View previous topic  Bot Project Help Post :: Post Bot sysop  View next topic  
Author Message
ChalkEagle
Newbie


Joined: May 31 2004
Posts: 23
Offline

PostPosted: Fri Aug 27, 2004 9:58 pm    Post subject: MERVbot Tutorial Reply to topic Reply with quote

If you think this is a post asking for a MERVBot tutorial, surprise, its not.

I am writing up a detailed MERVBot tutorial. Ive done about 7 sections so far as well as how to run it and set it up. Its a work in progress, but if anyone wants to comment on it, feel free. Just felt like doing my part in the war against not enough bot programmers.

www.sectionops.net/er/tutorial.html

(That goes to the Setup/How to run Page, links at the bottom of it)

I am also free for suggestions. Its ment for a very beginner audience, so I try to go into as much detail as I can.

-Chalk Eagle
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Aug 27, 2004 11:30 pm    Post subject: Reply to topic Reply with quote

Nice job with what I've read so far. But I do have a few suggestions, as always:

  1. Mervbot.com seems to be broken right now. I'd suggest using catid.ssihosting.com, since that will almost definitely stay the same for quite a while.
  2. On the project setup page, it sounds like the user should compile the default code and use that as their plugin. That won't be too functional. icon_razz.gif I'd add in something about "write your code!" first.
  3. On the how to run page, I'd suggest adding the attribute "readonly" to each of the textareas. Looks a lot nicer that way.
  4. Spawn.h: you can also add functions and member variables. (If they read that tutorial, they should know what members are by now.)
  5. I'd also tell the reader that detailed descriptions of each event also live in dllcore.h, along with a "DO NOT TOUCH!" message. icon_smile.gif
  6. User code should go below "Put blah here" comments.
  7. Code looks SO much nicer with braces on their own lines. And they're braces, not parenthesis as you said in the code section.
  8. Make the repetitive ifs in gotCommand() else ifs to save CPU time.
  9. The !commands command is a little ugly. Why don't you have the user add that in gotHelp()?
  10. You should really use CMPSTART() in EVENT_Chat instead of assigning the contents to a few different Strings. If you really want to use Strings, at least only use one.


That's all for now. Sorry, it's kinda long, but hopefully it'll help. Good luck icon_smile.gif
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Fri Aug 27, 2004 11:41 pm    Post subject: Reply to topic Reply with quote

why not open the provided project file in the tutorial (1 step) instead of creating the project file (7 steps).

I keep a copy in a template directory that I copy and rename whenever I make a new plugin.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sat Aug 28, 2004 12:05 am    Post subject: Reply to topic Reply with quote

there is a reason for not a lot of bot programmers. There arent a lot of people capable of programming. I strongly disagree with teaching script kiddies the ABCs of programming like a retard. There are enough plugins that have been poorly done, including so of mine that i rushed, there needs to be a higher understanding of what the core is doing and that can only be accomplished if the person reading this tutorial knows how to program. And if they know how to program, they wont need a tutorial to hold thier hand through FOR loops and sting handling.

So for you script bitches,
step 1. Learn to program in C and/or C++ (this involves knowing more than int main(){return 0;} )
step 2. Read some of the mervbot source code along with dll code to get a gist of the ideas involved with dll programming
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Deadly
Seasoned Helper


Age:34
Gender:Gender:Male
Joined: Oct 15 2003
Posts: 148
Location: Ontario Canada
Offline

PostPosted: Sat Aug 28, 2004 1:33 am    Post subject: Reply to topic Reply with quote

i dont know C++ and i can make good enough plugins.. the code is prolly shit compared to ppl that know lots of C++ but the plugin works so i dont care icon_smile.gif
_________________
Known as DeadlySoldier!! in-game..

http://deadly.sscentral.com -- My Bots
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Aug 28, 2004 6:26 am    Post subject: Reply to topic Reply with quote

OK, OK, I really do agree with 50%, but I didn't want to be discouraging. I think that if someone can't figure out how to do the most basic stuff, they won't be able to make a good plugin.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
ExplodyThingy
Server Help Squatter


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

PostPosted: Mon Aug 30, 2004 7:40 pm    Post subject: Reply to topic Reply with quote

If you so desire, Ill add this to the sticky on ssforum.
_________________
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
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: 61 page(s) served in previous 5 minutes.

phpBB Created this page in 0.446708 seconds : 31 queries executed (93.7%): GZIP compression disabled