Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Messages missing since 4.0
Re: Messages missing since 4.0 [message #464367 is a reply to message #464304] Tue, 13 March 2012 12:23 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
For reference, BRenBot supports the following Gamelog messages;

Quote:

sub parse_line
{
my $line = shift;

if ( $line =~ m/\[(.+?)\] CRATE/ && $startup != 1 )
{
crate($line);
}
elsif ( $line =~ m/\[(.+?)\] CREATED/ )
{
created($line);
}
elsif ( $line =~ m/\[(.+?)\] DESTROYED/ )
{
destroyed($line);
}
elsif ( $line =~ m/\[(.+?)\] POS/ && $startup != 1 )
{
position($line);
}
elsif ( $line =~ m/\[(.+?)\] ENTER/ )
{
enter($line);
}
elsif ( $line =~ m/\[(.+?)\] EXIT/ )
{
exit_vehicle($line);
}
elsif ( $line =~ m/\[(.+?)\] DAMAGED/ && $startup != 1 )
{
damaged($line);
}
elsif ( $line =~ m/\[(.+?)\] KILLED/ )
{
killed($line);
}
elsif ( $line =~ m/\[(.+?)\] WIN/ )
{
clear();
}
elsif ( $line =~ m/\[(.+?)\] CONFIG/ && $startup != 1)
{
clear();
}


# Look for any plugins whose regex hooks match this line
my @plugins = plugin::get_plugin_gamelog_regexes();

my %args;
$args{line} = $line;
$args{startup} = $startup;

foreach (@plugins)
{
my $plugin = $_;
my %regexes = %{$plugin::plugin_gamelog_regexes{$plugin}};
my $alias = "plugin_" . $plugin;

while (my ($regex, $event) = each %regexes)
{
if ( $line =~ m/$regex/i )
{ $main::poe_kernel->post($alias => $event => \%args); }
}
}
}



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

[Updated on: Tue, 13 March 2012 12:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fixing roadkill bug
Next Topic: time limit and BRenBot
Goto Forum:
  


Current Time: Wed Nov 27 14:57:55 MST 2024

Total time taken to generate the page: 0.01013 seconds