Loopy Logging?

baitbait Join Date: 2003-09-12 Member: 20793Members
i run a dedicated ns server (newest version) on redhat linux; i've tried running it with both "log on" in the autoexec.cfg file, and as a command line argument. it does log, but it seems to be delayed. for instance, when a map loads i typically get:

L 10/12/2004 - 23:57:19: Loading map "co_core"
<lots of server vars...>
L 10/12/2004 - 23:57:19: Server cvar "sv_password" = ""
L 10/12/2004 - 23:57:19: Server cvar "sv_proxies" = "1"
L 10/12/2

it cuts off just like that. if people join the server and start a game, it will "finish" logging, or update the log later on, but not immediately.

i've searched the net, user groups and so forth to no avail. is this simply how hlds_l functions? i do have the disk space <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo--> hehe.

thanks guys...

Comments

  • baitbait Join Date: 2003-09-12 Member: 20793Members
    so... i must have a rogue box then <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    edited October 2004
    No it's not a rogue machine, you've got some extra "log on" commands stuffed somewhere in there.

    1. Do not put "log on" in your initial server command. Instead it should look something like this (substitute your info):

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    ./hlds_run -game ns +ip 208.28.184.222 +port 27015 -debug
    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    2. Remove or comment out any instances of "log on" in your server.cfg file.

    3. Create an autoexec.cfg file and stick it in your ns directory. Copy and paste this info and put it in the file:

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->

    //
    // autoexec.cfg
    //   Server setup configuration file. This file is automatically executed once,
    //   when the server is started.
    //

    //Location of the log files
    logsdir logs

    // maxplayers <number>
    //   Default: 6
    //   Sets how many players are allowed on the server at one time. The maximum is
    //   32 players. The more players you allow, the greater the upstream bandwidth
    //   you will require.
    maxplayers 15

    // log <on|off>
    //   Default: off
    //   Use this command to enable logging on the server. See also the Logging
    //   Settings in 'server.cfg'.
    log on

    // logaddress <ip> <port>
    //   Default: (none)
    //   If logging is enabled, this command allows log data to be sent to a remote
    //   address. The log data is transmitted as UDP data packets, which can be
    //   parsed by third-party applications. You can also set the logaddress to the
    //   IP and port of your Half-Life client and the log data will be displayed in
    //   the client console.
    //logaddress 127.0.0.1 27500

    // servercfgfile <filename>
    //   Default: "server.cfg"
    //   Sets the name of the configuration file which is executed at each map
    //   change.
    servercfgfile "server.cfg"

    //
    // Load Initial Map
    //   Here we load the first map that the server will run. Nobody can connect to
    //   the server until a map is loaded.
    //
    map ns_altair
    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    After that, all roguishness should go away.
  • baitbait Join Date: 2003-09-12 Member: 20793Members
    oddly enough, that did not work. i've built this php application that uses udp and rcon to control the server. i assumed that could be having an affect on things, so i ran hld_run from the command line only, with the above specified information. i am still getting that partial log nonsense. anyhow, i did get this working by redirecting the stdout to a file; same difference, i suppose.

    thanks <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
Sign In or Register to comment.