small problem with rcon2irc

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

still no dice

Postby synical » Sat Feb 14, 2009 6:12 am

ok the bot just outputs:

[1:05] @(nexuiz) killed
[1:05] @(nexuiz) killed
[1:05] @(nexuiz) killed

etc. no player names, just "killed"

here is what i am seeing in a terminal window when running the perl script:
Code: Select all
unhandled: dp >> ^1[PRO]Panic^1 was telefragged by [PRO]Sensible

           irc << PRIVMSG #nexuiz : killed

           dp >> :kill:frag:2:5:type=10001:items=1:victimitems=8


looks like its grabbing part of it, but not all of it. this is after a map change like you suggested before.

by the way, thanks for replying and thanks for the help. i understand this isnt supported.
synical
Newbie
 
Posts: 9
Joined: Tue Feb 10, 2009 9:08 pm

Postby divVerent » Sat Feb 14, 2009 2:17 pm

Try replacing

$store{qq{playernick_byid_$killer}}

by

@{[ $store{'playernick_byid_' . $killer} ]}

Maybe Perl simply does odd parsing there.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

strange

Postby synical » Sun Feb 15, 2009 7:11 am

hm ok did just that, for the $killer and $victim part.

[1:54] @(nexuiz) {[ ]} killed {[ ]}
[1:54] @(nexuiz) {[ ]} killed {[ ]}
[1:54] @(nexuiz) {[ ]} killed {[ ]}

lol getting closer!

Code: Select all
sub out($$@);



[ dp => q{^:kill:frag:(\d+):(\d+):type=(\d+):items=(\d+)([A-Z]*)(?:|(\d+)):victimitems=(\d+)([A-Z]*)(?:|(\d+))$} => sub {

        my ($killer, $victim, $deathtype, $items, $powerups, $runes, $victimitems, $victimpowerups, $victimrunes) = @_;

        out irc => 0, "PRIVMSG $config{irc_channel} : {[ $store{'playernick_byid_' . $killer} ]} killed {[ $store{'playernick_byid_' . $victim} ]}";

        return 0;

} ],
synical
Newbie
 
Posts: 9
Joined: Tue Feb 10, 2009 9:08 pm

Postby divVerent » Sun Feb 15, 2009 8:49 am

there should be an @ before {[
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

same

Postby synical » Mon Feb 16, 2009 5:29 am

Code: Select all
sub out($$@);



[ dp => q{^:kill:frag:(\d+):(\d+):type=(\d+):items=(\d+)([A-Z]*)(?:|(\d+)):victimitems=(\d+)([A-Z]*)(?:|(\d+))$} => sub {

        my ($killer, $victim, $deathtype, $items, $powerups, $runes, $victimitems, $victimpowerups, $victimrunes) = @_;

        out irc => 0, "PRIVMSG $config{irc_channel} : @{[ $store{'playernick_byid_' . $killer} ]}  killed @{[ $store{'playernick_byid_' . $victim} ]}";

        return 0;

} ],



[12:23] @(nexuiz) killed
[12:23] @(nexuiz) killed
[12:23] @(nexuiz) killed

a simliar result.
synical
Newbie
 
Posts: 9
Joined: Tue Feb 10, 2009 9:08 pm

Previous

Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron