Closed viviicat closed 14 years ago
I'm looking into the problem... it probably has something to do with my network not allowing the stream. Somehow HLSW does it so I'll have to look into it. It's not a problem with your code, though.
I figured it out. I had to send the server a quick "hi" so that my school's firewall would open up the port.
Library's working well!
Hey there, I'm trying out a simplified version of record.py to test out getting a log from my game server. I changed the IPs to reflect the game server:
rcon = SourceLib.SourceRcon.SourceRcon('66.221.253.125', 27017, 'rcongoeshere') query = SourceLib.SourceQuery.SourceQuery('66.221.253.125', 27017) ... and then below ... server = SourceLib.SourceLog.SourceLogListener(('mylocalip', 7130), ('66.221.253.125', 27017), MyLogParser())
I modified the code to just print to the terminal to test the log (and then later modified SourceLog to test if anything was coming in, and don't seem to be getting any data from the gameserver. Rcon commands work, and the response works, and I'm able to run the command logaddress_add myip:7130 to add myself to the UDP list.
I'm also able to get the player list if I type status. Also, the gameserver is logging to UDP, as reported by the log command.
I'm running in Linux, and wondering if a port needs to be opened in order to get the stream, or if some other trick is necessary in order to get the log. HLSW works fine for me when I use Windows...
Thanks for the help. Your project looks very neat.