Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » !spectate <player> and BRenBot.
!spectate <player> and BRenBot. [message #385779] Wed, 13 May 2009 00:19 Go to next message
HanGul815 is currently offline  HanGul815
Messages: 13
Registered: May 2009
Location: South Korea, Republic
Karma: 0
Recruit

Hi guys. This is my first topic here. Big Grin

I installed BrenBot 1.5.2 yesterday but didn't find !spectate command.

Does BRenBot have it? If not, how can I use it?

I really wanna use !spectate. Tell Me


[Updated on: Wed, 13 May 2009 00:22]

Report message to a moderator

Re: !spectate <player> and BRenBot. [message #385829 is a reply to message #385779] Wed, 13 May 2009 09:35 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Funnily enough someone asked me the same thing a few days ago. I wasn't aware there WAS a spectate command, but based on the console command info he gave me I made this for him;


<EDIT: Attachment removed, !spectate command should be in brenbot.dll and it's associated plugin>


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Thu, 14 May 2009 10:08]

Report message to a moderator

Re: !spectate <player> and BRenBot. [message #385882 is a reply to message #385829] Wed, 13 May 2009 13:51 Go to previous messageGo to next message
Pyr0man1c is currently offline  Pyr0man1c
Messages: 186
Registered: April 2009
Karma: 0
Recruit
danpaul88 wrote on Wed, 13 May 2009 11:35

Funnily enough someone asked me the same thing a few days ago. I wasn't aware there WAS a spectate command, but based on the console command info he gave me I made this for him;

You wern't?Just wondering how did it get there then?


"Sapere Aude- Dare to be wise"
AmunRa

and its all this "drama" that will one day end renegade...

Quotes
Re: !spectate <player> and BRenBot. [message #385883 is a reply to message #385779] Wed, 13 May 2009 14:18 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
I thought brenbot.dll added the spectate functionality

-Jelly Administrator
-Exodus Administrator
Re: !spectate <player> and BRenBot. [message #385889 is a reply to message #385779] Wed, 13 May 2009 15:26 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Perhaps it did, I didn't write BRenBot.dll, I just requested a lot of the stuff that went into it. Anyway, if it's in BRenBot.dll then I would assume the plugin that comes with the dll would have support for that command?

http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Wed, 13 May 2009 15:27]

Report message to a moderator

Re: !spectate <player> and BRenBot. [message #385904 is a reply to message #385889] Wed, 13 May 2009 18:35 Go to previous messageGo to next message
HanGul815 is currently offline  HanGul815
Messages: 13
Registered: May 2009
Location: South Korea, Republic
Karma: 0
Recruit

thx for helping. Big Grin
Re: !spectate <player> and BRenBot. [message #385908 is a reply to message #385889] Wed, 13 May 2009 20:02 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
danpaul88 wrote on Wed, 13 May 2009 15:26

Perhaps it did, I didn't write BRenBot.dll, I just requested a lot of the stuff that went into it. Anyway, if it's in BRenBot.dll then I would assume the plugin that comes with the dll would have support for that command?


Aye it does.
Re: !spectate <player> and BRenBot. [message #385920 is a reply to message #385779] Wed, 13 May 2009 23:56 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
So why are people asking for a seperate plugin to do what that plugin already does? Huh

http://steamsignature.com/card/1/76561197975867233.png
Re: !spectate <player> and BRenBot. [message #385923 is a reply to message #385779] Thu, 14 May 2009 00:50 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
I just double checked and it's there.. I have no idea why xD

-Jelly Administrator
-Exodus Administrator
Re: !spectate <player> and BRenBot. [message #385948 is a reply to message #385923] Thu, 14 May 2009 06:49 Go to previous messageGo to next message
HanGul815 is currently offline  HanGul815
Messages: 13
Registered: May 2009
Location: South Korea, Republic
Karma: 0
Recruit

hmmmmm

I tried to use !spectate <player> in irc and......

http://img528.imageshack.us/img528/9782/48845349.png
http://img25.imageshack.us/img25/4042/47089767.png

any ideas :s
Re: !spectate <player> and BRenBot. [message #385954 is a reply to message #385779] Thu, 14 May 2009 08:19 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Looks like the spectate command in the BRenBot plugin is using the wrong console syntax... Huh

The one I gave you uses r_spec, which I assume is the one from BRenBot.dll


http://steamsignature.com/card/1/76561197975867233.png
Re: !spectate <player> and BRenBot. [message #385966 is a reply to message #385954] Thu, 14 May 2009 09:43 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
danpaul88 wrote on Thu, 14 May 2009 10:19

Looks like the spectate command in the BRenBot plugin is using the wrong console syntax... Huh

The one I gave you uses r_spec, which I assume is the one from BRenBot.dll


erm, danpaul, do you mind if I ask who asked you for this plugin to be written? Any console command prefixed by r_ are the ones I wrote for my private .dll for Jelly.. it concerns me that someone else has them :\

BR.dll uses the command 'spectate'


-Jelly Administrator
-Exodus Administrator

[Updated on: Thu, 14 May 2009 09:44]

Report message to a moderator

Re: !spectate <player> and BRenBot. [message #385969 is a reply to message #385779] Thu, 14 May 2009 10:10 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Maybe Resurrection uses r_ too? I know he has that on his server. Feel free to contact me via MSN / Xfire / whatever if you wish.

http://steamsignature.com/card/1/76561197975867233.png
Re: !spectate <player> and BRenBot. [message #385981 is a reply to message #385969] Thu, 14 May 2009 11:06 Go to previous messageGo to next message
HanGul815 is currently offline  HanGul815
Messages: 13
Registered: May 2009
Location: South Korea, Republic
Karma: 0
Recruit

ok I run !spectate what u loaded and here is the result.

http://img523.imageshack.us/img523/7080/55070222.png


this is spectate.pm what u loaded
Quote:

#
# Spectate plugin for BRenBot 1.51 by Daniel Paul
#
# Version 1.00
#
package spectate;

use POE;
use plugin;

# define additional events in the POE session

our %additional_events =
(
# !command functions
"spectate" => "spectate"
);

# BRenBot automatically sets the plugin name
our $plugin_name;

# BRenBot automatically imports the plugin's config (from the xml file) into %config
our %config;

our $currentVersion = 1.00;


########### Functions for !commands

# Set spectate mode on a player
sub spectate
{
my %args = %{@_[ ARG0 ]};

# Check they supplied a name or ID to search for, if they have not bail out
if ( !$args{arg1} )
{
my $syntaxvalue = $args{settings}->{syntax}->{value};
$message = "Usage: $syntaxvalue";
return;
}

# Try to find the player by name or ID
my ( $result, %player ) = plugin::getPlayerData( $args{'arg1'} );
if ( $result == 1 )
{
# Player found, spectate them
plugin::RenRemCMD("r_spec $player{id}");
plugin::ircmsg ("10[Spectate] Player $player{name} is now in spectate mode.",'A');
}
else
{
if ( $args{nicktype} == 1 ) { plugin::ircmsg ( "Player $args{arg1} not found ingame", $args{'ircChannelCode'} ); }
else { plugin::pagePlayer ( $args{'nick'}, "Player $args{arg1} not found ingame" ); }
}
}


########### Event handlers

sub start
{
plugin::set_global ( "version_plugin_spectate", $currentVersion );
}


sub stop
{
# Nothing to do

}


sub command
{
my $kernel = $_[KERNEL];
my %args = %{@_[ ARG0 ]};
$kernel->yield( $args{'command'} => \%args);
}


# Return true or the bot will not work properly...
1;



and this is spectate.xml
Quote:

<?xml version="1.0" ?>

<plugin name="spectate">
<command name="spectate">
<permission level="2"/>
<syntax value="!spectate &lt;player&gt;"/>
<help value="Sets the specified player to spectate mode."/>
<enabled value="1"/>
<hideInHelp value="1"/>
<group>irc</group>
</command>
<events>
<event>command</event>
</events>
<config>
<!-- No config settings for spectate plugin... -->
</config>
</plugin>



I'm a n00b a brenbot and think I did something wrong but don't know what it is. plz help me. Big Grin
Re: !spectate <player> and BRenBot. [message #385986 is a reply to message #385779] Thu, 14 May 2009 11:37 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Hangul, type help in the FDS and take a screenshot and upload it here.

Edit: danpaul I just remembered, I did create a spectate.dll SSGM plugin for someone which used the syntax r_spec as well, which is where this probably came from. No worries now. Also afaik, RR uses 'spectate' as well.


-Jelly Administrator
-Exodus Administrator

[Updated on: Thu, 14 May 2009 11:39]

Report message to a moderator

Re: !spectate <player> and BRenBot. [message #386084 is a reply to message #385986] Thu, 14 May 2009 20:30 Go to previous messageGo to next message
HanGul815 is currently offline  HanGul815
Messages: 13
Registered: May 2009
Location: South Korea, Republic
Karma: 0
Recruit

thx for helping, raven. Big Grin

Here are my ss

http://img193.imageshack.us/img193/7074/92430985.png
http://img194.imageshack.us/img194/3802/77825249.png

Re: !spectate <player> and BRenBot. [message #386086 is a reply to message #385779] Thu, 14 May 2009 20:58 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Look in your root FDS directory. See if ssgm.ini is there. If it is, go to the bottom paragraph

Try installing SSGM (Download for it can be found here)

Once it's installed, open ssgm.ini and find the [Plugins] Section. Under that, add 01=BRenBot and reboot your fds. Type 'help' into the FDS again and look for spectate in the list.


-Jelly Administrator
-Exodus Administrator

[Updated on: Thu, 14 May 2009 21:00]

Report message to a moderator

Re: !spectate <player> and BRenBot. [message #386088 is a reply to message #386086] Thu, 14 May 2009 21:56 Go to previous messageGo to next message
HanGul815 is currently offline  HanGul815
Messages: 13
Registered: May 2009
Location: South Korea, Republic
Karma: 0
Recruit

ahhhhhhhhhhhhhhh

It works very fine.

thx a lot, raven!!!!! In Love In Love
Re: !spectate <player> and BRenBot. [message #386227 is a reply to message #385779] Fri, 15 May 2009 10:20 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Glad I could help. Rocked Over

-Jelly Administrator
-Exodus Administrator
Re: !spectate <player> and BRenBot. [message #387102 is a reply to message #385779] Wed, 20 May 2009 04:56 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
brenbot.dll has no console commands that have r_ as a prefix, also the commnds for spectate was sp/spec/spectate

goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: !spectate <player> and BRenBot. [message #387491 is a reply to message #385779] Fri, 22 May 2009 16:19 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Can you show the spectate console command code without the console command hook. Better idea release brenboot.dll with all console commands hooks and stuff removed.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: !spectate <player> and BRenBot. [message #387554 is a reply to message #385779] Sat, 23 May 2009 08:53 Go to previous message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
I dont have the source to BrenBot.dll anymore, some old spec code was pasted here a while ago

goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Previous Topic: BRenbot goes down randomly.
Next Topic: Changing the Host Name
Goto Forum:
  


Current Time: Sun Nov 17 03:42:53 MST 2024

Total time taken to generate the page: 0.01160 seconds