Pages: 1 [2]   Go Down
  Print  
Author Topic: Custom Playlist Plugin  (Read 968 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Home user
Gameservers: CoD7
Posts: 10
Offline Offline
« Reply #15 on: November 14, 2011, 12:37:31 PM »

p0laris,

Sorry for the delay in response. In the config file you can setup as many playlists as you want, but you are only allowd to use one at a time. There is no command to switch them, and I do not believe it is possible to do so, because from my understanding of how B3 works, is the plugins are loaded and the config files are read during the startup of B3.

So to me, this means in order for what you want to work, you will have to restart B3 everytime, this is why I wanted to change having the playlist in the config file and move it to a database, as that would give me the ability to do things on the fly without having to restart B3.

I may be wrong as programming is not my strong subject, but if someone else thinks its possible or has a way of doing it, then let me know and I can see what I can do.

As for making the plugin work with a database, I do not think I will be going down that road anymore, as my squad and I no longer play Black Ops.

You may want to look into the RotationManager plugin http://forum.bigbrotherbot.net/downloads/?sa=view;down=13

This will allow you to setup small, medium, large playlist and it changes based on the amount of players in your server. My plugin, was meant to setup a specific order of gametype/maps, as we enjoyed playing everything except TDM, and certain maps were great with a certain gametype, so it gave me more control on what we wanted to play.
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #16 on: November 14, 2011, 01:20:20 PM »

poweradminbf3 loads playlists from txt files. no need to restart the bot to modify/add/delete new playlists
Logged

Tags:
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal