Punkbuster Console Message Generator v1.4.1

Compatible for any game that runs Punkbuster!


Load Saved Messages
Message ID:
Email Address:

Settings
Select the desired settings for your message rotation code. The default message rotation settings have been set by default. In most cases you do NOT need to change these.
Display first message after:
Display messages every:
Display messages from:


Messages
To add more message item press the green plus button. You need at least 1 message to generate your message rotation code. Once you have entered in all your messages click the "Generate Output" button.
Message 1:



Output
Using IE 6,7,8? There can be formatting issues with the returned information, try using Firefox, Safari or Chrome.
- or - - or -

Color Codes
^1 red
^2 green
^3 yellow
^4 blue
^5 light blue
^6 pink
^7 white
^8 grey
^9 black

How-To setup the pbsvmsg.cfg
Step 1: Create a new file called: pbsvmsg.cfg within the /pb/ folder of your COD4/WaW dedicated server files.
Step 2: Add the 'output' code in this file.
Step 3: Save the file within the /pb/ folder of your COD4/WaW dedicated server files.

How-To include the pbsvmsg.cfg
Add the following text:
pb_sv_load pbsvmsg.cfg

to the bottom of the pbsv.cfg file located in /pb/ of your COD4/WaW dedicated server files.

Don't have the pbsv.cfg file within the /pb/ folder of your COD4/WaW dedicated server files?:

No need to worry, if you have access to the FTP of your COD4/WaW dedicated server files i'm assuming you have access to rcon.

Update:

A lot of reported cases where you edit he /pb/ configs or generate the config via rcon but doesn't get put into /pb/ check to see if "/.callofduty4/pb/" or for WaW "/.callofduty5/pb/" exist. If it does then put the message file in there and edit he pbsv.cfg file within that folder!

If you don't I CANNOT help you, sorry!

Step 1: Log into rcon from either a 3rd party application or COD4/WaW itself from console.

/rcon login rconpassword
Step 2: Create the pbsv.cfg file within the /pb/ folder of your COD4/WaW dedicated server files.
/rcon pb_sv_writecfg
Step 3: Go back to the top of How-To include the pbsvmsg.cfg and start again.

How-To setup your main config.cfg
Add the following text:
wait 5
exec pbsv.cfg
to the bottom of the config.cfg file located in /main/ of your COD4/WaW dedicated server files.

Download your main config.cfg file to your desktop. Open it up w/ notepad.
The last step is to add this line to the bottom of your config.cfg file.

Please Note! Your main config name will vary. e.g.:
server.cfg
dedicated.cfg
etc...
Save it & upload it your COD4/WaW server.
Restart your server and now your messages should work!


The Command Overview
The basic command is: PB_SV_TASK X Y "say <message>" and here we will discover the values required for X and Y in the command based on how many messages you want to display and the delay between messages showing.

To get an equal time between displaying say messages on your server, you can use the following simple maths:

* A = number of messages to display
* B = the time delay between displaying messages

Then the 'Y' value for all messages is:

* Y = (B* A) + the X value of the first say task.

So what does that mean in English?

Lets say you have 5 messages to display and you want 30 seconds between each message and that you want the first one to start 10 seconds after you start the server.

Right, the X value in the first task statement is 10 (as you wanted) and the successive X value for the tasks is 30 more than the last (so the second is 40, the third 70, etc).
The Y value never changes and must include the 10 second offset of the first message, so the Y value for all messages (from the equation above) is (30*5) + 10 = 160 seconds.

So your task list will look like this:

pb_sv_task 10 160 "say Message1"
pb_sv_task 40 160 "say Message2"  // 30 second delay + the 10 second X value above
pb_sv_task 70 160 "say Message3"  // 30 second delay + the 40 second X value above
pb_sv_task 100 160 "say Message4" // etc
pb_sv_task 130 160 "say Message5"

In this example, the messages will repeat 160 seconds after the first message. Your first message will repeat at 160 seconds (not 170!), which is 30 seconds after the last message appeared at 130 seconds. So you have 30 second gap between all messages.

Thats only applies if you want your messages to display evenly spaced. If you want them all jumbled up and looking random, make the Y values all different.

Ultimately, regardless of how you set this up, the last 'X' value should be less than the Y values, otherwise the messages will mix up.

A variation on this is if you want a number of messages, 'A', to display evenly over 'B' number of seconds. In this case, the difference between the 'X' values in the pb_sv_task statement is:

  • dX = B/A

Your 'Y' values, again never change, can be calculated by:

  • Y = B + the X value of the first say task

For example: You want 5 messages to display over 240 seconds (4 minutes) and you want the first message to display 10 seconds after server start (ie, the first task X value is 10). The difference between the 'X' values must be 240/5 = 48 and all 'Y' values must be 240 + 10 = 250. So your task list will look like this:

pb_sv_task 10 250 "say Message1"
pb_sv_task 58 250 "say Message2"  // 48 second delay + the 10 second X value above
pb_sv_task 106 250 "say Message3" // 48 second delay + the 58 second X value above
pb_sv_task 154 250 "say Message4" // 48 second delay + the 106 second X value above
pb_sv_task 202 250 "say Message5" //etc

Add the delay of 48 seconds between the last message and the first message repeating and the total is 250 - your 'Y' value.


Change log
09/05/2009
Added Save feature
Fixed comma bug ","
Added in special comments for .callofduty4 and .callofduty5 pb folders
Save your message rotation
Email: