Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
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!

Author Topic: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]  (Read 20005 times)

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« on: November 08, 2006, 07:12:26 PM »

This plugin executes configs based on gametypes and mapnames if they exist in your games main or fs_game folder. It will first look if a b3_<gametype>_<mapname>.cfg exists and execute it. If it doesn't exist, it checks for a b3_<gametype>.cfg. If none of them exist, it will look for b3_main.cfg. This file makes it possible to reset certain cvars.


Quote
###################################################################################
#
# Plugin for B3 (www.bigbrotherbot.com)
# (c) 2006 www.xlr8or.com (mailto:[email protected])
#
# This program is free software and licensed under the terms of
# the GNU General Public License (GPL), version 2.
#
# http://www.gnu.org/copyleft/gpl.html
###################################################################################

ConfigManager (v1.1.0) for B3
###################################################################################

This plugin executes configs based on gametypes and mapnames if they exist in your
games main or fs_game folder. It will first look if a
b3_<gametype>_<mapname>.cfg exists and execute it. If it doesn't exist, it checks
for a b3_<gametype>.cfg. If none of them exist, it will look for b3_main.cfg. This
file makes it possible to reset certain cvars or execute volatile settings.


Requirements:
###################################################################################

- Gameserver: CoD, ioUrT or WoP
- B3 version 1.1.0 or higher


Installation:
###################################################################################

1. Unzip the contents of this package into your B3 folder. It will
place the .py file in b3/extplugins and the config file .xml in
your b3/extplugins/conf folder.

2. Create configs in your main gamefolder or fs_game folder. (If you cannot find
the proper location to store your configs you can check b3.log just after
starting the bot. It will print a line where to store the config files! Find
the next line:
ConfigmanagerPlugin: GameConfigPath: /home/yourgame/blabla/ for game: ... )

3. Level and form of the configs:
level 1:  b3_<gametype>_<mapname>.cfg (eg.: b3_tdm_mp_carentan.cfg)
level 2:  b3_<gametype>.cfg (eg.: b3_tdm.cfg)
level 3:  b3_main.cfg

NOTE: Do NOT use map_rotate commands in the configs ;)

4. Open your B3.xml file (in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="configmanager" priority="12" config="@b3/extplugins/conf/configmanager.xml"/>

The numer 12 in this just an example. Make sure it fits your
plugin list.


Changelog
###################################################################################
v1.0.0         : Initial release
v1.1.0         : Added support for ioUrT and WoP


###################################################################################
xlr8or - 1 februari 2008 - www.bigbrotherbot.com // www.xlr8or.com

You can download the latest version here: http://forum.bigbrotherbot.net/downloads/?sa=view;down=18
« Last Edit: June 30, 2011, 12:27:01 PM by xlr8or »

Offline Admin

  • Former Dev. (senate)
  • Sr. Member
  • *****
  • Posts: 350
Re: ConfigManager
« Reply #1 on: November 09, 2006, 12:22:06 AM »
Great work as always xlr8or. Do you mind if I incorporate some of your plugins straight into b3 2.0?

Offline Admin

  • Former Dev. (senate)
  • Sr. Member
  • *****
  • Posts: 350
Re: ConfigManager
« Reply #2 on: November 09, 2006, 12:24:50 AM »
The download link is timing out. Do you want ftp space at bigbrotherbot.com for a US mirror?

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: ConfigManager
« Reply #3 on: November 09, 2006, 01:10:57 PM »
Great work as always xlr8or. Do you mind if I incorporate some of your plugins straight into b3 2.0?
Thanks! Pls incorporate everything you want. It's all ment to work with B3. Go ahead.

Quote from: ThorN
The download link is timing out. Do you want ftp space at bigbrotherbot.com for a US mirror?
Perhaps a US mirror would be a good idea... :)

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: ConfigManager
« Reply #4 on: November 28, 2006, 03:15:20 PM »
Anybody have feedback on this plugin? Kellerkind?

Offline Kellerkind

  • Jr. Member
  • **
  • Posts: 46
    • Internationaloldstars.de
Re: ConfigManager
« Reply #5 on: November 28, 2006, 05:09:41 PM »
works 4 me, but with a lot of Players online i noticed some timing issues.
 
Ok, thats a lot of Output, but a example where the changes takes no effect after fast_restart
Code: [Select]
061127 22:12:44	VERBOSE	Parsing Event: Game Round Start: ConfigmanagerPlugin
061127 22:12:44 DEBUG ConfigmanagerPlugin: Type and Map Config: /home/ios/.cod2-28960/awe3b7/b3_tdm_mp_bridge2.cfg
061127 22:12:44 DEBUG ConfigmanagerPlugin: Gametype Config: /home/ios/.cod2-28960/awe3b7/b3_tdm.cfg
061127 22:12:44 DEBUG ConfigmanagerPlugin: Main Config: /home/ios/.cod2-28960/awe3b7/b3_main.cfg
061127 22:12:44 VERBOSE Parsing Event: Game Round Start: XlrstatsPlugin
061127 22:12:45 VERBOSE RCON sending (127.0.0.1:28960) exec b3_tdm.cfg
061127 22:12:46 DEBUG ConfigmanagerPlugin: Executing /home/ios/.cod2-28960/awe3b7/b3_tdm.cfg
061127 22:12:49 VERBOSE RCON sending (127.0.0.1:28960) say ^2Jenny^7: ^1*** MATCH STARTING IN ^710^1 SECONDS ***
061127 22:12:52 CONSOLE 23523:57 Q;335230;15;^4-=^1I.O.S^4=-^4Letzki
061127 22:12:52 VERBOSE Queueing event Client Disconnect 15
061127 22:12:52 VERBOSE Parsing Event: Client Disconnect: RotationmanagerPlugin
061127 22:12:52 DEBUG RotationmanagerPlugin: PlayerCount: 16
061127 22:12:55 CONSOLE 23524:01 J;148327;0;Kellerkind
061127 22:12:55 VERBOSE Queueing event Client Join Team None
061127 22:12:55 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:12:55 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb4826ccc>, Target None, Data None
061127 22:12:55 CONSOLE 23524:01 J;210006;16;^5P^7ark^5B^7ank^5R^7owdy
061127 22:12:55 VERBOSE Queueing event Client Join Team None
061127 22:12:55 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:12:55 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb483dc0c>, Target None, Data None
061127 22:12:57 CONSOLE 23524:02 J;862302;6;^9P^1A^3TE
061127 22:12:57 VERBOSE Queueing event Client Join Team None
061127 22:12:57 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:12:57 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb482612c>, Target None, Data None
061127 22:12:57 CONSOLE 23524:03 Q;903794;9;^5[^9T^1P^3C^5]^9Hel^1lBi^3ker
061127 22:12:57 VERBOSE Queueing event Client Disconnect 9
061127 22:12:57 VERBOSE Parsing Event: Client Disconnect: RotationmanagerPlugin
061127 22:12:57 DEBUG RotationmanagerPlugin: PlayerCount: 15
061127 22:12:59 VERBOSE RCON sending (127.0.0.1:28960) say ^2Jenny^7: ^7*** ^1MATCH ^7*** ^1STARTING ^7***
061127 22:13:01 CONSOLE 23524:06 J;268298;4;Blutwurst
061127 22:13:01 VERBOSE Queueing event Client Join Team None
061127 22:13:01 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:01 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb68a0c8c>, Target None, Data None
[b]061127 22:13:02 VERBOSE RCON sending (127.0.0.1:28960) fast_restart[/b]
061127 22:13:02 CONSOLE 23524:08 ShutdownGame:
061127 22:13:02 CONSOLE 23524:08 ------------------------------------------------------------
061127 22:13:02 VERBOSE line did not match format: ------------------------------------------------------------
061127 22:13:02 CONSOLE 23524:08 ------------------------------------------------------------
061127 22:13:02 VERBOSE line did not match format: ------------------------------------------------------------
061127 22:13:02 CONSOLE 23524:08 InitGame: \_Admin\Absolut Normale Spieler\_B3\B3 v1.1.1d-r102 [posix]\_Email\[email protected]\_IRC\#\_Location\Germany\_URL\www.internationaloldstars.de\_Website\http://www.internationaloldstars.de\fs_game\awe3b7\g_antilag\1\g_gametype\tdm\g_needpass\0\gamename\Call of Duty 2\mapname\mp_bridge2\protocol\118\scr_friendlyfire\1\scr_killcam\1\shortversion\1.3\sv_allowAnonymous\0\sv_floodProtect\1\sv_hostname\Absolut-Normale-Spieler\sv_maxclients\28\sv_maxPing\200\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\1\sv_pure\1\sv_voice\0
061127 22:13:02 VERBOSE Queueing event Game Round Start <b3.game.Game object at 0xb7a9a22c>
061127 22:13:02 VERBOSE Parsing Event: Game Round Start: ConfigmanagerPlugin
061127 22:13:02 DEBUG ConfigmanagerPlugin: Type and Map Config: /home/ios/.cod2-28960/awe3b7/b3_tdm_mp_bridge2.cfg
061127 22:13:02 DEBUG ConfigmanagerPlugin: Gametype Config: /home/ios/.cod2-28960/awe3b7/b3_tdm.cfg
061127 22:13:02 DEBUG ConfigmanagerPlugin: Main Config: /home/ios/.cod2-28960/awe3b7/b3_main.cfg
061127 22:13:02 VERBOSE Parsing Event: Game Round Start: XlrstatsPlugin
061127 22:13:03 CONSOLE 23524:08 J;215231;8;^5[^9T^1P^3C^5]^9EN^1I^3OI
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb483d1ac>, Target None, Data None
061127 22:13:03 CONSOLE 23524:08 J;366076;3;dupke
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb482652c>, Target None, Data None
061127 22:13:03 CONSOLE 23524:08 J;151390;7;^1GluecksSchwein
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb48266ac>, Target None, Data None
061127 22:13:03 CONSOLE 23524:08 J;893474;1;Mading
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb4826d2c>, Target None, Data None
061127 22:13:03 CONSOLE 23524:08 J;210006;16;^5P^7ark^5B^7ank^5R^7owdy
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 CONSOLE 23524:08 J;862302;6;^9P^1A^3TE
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb483dc0c>, Target None, Data None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 CONSOLE 23524:08 J;268298;4;Blutwurst
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb482612c>, Target None, Data None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb68a0c8c>, Target None, Data None
061127 22:13:03 CONSOLE 23524:08 J;148327;0;Kellerkind
061127 22:13:03 VERBOSE Queueing event Client Join Team None
061127 22:13:03 VERBOSE Parsing Event: Client Join Team: XlrstatsPlugin
061127 22:13:03 DEBUG XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0xb4826ccc>, Target None, Data None
061127 22:13:04 VERBOSE RCON sending (127.0.0.1:28960) exec b3_tdm.cfg
Maybe the exec is too late, or the rcon too busy to take effect? I assume i should not use xrlstats and configmanager at same time  ::)
My  fast_restart time in Maprotationsmanager is 40sec.Would it be a difference to put configmanager priority up in b3.xml? Have tried to load it before rotation, chat and stats, but without success:

           <plugin name="configmanager" priority="13" config="@b3/extplugins/conf/configmanager.xml"/>
      <plugin name="rotationmanager" priority="14" config="@b3/extplugins/conf/rotationmanager.xml"/>
      <plugin name="chat" priority="17" config="@b3/extplugins/conf/plugin_chat.xml"/>
      <plugin name="spree" priority="18" config="@b3/extplugins/conf/plugin_spree.xml"/>
      <plugin name="xlrstats" priority="20" config="@b3/extplugins/conf/xlrstats.xml"/>

This does not happen often, so its not really a problem 4 me.
B3 CoDII:  82.98.201.199:28960 (Jenny)
B3 CoDIV: 82.98.201.199:28961 (Nadja)

Used Plugins:
Xlrstats, Echolon, Pubbans, Pingkicker, Rotationsmgr, Chatplugin, Poweradmin2&4, Spreemsg, Configmgr,  Clantag control

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: ConfigManager
« Reply #6 on: November 28, 2006, 07:54:10 PM »
The config in question was executed already in line 6 of your log-part. So the changes should have been noticable right after mapload.

The plugin was not specifically coded to execute only after a fast_restart, but a Game Start Event (EVT_GAME_ROUND_START) in general (so even without rotationmanager installed). It reloads again after a fast_restart because there is also a Game Start Event detected.

Am I missing the point here?

Offline Kellerkind

  • Jr. Member
  • **
  • Posts: 46
    • Internationaloldstars.de
Re: ConfigManager
« Reply #7 on: November 29, 2006, 12:16:06 PM »
The config in question was executed already in line 6 of your log-part. So the changes should have been noticable right after mapload.
for most changes i need a map_restart (ie no sniper, more nades ...) to take a effect.
The plugin was not specifically coded to execute only after a fast_restart, but a Game Start Event (EVT_GAME_ROUND_START) in general (so even without rotationmanager installed). It reloads again after a fast_restart because there is also a Game Start Event detected.
thats clear.
Am I missing the point here?
As described, i need the fast_restart for some changes does work. Don't know exact why, but sometimes the time between the first  Game Start Event, load new cfg and the second  Game Start Event is too short. Thats happen almost with much players (>20) online.
The last statement in my b3_$gametype.cfg is say "config for $gametype now loaded" So i know every time when it takes effect, and sometimes this is not in the 40sec restart frame.   ???

It works great for config changes which don't need a map restart. It works great with less than 20 Players on Server, or with few kill events between the fast_restart. So i assume some CoD rcon or B3 stress.
B3 CoDII:  82.98.201.199:28960 (Jenny)
B3 CoDIV: 82.98.201.199:28961 (Nadja)

Used Plugins:
Xlrstats, Echolon, Pubbans, Pingkicker, Rotationsmgr, Chatplugin, Poweradmin2&4, Spreemsg, Configmgr,  Clantag control

Offline feralboy

  • Newbie
  • *
  • Posts: 6
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #8 on: March 01, 2010, 04:20:50 PM »
I have what is hopefully a simple question:  is there a switch to indicate if the install is on Windows or UNIX?  I am running a B3 server on Windows (hosted, so I don't have direct access).  Config manager launches OK, but it is not running my cfg file.  It's a very simple file that has one command to set gravity (g_gravity 160).  This is for a URT installation.

Looking at the log, I see this section:  
100228 20:17:23   INFO   Could not find built in plugin configmanager, trying external plugin directories.
No module named configmanager
100228 20:17:23   BOT       ConfigmanagerPlugin: Loading config C:\UserFiles\lgserver\GameServers\TC44505143052273373400832\b3\extplugins\conf\configmanager.xml for ConfigmanagerPlugin
100228 20:17:23   VERBOSE   ConfigmanagerPlugin: Loading config
100228 20:17:23   VERBOSE   RCON sending (69.61.67.131:27960) fs_homepath
100228 20:17:23   DEBUG   Get cvar fs_homepath = ["fs_homepath" is:"C:\UserFiles\lgserver\GameServers\TC44624774266388161862077^7", the default]
100228 20:17:23   VERBOSE   RCON sending (69.61.67.131:27960) fs_game
100228 20:17:24   DEBUG   Get cvar fs_game = ["fs_game" is:"q3ut4^7", the default]
100228 20:17:24   DEBUG   ConfigmanagerPlugin: GameConfigPath: C:\UserFiles\lgserver\gameServers\TC44624774266388161862077/q3ut4/
100228 20:17:24   DEBUG   Register Event: Stop Process: ConfigmanagerPlugin
100228 20:17:24   DEBUG   Register Event: Program Exit: ConfigmanagerPlugin
100228 20:17:24   BOT       Plugin configmanager (1.0.0 - xlr8or) loaded

So it loads, but the GameConfigPath is not a valid windows path.  The slashes around "/q3ut4/" are facing the wrong way.  For windows it should be "\q3ut4\".  The first part of the path is OK which it gets from the fs_homepath and fs_game cvars, but the final part of the path is wrong. And I am wondering if this is why it is failing to load the "b3_main.cfg" file that I placed there -- it cannot find it.

I tried to edit the configmanager.py file and change this line:

    self._confpath += '/' + self._modpath + '/'
to this"    
    self._confpath += '\' + self._modpath + '\'

But that causes the following error:

100301 10:11:34   CRITICAL   Error loading plugin: unexpected character after line continuation character (configmanager.py, line 75)
Traceback (most recent call last):
  File "C:\GameInstalls\b3\b3\parser.py", line 437, in loadPlugins
    pluginModule = self.pluginImport(p)
  File "C:\GameInstalls\b3\b3\parser.py", line 503, in pluginImport
    return imp.load_module(name, fp, pathname, description)
  File "b3\extplugins\configmanager.py", line 75
     self._confpath += '\' + self._modpath + '\'
                                              
^
 SyntaxError: unexpected character after line continuation character    
    
I tried to change the enconding to ASCII, ANSI, UTF, etc... but it always throws the same error.  

I'm not sure what's going on here, but any help is appreciated.  Thanks.

« Last Edit: March 01, 2010, 04:23:13 PM by feralboy »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #9 on: March 01, 2010, 05:19:04 PM »
the backslash is an escaping character. If you want to put the backslash character in a string you have to double it
Code: [Select]
self._confpath += '\\' + self._modpath + '\\'

But I'm surprised you have to change the forwardslashes to backslashes as the python documentation states that forwardslashes works on all platforms in python code.
« Last Edit: March 01, 2010, 05:22:51 PM by Courgette »

Offline feralboy

  • Newbie
  • *
  • Posts: 6
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #10 on: March 01, 2010, 06:24:26 PM »
I don't code in python, but I do code for a living and I don't think the slashes here have anything to do with escaping a character. 

To me this looks like a string contatenation to build a fully qualified path to where the urban terror executable is located.  And it ends up building this path:  "C:\UserFiles\lgserver\gameServers\TC44624774266388161862077/q3ut4/" and assigning it to the variable "self._confpath" 

Later on in the python script, it sets "self._mainconfpath" to be the self._confpath variable plus the b3_main.cfg file.  So that becomes this:  "C:\UserFiles\lgserver\gameServers\TC44624774266388161862077/q3ut4/b3_main.cfg"

Finally, it calls to the OS to see if that file exists, and if it does then it executes the file.  That part is here:

    elif os.path.isfile(self._mainconfpath):       # b3_main.cfg
      self.console.write('exec b3_main.cfg')

So Python queries the OS (Windows) and asks if this file exists:  "C:\UserFiles\lgserver\gameServers\TC44624774266388161862077/q3ut4/b3_main.cfg" and the answer will always be no because that is not a valid windows path. 

So my question remains, how do I correct that path?
 

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #11 on: March 01, 2010, 08:55:36 PM »
I'm sorry you misunderstood my piece of advice. Maybe the following examples will illustrate better what I meant regarding the use of forward or backward slashes in python on a Windows OS.

Code: [Select]
>>> import os
>>> os.path.exists(r'c:\tmp\testdir\testfile.txt')
0: True
>>> os.path.exists(r'c:\tmp/testdir/testfile.txt')
1: True
>>> os.path.exists('c:/tmp/testdir/testfile.txt')
2: True
>>> os.path.exists(r'c:\tmp\testdir/testfile.txt')
3: True
>>> os.path.exists('c:\tmp\testdir/testfile.txt')
4: False
>>> os.path.exists('c:\\tmp\\testdir/testfile.txt')
5: True
>>>
Of course, these examples were run on Windows ;)

Also note the r'sometext' notation which is the python representation of a raw string. More on this : http://www.python.org/doc/2.5.2/ref/strings.html

Hope that helps
« Last Edit: March 01, 2010, 09:28:14 PM by Courgette »

Offline feralboy

  • Newbie
  • *
  • Posts: 6
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #12 on: March 02, 2010, 12:50:06 AM »
My problem seems to have been caused by a conflict with the PowerAdminURT plugin.  I removed that plugin and the ConfigManager sort of started to work.  The reason I say sort of, is because it would run the "b3_main.cfg" one time when I restarted the server, but it would not run after each map cycle (which is what I need to it to do).  

Here is where it runs:
Quote
100301 18:36:48   DEBUG   EVENT: OnWarmup
100301 18:36:58   VERBOSE   RCON sending (69.61.67.131:27960) exec b3_main.cfg
100301 18:36:58   DEBUG   ConfigmanagerPlugin: Executing C:\UserFiles\lgserver\GameServers\TC44624774266388161862077/q3ut4/b3_main.cfg
100301 18:37:00   VERBOSE   RCON sending (69.61.67.131:27960) status
100301 18:37:00   VERBOSE   StatusPlugin: Building XML status
100301 18:37:00   DEBUG   StatusPlugin: Writing XML status to C:\xampp\htdocs\lgserver\status.xml

Here are several map cycles.  It never runs again:
Code: [Select]
100301 18:45:13	DEBUG	TkPlugin: Map End: cutting all tk points in half
100301 18:45:13 VERBOSE Parsing Event: Game Exit: StatsPlugin
100301 18:45:13 DEBUG StatsPlugin: Map End: clearing stats
100301 18:45:13 CONSOLE 2:05 ------------------------------------------------------------
100301 18:45:13 VERBOSE Parsing Event: Game Exit: PingwatchPlugin
100301 18:45:14 DEBUG Log time reset 0
100301 18:45:14 CONSOLE 0:00 ------------------------------------------------------------
100301 18:45:14 CONSOLE 0:00 ClientConnect: 4
100301 18:45:14 DEBUG Client Connected - ready to parse Userinfoline
100301 18:45:14 CONSOLE 0:00 ClientUserinfo: 4 \ip\98.28.189.236:27960\name\FeralBoy\racered\2\raceblue\2\rate\8000\ut_timenudge\0\cg_rgb\0 0 0\cg_predictitems\0\cg_physics\1\gear\GeIARWA\cl_anonymous\0\sex\male\handicap\100\color2\5\color1\4\team_headmodel\*james\team_model\james\headmodel\sarge\model\sarge\snaps\20\teamtask\0\cl_guid\A2D1B3E1FA14DD0F6E693BEF93484970\weapmodes\00000110220000020002
100301 18:45:14 VERBOSE Parsed user info {'racered': '2', 'ip': '98.28.189.236', 'sex': 'male', 'rate': '8000', 'cg_predictitems': '0', 'headmodel': 'sarge', 'port': '27960', 'team_model': 'james', 'cl_anonymous': '0', 'weapmodes': '00000110220000020002', 'cl_guid': 'A2D1B3E1FA14DD0F6E693BEF93484970', 'snaps': '20', 'cg_rgb': '0 0 0', 'gear': 'GeIARWA', 'handicap': '100', 'team': -1, 'color1': '4', 'color2': '5', 'cg_physics': '1', 'teamtask': '0', 'name': 'FeralBoy', 'cid': '4', 'team_headmodel': '*james', 'ut_timenudge': '0', 'raceblue': '2', 'model': 'sarge'}
100301 18:45:14 VERBOSE 3 cid changed from 4 to 4
100301 18:45:14 CONSOLE 0:00 ClientUserinfoChanged: 4 n\FeralBoy\t\2\r\2\tl\0\f0\\f1\\f2\\a0\0\a1\0\a2\255
100301 18:45:14 VERBOSE Parsed user info {'name': 'FeralBoy', 'cid': '4', 'n': 'FeralBoy', 'a1': '0', 'a0': '0', 'tl': '0', 'r': '2', 't': '2', 'team': 3, 'a2': '255'}
100301 18:45:14 VERBOSE 3 cid changed from 4 to 4
100301 18:45:21 CONSOLE 0:08 ClientBegin: 4
100301 18:45:46 CONSOLE 0:33 ShutdownGame:
100301 18:45:46 DEBUG EVENT: OnShutdowngame
100301 18:45:46 VERBOSE Queueing event Game Exit None
100301 18:45:46 VERBOSE Parsing Event: Game Exit: TkPlugin
100301 18:45:46 DEBUG TkPlugin: Map End: cutting all tk points in half
100301 18:45:46 VERBOSE Parsing Event: Game Exit: StatsPlugin
100301 18:45:46 DEBUG StatsPlugin: Map End: clearing stats
100301 18:45:46 CONSOLE 0:33 ------------------------------------------------------------
100301 18:45:46 VERBOSE Parsing Event: Game Exit: PingwatchPlugin
100301 18:45:47 DEBUG Log time reset 0
100301 18:45:47 CONSOLE 0:00 ------------------------------------------------------------
100301 18:45:47 CONSOLE 0:00 Warmup:
100301 18:45:47 DEBUG EVENT: OnWarmup
100301 18:45:47 CONSOLE 0:00 ClientConnect: 4
100301 18:45:47 DEBUG Client Connected - ready to parse Userinfoline
100301 18:45:47 CONSOLE 0:00 ClientUserinfo: 4 \ip\98.28.189.236:27960\name\FeralBoy\racered\2\raceblue\2\rate\8000\ut_timenudge\0\cg_rgb\0 0 0\cg_predictitems\0\cg_physics\1\gear\GeIARWA\cl_anonymous\0\sex\male\handicap\100\color2\5\color1\4\team_headmodel\*james\team_model\james\headmodel\sarge\model\sarge\snaps\20\teamtask\0\cl_guid\A2D1B3E1FA14DD0F6E693BEF93484970\weapmodes\00000110220000020002
100301 18:45:47 VERBOSE Parsed user info {'racered': '2', 'ip': '98.28.189.236', 'sex': 'male', 'rate': '8000', 'cg_predictitems': '0', 'headmodel': 'sarge', 'port': '27960', 'team_model': 'james', 'cl_anonymous': '0', 'weapmodes': '00000110220000020002', 'cl_guid': 'A2D1B3E1FA14DD0F6E693BEF93484970', 'snaps': '20', 'cg_rgb': '0 0 0', 'gear': 'GeIARWA', 'handicap': '100', 'team': -1, 'color1': '4', 'color2': '5', 'cg_physics': '1', 'teamtask': '0', 'name': 'FeralBoy', 'cid': '4', 'team_headmodel': '*james', 'ut_timenudge': '0', 'raceblue': '2', 'model': 'sarge'}
100301 18:45:47 VERBOSE 3 cid changed from 4 to 4
100301 18:45:47 CONSOLE 0:00 ClientUserinfoChanged: 4 n\FeralBoy\t\2\r\2\tl\0\f0\\f1\\f2\\a0\0\a1\0\a2\255
100301 18:45:47 VERBOSE Parsed user info {'name': 'FeralBoy', 'cid': '4', 'n': 'FeralBoy', 'a1': '0', 'a0': '0', 'tl': '0', 'r': '2', 't': '2', 'team': 3, 'a2': '255'}
100301 18:45:47 VERBOSE 3 cid changed from 4 to 4
100301 18:45:55 CONSOLE 0:09 ClientBegin: 4
100301 18:46:00 VERBOSE RCON sending (69.61.67.131:27960) status
100301 18:46:00 VERBOSE RCON sending (69.61.67.131:27960) say ^0(^2b3^0)^7: ^2Do not stare directly at b3
100301 18:46:00 VERBOSE StatusPlugin: Building XML status
100301 18:46:00 DEBUG StatusPlugin: Writing XML status to C:\xampp\htdocs\lgserver\status.xml
100301 18:46:21 CONSOLE 0:35 ClientDisconnect: 4
100301 18:46:21 VERBOSE Queueing event Client Disconnect 4
100301 18:46:21 VERBOSE Parsing Event: Client Disconnect: TkPlugin

Any help appreciated.

« Last Edit: March 02, 2010, 01:32:13 AM by Courgette »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #13 on: March 02, 2010, 01:44:20 AM »
this plugin listens to EVT_GAME_ROUND_START events.
This B3 event is fired whenever a "InitRound:" line appears on the urbanterror log file.

From what I read in your b3 log, there is no such event fired, neither any "InitRound" line read from your game log (see CONSOLE lines in b3.log).

I see two candidate explanations to such a situation (which I've never witnessed on a urban terror server before) :
 * you suffer from a more general quake3 engine bug that appears whenever the size of a "InitRound" line goes over 1024 bytes (missing a end-of-line character and hence not being parsed correctly by B3)
 * you run a custom version of the ioUrTded server which does not write InitRound lines to the game log file

Can you please describe better your case :
 * are you running a Q3 server with urt mod ?
 * are you running a dedicated ioUrTded.exe server ?
 * are you spawning a server from the ioUrbanterror.exe client ?
 * what exact version of urban terror server are you using ?
 * what patch have you applied (usually people have the callvote exploit patch applied)
 * provide a extract of your game log where we can see at least a new round happening (please attached the text file to preserve end-of-line as they actually are in your gamelog file, copy/pasting the log in a forum post will mess them up)
 * also provide a complete b3.log showing the bot starting and a few game rounds

Please be as precise as you can. From what you provided so far, we can only guess what might have happened on your side.
« Last Edit: March 02, 2010, 01:50:32 AM by Courgette »

Offline feralboy

  • Newbie
  • *
  • Posts: 6
Re: ConfigManager [CoD|CoD:UO|CoD2|UrT|WoP]
« Reply #14 on: March 02, 2010, 02:26:12 AM »
I have attached an excerpt of the games.log file and the full b3.log file.  I noticed the InitRound in the b3.log file and when I look at the games.log, I only see the InitRound called during the server restart, but I see InitGame called everytime I cycle the map. 

As far as your other questions go, it should be a "standard" windows server running the dedicated ioUrtDed executable.  It's hosted at a third party and that's what I'm paying for, so I hope that's what it is.  I don't know if the voting exploit is plugged or not (I thought that was only for Unix, in which case that would be a no since this is Windows), but the executable size is 854,590 and the g_modversion cvar says 4.1. 

I appreciate all your help on this. 

[attachment deleted by maintenance - older than 60 days]

 


Rate this page +1 at Google Search

anything