Need help with python scripting...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imported_Skillz
    Member
    • Apr 2006
    • 22

    #1

    Need help with python scripting...

    Actually, just general game administration.

    How do I get my NON ranked server (One with which I have full FTP access too, as well as SSH) create a log file that contains information such as player connects/disconnects, IPs, team, and other misc. logging information the server can generate?
  • imported_Skillz
    Member
    • Apr 2006
    • 22

    #2
    Re: Need help with python scripting...

    I see this is available.

    host.log(message)

    So I assume I can put something like this in the script:


    host.rcon_invoke('host.log "Connected: %s"' % (player.getName()))

    or

    host.log(host.rcon_invoke('echo "Connected: %s"' % (player.getName())))


    I think that's the correct way, but how do I define the log location?

    Comment

    • imported_Chael
      Member
      • Mar 2006
      • 602

      #3
      Re: Need help with python scripting...

      You'll prolly have better luck on bfeditor.org.

      Comment

      • imported_Skillz
        Member
        • Apr 2006
        • 22

        #4
        Re: Need help with python scripting...

        Thanks I just registered there.

        Comment

        Working...