Renegade Public Forums
C&C: Renegade -- Dead since 2012!™
Home » Renegade Discussions » Tiberian Technologies Forum » BRenBot 1.54.1
BRenBot 1.54.1 [message #487171] Sat, 12 April 2014 10:40 Go to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: *range86-182.btcentralplus.com
A compiled copy of BRenBot 1.54.1 is attached to this post for use with servers running SSGM 4.0 and newer. On top of the changes already posted for 4.1 (see this topic) this version contains the following changes;



GameSpy update
As you're probably already aware if you follow this topic the GSA master servers will be shut down soon. I was asked to support broadcasting to multiple master servers in the interim whilst servers switch over, which is the main driver for this update.

Rather than implement a quick band-aid fix in the bot I've pulled GSA out of the core codebase and made it a plugin instead, retaining all of the same features you're used to and adding several new ones at the same time.

The new plugin supports broadcasting to as many master servers as you want, simply list each server in plugins/gamespy.xml and it will broadcast to each of them.

In addition I rewrote the handling for custom server info such that you can now define your own Key=Value pairs in the config XML rather than being limited to the pre-provided set of Website, IRC, Teamspeak and Ventrillo. Some examples are provided in the default config XML, although they are commented out until you choose to use them.

Note: For those updating an existing installation of BRenBot be sure to fill in the config settings in plugins/gamespy.xml. All GSA related settings in brenbot.cfg are now redundant and can be deleted after copying the relevant values into the plugin configuration.

Note: New plugins are not loaded automatically by BRenBot, use !plugins to see which plugins are loaded and !plugin_load or !plugin_unload to load and unload plugins respectively.




Bug Fixes

  • Vehicle purchase IRC message did not respect teams.cfg settings
  • Vote command always counted zero total votes in some cases





Code Improvements
A new fds module has been introduced to provide a central place for checking which functionality is supported on any given server or client based on version checking. Eventually this will be the go-to library for sending any commands to the FDS and will replace most direct usages of RenRemCMD elsewhere in the code.

This module is being written with proper function prototypes and is designed to support transmitting commands over the TCP SSGM channel in a future update.




Bug Reporting
Please report any bugs you might find or submit feature requests on the BRenBot Trello board by commenting on the cards under "BRenBot 1.54.1".




Acknowledgements
Thanks to Ethenal for contributing some bug fixes to the BRenBot SVN.

[Updated on: Sun, 13 April 2014 06:37]


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487301] Mon, 21 April 2014 16:34 Go to previous messageGo to next message
OuTSMoKE  is currently offline OuTSMoKE  
Messages: 52
Registered: April 2009
Location: Chicago, IL
Recruit

From: *hsd1.il.comcast.net
!poll gameover works, but !poll nextmap isn't.

Here's copy/paste:

[6:27pm] <&KamServ> Host: [BR] Voting period over, tallying votes... GDI; 1 Yes, 0 NoNod; 0 Yes, 0 No
[6:27pm] <&KamServ> Host: [BR] More yes votes than no votes. VOTE PASSED.
[6:27pm] <&KamServ> Host: [BR] Error setting next map to Quick_Draw.

Edit:

Also, the same problem as last with output for team chat. No space after [Team]

[6:37pm] <&KamServ> [Team]Kirill: !rt

I can fix that with Unk's help though for mine.

=================================

EDIT: Just noticed output line on vote totals is doubled. Bolded the line I'm talking about.

[11:53am] <03&KamServ> 14Host: [BR] Voting period over, tallying votes... GDI; 1 Yes, 0 NoNod; 0 Yes, 0 No

[Updated on: Sat, 26 April 2014 14:39]


http://i237.photobucket.com/albums/ff42/BTNHBoardOuTSMoKE/CNCSig2.jpg
Kambot NewMaps 4.1 Marathon Server Owner


Re: BRenBot 1.54.1 [message #487396] Sun, 27 April 2014 22:08 Go to previous messageGo to next message
Xpert  is currently offline Xpert  
Messages: 1587
Registered: December 2005
Location: New York City
General (1 Star)
From: *res.bhn.net
OuTSMoKE wrote on Mon, 21 April 2014 19:34



Also, the same problem as last with output for team chat. No space after [Team]

[6:37pm] <&KamServ> [Team]Kirill: !rt




I thought Ethenal had that fixed through the SVN. Same for the crate messages not having a space, or maybe he just did it on Jelly.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.

Founder of Take The Point Gaming - http://www.ttp-gaming.net
Re: BRenBot 1.54.1 [message #487434] Wed, 30 April 2014 10:35 Go to previous messageGo to next message
OuTSMoKE  is currently offline OuTSMoKE  
Messages: 52
Registered: April 2009
Location: Chicago, IL
Recruit

From: 67.173.88*
Xpert wrote on Sun, 27 April 2014 22:08

OuTSMoKE wrote on Mon, 21 April 2014 19:34



Also, the same problem as last with output for team chat. No space after [Team]

[6:37pm] <&KamServ> [Team]Kirill: !rt




I thought Ethenal had that fixed through the SVN. Same for the crate messages not having a space, or maybe he just did it on Jelly.


Just looked, yes crate messages are fucked up too.

[12:11pm] <&KamServ> [Crate]:scholte got the Overhaul crate ( Vehicle )

There's a : instead of a space. I know last bren had same issues, we manually fixed with pearl, unknown helped me. If we get around to it soon and no one has posted here again, I'll drop a link to a new .exe in this thread. Smile


http://i237.photobucket.com/albums/ff42/BTNHBoardOuTSMoKE/CNCSig2.jpg
Kambot NewMaps 4.1 Marathon Server Owner


Re: BRenBot 1.54.1 [message #487480] Sat, 03 May 2014 16:34 Go to previous messageGo to next message
OuTSMoKE  is currently offline OuTSMoKE  
Messages: 52
Registered: April 2009
Location: Chicago, IL
Recruit

From: *hsd1.il.comcast.net
Got the outputs updated for anyone that wanted them fixed. New brenbot.exe (rar'd) attached to this post.

Changes: Fixed spacing issues for Team chat and crate messages.


Team Chat:

Old:
[11:36am] <&KamServ> [Team]Imperator: type !hp 100 or !ap 100

New:
[6:30pm] <&KamServ> [Team] OuTSMoKE: team chat test


Crate IRC Output:

Old:
[2:53pm] <&KamServ> [Crate]:Wanja got the Demolition Kit crate ( Infantry )

New:
[6:32pm] <&KamServ> [Crate] OuTSMoKE got the Second Wind crate ( Infantry )

  • Attachment: brenbot.rar
    (Size: 7.46MB, Downloaded 98 time(s))


http://i237.photobucket.com/albums/ff42/BTNHBoardOuTSMoKE/CNCSig2.jpg
Kambot NewMaps 4.1 Marathon Server Owner


Re: BRenBot 1.54.1 [message #487586] Wed, 14 May 2014 06:02 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *mfs.uswest.net
So I downloaded this yesterday in hopes of getting my server to both show up on WOL and GSA, however I have yet to see it show up on GSA (or to be more specific RenList beings GSA doesn't show any games on my computer).

I tried it stock 1.54.1 and I also dug around and found some 1.53 instructions and tried adding
Generate_Gamespy_Queries = 1
GameSpyQueryPort = 23500
Broadcast_Server_To_Gamespy = 1
GameSpy_IP = 123.123.123.123

to my config.xml (with GameSpy_IP being the IP of my server).

I also tried opening the port 4849 on my router just in case it was another port forwarding issue (I recall reading somewhere that the port for some part of the gamespy system should be one more than the port for RenFDS).

Any ideas?


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487587] Wed, 14 May 2014 06:15 Go to previous messageGo to next message
iRANian  is currently offline iRANian  
Messages: 4293
Registered: April 2011
General (4 Stars)
From: 141.136.120*
See op

GameSpy update
As you're probably already aware if you follow this topic the GSA master servers will be shut down soon. I was asked to support broadcasting to multiple master servers in the interim whilst servers switch over, which is the main driver for this update.

Rather than implement a quick band-aid fix in the bot I've pulled GSA out of the core codebase and made it a plugin instead, retaining all of the same features you're used to and adding several new ones at the same time.

The new plugin supports broadcasting to as many master servers as you want, simply list each server in plugins/gamespy.xml and it will broadcast to each of them.

In addition I rewrote the handling for custom server info such that you can now define your own Key=Value pairs in the config XML rather than being limited to the pre-provided set of Website, IRC, Teamspeak and Ventrillo. Some examples are provided in the default config XML, although they are commented out until you choose to use them.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: BRenBot 1.54.1 [message #487588] Wed, 14 May 2014 06:30 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: 81.145.141*
Also be sure to actually load the GSA plugin once you have configured it;

danpaul88 wrote on Sat, 12 April 2014 18:40


Note: New plugins are not loaded automatically by BRenBot, use !plugins to see which plugins are loaded and !plugin_load or !plugin_unload to load and unload plugins respectively.


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487589] Wed, 14 May 2014 08:04 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *mfs.uswest.net
iRANian wrote on Wed, 14 May 2014 07:15

See op

GameSpy update
As you're probably already aware if you follow this topic the GSA master servers will be shut down soon. I was asked to support broadcasting to multiple master servers in the interim whilst servers switch over, which is the main driver for this update.

Rather than implement a quick band-aid fix in the bot I've pulled GSA out of the core codebase and made it a plugin instead, retaining all of the same features you're used to and adding several new ones at the same time.

The new plugin supports broadcasting to as many master servers as you want, simply list each server in plugins/gamespy.xml and it will broadcast to each of them.

In addition I rewrote the handling for custom server info such that you can now define your own Key=Value pairs in the config XML rather than being limited to the pre-provided set of Website, IRC, Teamspeak and Ventrillo. Some examples are provided in the default config XML, although they are commented out until you choose to use them.

I'm not quite sure how I managed to download it and completely over look the bold orange "Gamespy Update" text, it was late last night, that's going to be my excuse ;p

danpaul88 wrote on Wed, 14 May 2014 07:30

Also be sure to actually load the GSA plugin once you have configured it;

danpaul88 wrote on Sat, 12 April 2014 18:40


Note: New plugins are not loaded automatically by BRenBot, use !plugins to see which plugins are loaded and !plugin_load or !plugin_unload to load and unload plugins respectively.



I'll give this a shot when I get home, I'm sure its the reason though! I felt like it would have to do with a plugin not being loaded.


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487590] Wed, 14 May 2014 08:15 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: 81.145.141*
I'm actually in the process of finalising a 1.54.2 build at the moment to resolve an issue reported by OuTSMoKE in relation to the display of team messages in the public IRC channel. It also includes a few other core improvements to improve performance and code readability in the renlog parsing code (which has remained essentially unchanged since I took over BRenBot, until now)


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487591] Wed, 14 May 2014 08:42 Go to previous messageGo to next message
Ethenal  is currently offline Ethenal  
Messages: 2532
Registered: January 2007
Location: US of A
General (2 Stars)

From: *static.leds.al.charter.com
Yeah the new BR plugin system requires you to do !plugin_load once the bot is running to load any plugins, but once they're successfully loaded they'll be loaded every time the bot starts in the future (that is, until you type !plugin_unload).


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: BRenBot 1.54.1 [message #487592] Wed, 14 May 2014 08:53 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: 81.145.141*
I keep meaning to add a config option to automatically load new plugins it hasn't seen before (since you probably added them to the folder because you wanted them) but haven't quite got around to it yet. Partly because I bundle some plugins with the bot and don't necessarily want to load them by default...


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487593] Wed, 14 May 2014 13:28 Go to previous messageGo to next message
ExEric3  is currently offline ExEric3  
Messages: 728
Registered: February 2005
Location: Slovakia
Colonel

From: *orange.sk
And dan try look on that banlist.
Re: BRenBot 1.54.1 [message #487594] Wed, 14 May 2014 14:20 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: *range86-157.btcentralplus.com
what ban list?

EDIT: Oh, banlist.tsv... not sure that'll make it into this one, next one perhaps.

[Updated on: Wed, 14 May 2014 14:21]


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487595] Wed, 14 May 2014 14:40 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *midco.net
Okay my next problem has to do with the location of the log files, original FDS dumped them right into the server folder, but my 4.1 FDS is putting them in Server/Renegade/FDS/ which leaves brenbot trying over and over to find them (I tried creating paths.ini and throwing the dir in for the logs but that didn't do the trick, probably because I don't know the syntax).

I also just tried changing the location for it in brenbot.cfg via the FDSLogFilePath, but then it just doesn't start at all (gives an error about not being able to find server.ini).


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487596] Wed, 14 May 2014 15:00 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: *range86-157.btcentralplus.com
BRenBot doesn't even read the logfiles under SSGM 4.x... and it uses the default paths.ini settings if you don't have a copy of it in your data folder, so no need to create that.


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487597] Wed, 14 May 2014 15:05 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *midco.net
I'm not running ssgm, with 120+ ai running around the map is almost too much for it as is without SSGM trying to log object data.

Also, it seems my Gamespy plugin is using my RemoteAdminPort for my server's port instead of the Port or Gamespy port (they were 4848, and my RemoteAdminPort was 4849, however in the server listing for GSA it was showing my server with 4849, and I couldn't join until I changed the RemoteAdminPort to 4848, after which it correctly displayed in the listing).

[Updated on: Wed, 14 May 2014 15:07]


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487598] Wed, 14 May 2014 15:20 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: *range86-157.btcentralplus.com
The default UDP query port in BRenBot for GSA clients is 23500 in plugins/gamespy.xml and it reads the game port from server.ini

if ($_ =~ m/Port\s*=\s*(\d+)/)
    {
      $server_gameport = $1;
    }


Although it occurs to me that if RemoteAdminPort= is below Port= in your server config that regex would technically match that too... should probably fix that ^^


EDIT: Fixed for 1.54.2

[Updated on: Wed, 14 May 2014 15:25]


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487599] Wed, 14 May 2014 15:28 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *midco.net
danpaul88 wrote on Wed, 14 May 2014 16:20

The default UDP query port in BRenBot for GSA clients is 23500 in plugins/gamespy.xml and it reads the game port from server.ini

if ($_ =~ m/Port\s*=\s*(\d+)/)
    {
      $server_gameport = $1;
    }


Although it occurs to me that if RemoteAdminPort= is below Port= in your server config that regex would technically match that too... should probably fix that ^^


EDIT: Fixed for 1.54.2


I'll just throw remoteAdminPort above port for now and see if that does the trick.


As for the stock Ren logging path, any way I can make it work or do I have to bite the bullet and put the extra bloat (bloat being unneeded, not disliked) of SSGM on my server?


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487600] Wed, 14 May 2014 16:34 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: *range86-157.btcentralplus.com
Post the console output into here showing where it is looking for the renlog files... it's a long time since I've had a server that isn't running SSGM so I don't test that code very often.


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487601] Wed, 14 May 2014 17:14 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *midco.net
index.php?t=getfile&id=14944&private=0

  • Attachment: sdf.png
    (Size: 841.47KB, Downloaded 532 time(s))


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487602] Thu, 15 May 2014 02:22 Go to previous messageGo to next message
danpaul88  is currently offline danpaul88  
Messages: 5792
Registered: June 2004
Location: England
General (5 Stars)
From: 81.145.141*
Ah, that explains it... without SSGM settings being present it's not applying any paths.ini logic (you'd see a message indicating it had if it was), obviously the code that checks for paths.ini is looking for SSGM version >= 4.0 and not considering the possibility of having TT >= 4.0 without SSGM itself. I'll update that tonight when I get home.


http://steamsignature.com/card/1/76561197975867233.png
Re: BRenBot 1.54.1 [message #487604] Thu, 15 May 2014 18:31 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *midco.net
Cool cool, guess I don't need to rush you too much, for the most part it seemed to run okay last night with SSGM on the server, but good to get all these bugs worked out all the same Very Happy


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487658] Tue, 20 May 2014 08:46 Go to previous messageGo to next message
Jerad2142  is currently offline Jerad2142  
Messages: 3756
Registered: July 2006
Location: USA
General (3 Stars)
From: *mfs.uswest.net
I think a cool feature would be a option that logs player chat to a new file. This would be nice because now the renlog files are flooded with:
*Players in-game*
Westwood online mode active since *day* - *time*
Gameplay in progress
    Map : *map name*
   Time : *time*
    Fps : *fps*
    GDI : #/# players       # points
    NOD : #/# players       # points


which makes it hard to read through the chat logs or find chat, or just to see if any players joined while the server owner isn't around.


Head Level editor and coder of ECW/Rp2. #2142::COOL#
Re: BRenBot 1.54.1 [message #487663] Tue, 20 May 2014 15:12 Go to previous message
Wyld1USA  is currently offline Wyld1USA  
Messages: 395
Registered: January 2004
Commander
From: *escu.org
Thank you for all your work on this Dan. Much appreciated.


http://i66.tinypic.com/24ca5ur.jpg
"Who cares what people think, it is what you know." "Feel the Love."
~Original Demo Player~
Previous Topic:nulling damage script?
Next Topic:The future of scripts post-4.1
Goto Forum:
  


Current Time: Wed Jan 16 00:50:47 MST 2019
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7RC2.
Copyright ©2001-2007 FUD Forum Bulletin Board Software