rcon2irc questions

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Fri Aug 15, 2008 5:04 am

  • I just setup rcon2irc tonight. I have it setup with two servers by running two separate screen sessions with different configs. I have some questions...

    1. Is it possible to setup one script to be able to communicate with multiple servers at once? So you would have your bot in IRC and you would show messages from each server. When sending messages to the nexuiz server, you would preface your message with "botname 1 hello" or something like that, where "1" would mean the first server. Actually, thinking more about it, I think I know the answer to this question, but feel free to make your comments about it anyway :-)

    2. Is there an rcon command to speaking only to the spectators? Right now, the messages coming from IRC to the nexuiz server are seen by people during a match. Ideally, those messages would be treated the same as spectator messages.

    Thanks
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Fri Aug 15, 2008 10:20 pm

  • Well there is no need to run them in different screen sessions, in fact i find it more useful to run everything Nexuiz server related in one screen process..

    I'm not sure but from what one can setup about rcon2irc it does not seem to be possible. Also having two "bots" seems easier when trying to 'chat' with the nexuiz servers.

    No just talking to the specs is not possible, just as its not possible to do so while playing. But i think when you use BOTNAME: PLAYERNAME: it uses 'talk' to just send that message to that one player. Though i might be making things up here.. Maybe the wine was too good? :)
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Fri Aug 15, 2008 11:15 pm

  • You can talk to people on Nexuiz using IRC?
    User avatar
    KillaGrunt
    Alien trapper
     
    Posts: 315
    Joined: Fri Jun 27, 2008 3:35 am
    Location: In your X-Box 360 playing halo

Fri Aug 15, 2008 11:51 pm

  • KillaGrunt wrote:You can talk to people on Nexuiz using IRC?

    Yes.



    I'm working on a server management tool that will help organize your game servers in screens. Yesterday, I added the ability to initialize rcon2irc for that server if you finds the config.
    Last edited by [-z-] on Sat Aug 16, 2008 1:13 am, edited 1 time in total.
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Sat Aug 16, 2008 12:05 am

Sat Aug 16, 2008 12:15 am

  • Oh. Thats pretty cool.
    User avatar
    KillaGrunt
    Alien trapper
     
    Posts: 315
    Joined: Fri Jun 27, 2008 3:35 am
    Location: In your X-Box 360 playing halo

Sat Aug 16, 2008 7:55 pm

  • esteel, how do I run multiple scripts in one screen session? Is that the nohup command mentioned in the rcon doc? (yes, I could look it up, but hopefully this thread could also help someone else trying to setup this script)

    Perhaps I could mention to divverent about adding a feature to only talk to spectators. It would come in handy. Actually, how does that work in the tourney mod, where spectators only talk to spectators when the match starts?
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Sat Aug 16, 2008 7:58 pm

  • One more question, won't quakenet have an issue with multiple connections if I setup multiple bots (one for each server)?
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Sat Aug 16, 2008 9:00 pm

  • You first question about screens:

    in a screen session hit >> ctrl+a, c << to create a new 'tab' inside the screen.

    hit >> ctrl+a, space << or >> ctrl+a, n << to go to the next 'tab'.

    hit >> ctrl+a, backspace << or >> ctrl+a, p << to go to the previous 'tab'.

    Personally however... for the game servers, I like running seperate screens so they all have titles and I can find them fast (even faster with my management tool).



    Your question about multiple connections on quakenet. The limit is 5. You can exceed that limit with a trust you can obtain through their website www.quakenet.org. You must be running an IDENT server to obtain the trust. This is where my request just failed.
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Sun Aug 17, 2008 3:23 am

  • Ah, thanks -z-. That's very useful to know.

    I'm gonna hold off from setting up the chat for all of the servers until there is a feature for chatting just to spectators (crosses fingers).
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Sun Aug 17, 2008 3:08 pm

  • For the delight servers i came up with this script to have all the nexuiz servers in one screen. It creates a screen session NEX with all the nexuiz servers running inside. Usually 'screen tab' 1 through x.. with 0 being just a shell running. Thats useful to get access to all servers by just reattaching one screen with 'screen -D -RR -S NEX'

    Code: Select all
    #!/bin/sh

    # we need a session for the -X option to work. start one if needed (with just an shell in it)
    screen -S NEX -q -ls; [ $? -lt 10 ] && screen -S NEX -m -d
    # now its save to start all the server in this session

    screen -S NEX -X screen -t DCC ./nexuiz-server  +exec server-plain.cfg +sv_public 1

    screen -S NEX -X screen -t NEWBIE ./nexuiz-server +exec server-newbie.cfg +sv_public 1

    screen -S NEX -X screen -t MINSTA ./nexuiz-server exec server-minsta.cfg +sv_public 1

    # .... SOME MORE lines like those


    In fact for (re)attaching to screens i use an other script:
    Code: Select all
    #! /bin/sh

    exec screen -A -x -RR -ln "$@"

    When just starting this script it will create a new session, or attach to the first found session in multi-display mode so that several admins can attach to that session..
    You can also use that script (i name it screenn) like this: screenn -S NEX
    and be fine with the delight servers :)
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Oct 21, 2008 3:54 am

  • My rcon2irc bots keep quitting the irc channel.

    Code: Select all
    bc1 has quit (Excess Flood)


    The scripts crash and the error in the terminal says

    Code: Select all
    Can't call method "channels" without a package or object reference at rcon2irc.pl line 1188.


    I set some flood control settings on the server, and that helped reduce the chances of a rcon2irc crash, but it still happens.

    If anyone has any suggestions for preventing this from happening, I would appreciate knowing.
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Tue Oct 21, 2008 6:41 am

  • Can you qoute the lines around that? I do not know the exact svn version you have, but nowhere near that line I have "channels".
    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.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Oct 21, 2008 10:08 pm

  • I'm at work right now, but I remember that the other lines around that one were typical lines that are spit out while the script is running. I only saw one line that showed an error.

    This rcon2irc script that I'm currently using is from v2.4.2.
    I'll try to run the script from a recent SVN build to see if I still have the problem.
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest