rcon2irc questions

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby esteel » 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 :)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Dokujisan » 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

Postby divVerent » 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.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Dokujisan » 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

Previous

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron