Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

how to turn on hexenworld-server logfiles

Help
Sataaan
2005-10-03
2014-01-06
  • Sataaan
    Sataaan
    2005-10-03

    hi,

    one more time: realy great work... thx!

    i've googled and read all "readme"-files of hot...
    but i could not find how to conf the hexenworld server to log his actions into a logfile.

    can someone help me please?

    ciao
    ... sataaan

     
    • Ozkan Sezer
      Ozkan Sezer
      2005-10-03

      Hi there,

      I gave a quick look into the source code and found this:

      While hwsv is running, type "logfile" (without the quotes)
      and you'll see that it will start logging into "qconsole.log"
      in the directory ~/.hexen2/hw/  (NOTE: filename is actually
      very BAD, it is the same name for the client's logfile,
      open sv_ccmds.c, go to function SV_Logfile_f around
      line 87 and change it to hwsv.log. I will do this asap in
      the latest cvs version.)
      Re-typing logfile stops the logging.

      Here's another: While hwsv is running, type "fraglogfile"
      and this time it will start the frag-log into the file
      ~/.hexen2/hw/frag_<somenumber>.log. Similarly, it will
      stop logging upon re-typing fraglog.

      I hope this helps. Please post if you need anything else.

      Cheers

       
    • Ozkan Sezer
      Ozkan Sezer
      2005-10-03

      > I gave a quick look into the source code and found this:
      >
      > While hwsv is running, type "logfile" (without the quotes)
      > and you'll see that it will start logging into "qconsole.log"
      > in the directory ~/.hexen2/hw/ (NOTE: filename is actually
      > very BAD, it is the same name for the client's logfile,
      > open sv_ccmds.c, go to function SV_Logfile_f around
      > line 87 and change it to hwsv.log. I will do this asap in
      > the latest cvs version.)
      > Re-typing logfile stops the logging.
      >
      > Here's another: While hwsv is running, type "fraglogfile"
      > and this time it will start the frag-log into the file
      > ~/.hexen2/hw/frag_<somenumber>.log. Similarly, it will
      > stop logging upon re-typing fraglog.
      >
      > I hope this helps. Please post if you need anything else.

      OK, I did the change I mentioned and here is an updated
      server program: http://uhexen2.sourceforge.net/hwsv_cvs.zip
      It contains one linux (glibc-2.3) and one win32 binary. It is
      compatible with HoT-1.3.0.

      Cheers

       
    • Sataaan
      Sataaan
      2005-10-04

      hi sezero,

      thx for your help.
      it works!

      but:
      our server is running on a linux-server about 600km away from me...
      and i start and stop it over an init-script i've scripted by myself.

      it would be nice, if i can say the hwsv to log at startup...
      something like "hwsv -logfile".

      can you help me one more time? ;-)

      ciao
      ... 666

       
    • Ozkan Sezer
      Ozkan Sezer
      2005-10-04

      > thx for your help.

      no problem

      > it would be nice, if i can say the hwsv to log at startup...
      > something like "hwsv -logfile".

      Ah, you already have it: Most console commands can be
      used as start-up cmdline argument when combined with a+ :

         hwsv +lofile +fraglogfile +map <some_map_name> <more_options>

      If, for anything else, you would need accessing the hwsv
      console remotely, you can use rcon command from your
      hexenworld client. I can't remember the specifics about that,
      but if you want it ten tell me and I think I can re-discover it.

      > can you help me one more time? ;-)

      Hey, no problems ;)

      Cheers

       
    • Ozkan Sezer
      Ozkan Sezer
      2005-10-04

      Ah, silly typos, I should give up typing with my toe ;)

      >  hwsv +lofile +fraglogfile +map <some_map_name> <more_options>

      hwsv +logfile +fraglogfile +map <some_map_name> <more_options>

       
    • Sataaan
      Sataaan
      2005-10-19

      hi sezero,

      now i've got an other prob:
      the logfile is there (activatet per console and rcon) but is empty.
      we've played hw with 3 guys for about 2 hours...
      but: the files is empty.
      any idea?

      i will try the command "hwsv +logfile +fraglogfile" and let you know, if it works, but i think so...

      ciao
      ... sataaan

       
      • Ozkan Sezer
        Ozkan Sezer
        2005-10-20

        > the logfile is there (activatet per console and rcon) but is empty.
        > we've played hw with 3 guys for about 2 hours...
        but: the files is empty.
        > any idea?

        It seems like the log files are kept open during the whole
        hwsv session unless it is turned off manually. I added
        fflush() calls to after any entry calls into the logfiles:
        The behavior is the same: The logfile will still be kept open
        during the whole hwsv session until either you quit hwsv, or
        you turn logging off. But after each entry, the file contents
        will be flushed therefore you won't see empty logs anymore.
        ***NOTE***: This patch is cooked in less than 3 minutes,
        therefore it is not tested for more than 3 seconds. Please
        try it and report any problems with it.

        Here is the patch url:
        http://uhexen2.sourceforge.net/hwsv_flush_logs.diff

        If you can't use a patch, please tell me and I can prepare
        binaries for you.

        > i will try the command "hwsv +logfile +fraglogfile" and let you know, if it works, but i think so...

        That won't make any difference, try the patch instead.

         
  • hoek
    hoek
    2014-01-06

    There is a list of all server (game) commands
    http://hoek.pl/pliki/hexen2world_commands.txt

     
    Last edit: hoek 2014-01-09