Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Install Nanny (bot)

  1. #11
    Private
    Join Date
    Feb 2017
    Posts
    37
    Thanks
    24
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by voron00 View Post
    Thank you.

  2. #12
    Private
    Join Date
    Feb 2017
    Posts
    37
    Thanks
    24
    Thanked 7 Times in 7 Posts
    When a player type !help for the help commands, console write his commands on public chat. How can i set to private?

  3. #13
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    IIRC you need to find the position which says say $msg and replace it with tell $playerid $msg... and hack that into Perl code ^^

    Edit:

    I checked the source now, this seems to be it: https://github.com/voron00/Nanny/blo...nanny.pl#L2749

    Try to replace this:

    PHP Code:
    &rcon_command("say $name^7: Вы можете использовать ^1!stats ^7чтобы узнать свою подробную статистику"); 
    With:

    PHP Code:
    &rcon_command("tell $slot $name^7: Вы можете использовать ^1!stats ^7чтобы узнать свою подробную статистику"); 
    But since the !say $name scheme is like over 20 times there, you gotta replace it in every line.
    Last edited by kung foo man; 12th March 2017 at 03:13. Reason: checked actual source
    timescale 0.01

  4. The Following User Says Thank You to kung foo man For This Useful Post:

    sttte93 (12th March 2017)

  5. #14
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    I wouldn't recommend doing that because nanny is 100% sinchoronous and will not respond to anyone else until she finishes that help command (unless you feel like a boss and will implent threads lol)
    sudo apt-get rekt

  6. The Following User Says Thank You to voron00 For This Useful Post:

    sttte93 (12th March 2017)

  7. #15
    Private
    Join Date
    Feb 2017
    Posts
    37
    Thanks
    24
    Thanked 7 Times in 7 Posts
    Ok, thank you.
    I have another problem with nanny. It's about guids. I have an original Guid for cod2 but, sometimes (random) when a map changes, my guid becomes 0.
    I already set, in the nanny.cfg, guid_sanity_check = yes and restarted, many times, the server. It's affect also other players with original guid, not only me. And is a cracked server.
    Any suggestions?
    Last edited by sttte93; 12th March 2017 at 11:44.

  8. #16
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Just reconnect, or use your ip as auth.
    sudo apt-get rekt

  9. The Following User Says Thank You to voron00 For This Useful Post:

    sttte93 (12th March 2017)

  10. #17
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    masterserver doing the derpy dance again.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  11. The Following User Says Thank You to IzNoGoD For This Useful Post:

    sttte93 (12th March 2017)

  12. #18
    Private
    Join Date
    Feb 2017
    Posts
    37
    Thanks
    24
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by voron00 View Post
    Just reconnect, or use your ip as auth.
    Ok thanks. What can i do with !stats if i have guid problems with players?

  13. #19
    Private
    Join Date
    Jul 2016
    Posts
    38
    Thanks
    0
    Thanked 19 Times in 19 Posts

    NaNNY install problem!

    PHP Code:
    root@administrator:~/cod2/cod13/Nanny# ./nanny.sh
    Can't locate Rcon/KKrcon.pm in @INC (you may need to install the Rcon::KKrcon module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at nanny.pl line 63.
    BEGIN failed--compilation aborted at nanny.pl line 63 (#1)
        (F) You said to do (or require, or use) a file that couldn'
    t be found.
        
    Perl looks for the file in all the locations mentioned in @INCunless
        the file name included the full path to the file
    .  Perhaps you need
        to set the PERL5LIB 
    or PERL5OPT environment variable to say where the
        extra library is
    , or maybe the script needs to add the library name
        to 
    @INC.  Or maybe you just misspelled the name of the file.  See
        
    "require" in perlfunc and lib.

    Uncaught exception from user code:
            
    Can't locate Rcon/KKrcon.pm in @INC (you may need to install the Rcon::KKrcon module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at nanny.pl line 63.
            BEGIN failed--compilation aborted at nanny.pl line 63. 
    Last edited by bulent; 3rd May 2020 at 02:45.

  14. #20
    Private CaptainSlow's Avatar
    Join Date
    Nov 2014
    Posts
    76
    Thanks
    38
    Thanked 28 Times in 23 Posts
    Quote Originally Posted by bulent View Post
    PHP Code:
    root@administrator:~/cod2/cod13/Nanny# ./nanny.sh
    Can't locate Rcon/KKrcon.pm in @INC ([B]you may need to install the Rcon::KKrcon module[/B]) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at nanny.pl line 63.
    BEGIN failed--compilation aborted at nanny.pl line 63 (#1)
        (F) You said to do (or require, or use) a file that couldn'
    t be found.
        
    Perl looks for the file in all the locations mentioned in @INCunless
        the file name included the full path to the file
    .  Perhaps you need
        to set the PERL5LIB 
    or PERL5OPT environment variable to say where the
        extra library is
    , or maybe the script needs to add the library name
        to 
    @INC.  Or maybe you just misspelled the name of the file.  See
        
    "require" in perlfunc and lib.

    Uncaught exception from user code:
            
    Can't locate Rcon/KKrcon.pm in @INC ([B]you may need to install the Rcon::KKrcon module[/B]) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at nanny.pl line 63.
            BEGIN failed--compilation aborted at nanny.pl line 63. 
    Have you installed the KKrcon module? http://kkrcon.sourceforge.net/
    Slow and Steady wins the race

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •