Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugin Releases! (Moderator: MordyT)Include number of bots in server name [UrT]
Pages: [1]   Go Down
  Print  
Author Topic: Include number of bots in server name [UrT]  (Read 1201 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Home user
Gameservers: UrT
Posts: 2
Offline Offline
« on: February 15, 2011, 09:05:14 PM »

Good evening. I have made a plugin that changes the name of the server and includes at the end of the name how many bots are in your server.

For example if your server name is "YourServerName" and you have 4 bots, then it will say "YourServerName [4Bots]"

Remember not to use long names because that part could be ignored by urt on the server listing.

I am a noob in python and developing for b3 as well, I used code from the Bots plugin made by Beber888. It can be easily implemented on the Bots plugin, and it would be a nice feature.

I've seen the page Plugin SDK, B3 reference (devs) and Converting Simple Modifications into Plugins.

Could you tell me if there is another source of information? There are many functions that I don't know they exist and finding them in B3 reference is not so easy

[attachment deleted by maintenance]
« Last Edit: February 16, 2011, 05:21:13 AM by agroferia » Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: February 16, 2011, 12:52:17 AM »

Hi agroferia and welcome on B3 forums.

You made a nice contribution with this plugin, we hope to see more from you soon Smiley
Please remove the copyright Courgette from the first line of servernamebots.py file as I hold no copyright on your work.

Regarding documentation, what we have is what you can find on the "Documentation" top menu. We know it is too few to get started without having to study how other plugins work.

To bring more visibility to your plugin, please upload it to the download section of this site.

« Last Edit: February 16, 2011, 05:40:06 AM by Courgette » Logged

Newbie
*
OS: Windows
Type: Home user
Gameservers: UrT
Posts: 2
Offline Offline
« Reply #2 on: February 16, 2011, 05:26:39 AM »

Ok. Sorry about that, I already modified it. The only thing I changed was that. As I said before, most of my code comes from the bots plugin, I just modified portions of the code to do what I wanted. I hope someone find it useful.

And regarding the documentation, Ok, I guess the best way then is too look in other's code. Thanks for the answer


Version 1.0.2 is out. I changed a bit the documentation. I added it to the downloads section as well
« Last Edit: February 16, 2011, 05:40:45 AM by agroferia » Logged
Tags: bots  name  sv_hostname 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal