Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » Brenbot Questions
Brenbot Questions [message #377681] Fri, 27 March 2009 14:40 Go to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Instead of using a irc hook in scripts.dll or a plugin could i just make a plugin for brenbot to display msg that are shown in the fds.

so like whould i do smothing like

if ( $line =~ "some text in the fds" )
	{
		brIRC::ircmsg( "$line", "A" );


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Fri, 24 April 2009 16:37]

Report message to a moderator

Re: Show Fds msgs in irc [message #377683 is a reply to message #377681] Fri, 27 March 2009 15:01 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
You mean to show every line of text from the FDS console? The bot would be zlined for spamming pretty quickly if it did that.... but yes, it's easy enough to do, just use the renlog hooks and set the regex to match any string.

http://steamsignature.com/card/1/76561197975867233.png
Re: Show Fds msgs in irc [message #377883 is a reply to message #377681] Sun, 29 March 2009 12:44 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Yea that worked.

Another Question i want enable !vote gameover after xx amount of time how would i do this ?

Question #2 can you attach ren scripts with brenbot im guessing you cant use renrem because there is no hook to grabe console input or is there.


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Sun, 29 March 2009 13:23]

Report message to a moderator

Re: Show Fds msgs in irc [message #377907 is a reply to message #377681] Sun, 29 March 2009 14:44 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
1) Voting_Allow_Gameover to 0 in brenbot.cfg (to disable it). Next create a plugin with a function for the mapload event (and specify in the XML that you want to recieve the event) which, when called, sets $brconfig::config_voting_allow_gameover to 0, and then triggers a function after a delay ( $poe_kernel->delay ( functionToCall, int(time())+delayInSeconds ); ). That function should set $brconfig::config_voting_allow_gameover to 1 to enable gameover votes from that point onwards.

NB: This is not a perfect way of doing it, and will not work well if a game ends before delayInSeconds seconds, as the delayed function will still trigger as normal, and it won't enable gameover votes until the next map after the bot has loaded. However, with some creative thinking you can work around this.

I should also mention that setting brconfig values through plugins is not offically supported through the plugin interface, so there is no guaruntee that variable names will not change in future and break your plugin until it is updated.


2) No, you can't directly attach scripts using BRenBot unless you implement your own custom console commands through scripts.dll.


http://steamsignature.com/card/1/76561197975867233.png
Re: Show Fds msgs in irc [message #377941 is a reply to message #377681] Sun, 29 March 2009 21:54 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
I looked through the ssgm source and couldn't find any of the new console commands . I want to add new console commands in a plugin. Could you show me an example ?

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Show Fds msgs in irc [message #377947 is a reply to message #377681] Sun, 29 March 2009 23:53 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I don't know how to add console commands via scripts.dll, but there are lots of topics in the mod forums which discuss it, so have a look around, I am sure you will find something.

http://steamsignature.com/card/1/76561197975867233.png
Re: Show Fds msgs in irc [message #378731 is a reply to message #377947] Sat, 04 April 2009 10:09 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
danpaul88 wrote on Sun, 29 March 2009 23:53

I don't know how to add console commands via scripts.dll, but there are lots of topics in the mod forums which discuss it, so have a look around, I am sure you will find something.


Minor bump, but meh. I haven't visited these forums in about a week-ish.


Anyway,

AFAIK, the console command assembly is closed source. I may bring my old plugin back to life and see if I can release it (source would be excluded due to the console commands in it -- or I may just exclude the console commands from the source... if released that is; compiled binary would include the console commands, but source wouldn't.) Ideas, ideas... I'll talk to the server owner I made my plugin for and see if I can release the plugin.
Re: Show Fds msgs in irc [message #379198 is a reply to message #377681] Tue, 07 April 2009 21:37 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
I did learn how to make console commands but what is this plugin you are talking about.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Show Fds msgs in irc [message #382423 is a reply to message #377681] Fri, 24 April 2009 16:37 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Bump

Another Question

would it be possible to show the spectate console command in brenbot.dll not the console command itself but the spectate script


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Fri, 24 April 2009 16:37]

Report message to a moderator

Previous Topic: BRenBot Ping Timeout
Next Topic: 2 BRenBot Questions
Goto Forum:
  


Current Time: Mon May 06 03:46:36 MST 2024

Total time taken to generate the page: 0.00785 seconds