1. GSManager
    1. Funktionen
    2. Unterstützte Spiele
    3. Neuigkeiten
    4. Statistiken
    5. Serverliste
  2. Lexikon
  3. Filebase
  4. Entwicklung
  5. Forum
    1. Dashboard
    2. Unerledigte Themen
  6. Web-Interface
  7. Artikel
  8. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Deutsch
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. GSManager
  2. Forum
  3. Unterstützung
  4. Benutzung

PHP daemon question

  • Q'Relly
  • 12. August 2010 um 18:34
Das Projekt GSManager (vormals ManuAdminMod) wurde am 01.01.2020 eingestellt - diese Internetpräsenz bleibt verfügbar, die Software wird aber nicht länger gepflegt. Vielen Dank für eure Unterstützung in den mehr als zehn vergangenen Jahren!
1. offizieller Beitrag
  • Q'Relly
    Anfänger
    Punkte
    20
    Beiträge
    3
    • 12. August 2010 um 18:34
    • #1

    Hi all.

    I interested, how to intagred PHP daemon in game?
    I now, how to connect to server and send commands, but now to listen game messages?
    How to make a bot to listen to game events while all round?


    Thanks in advance.

  • manu
    Meister
    Punkte
    10.835
    Trophäen
    3
    Beiträge
    2.113
    • 12. August 2010 um 22:05
    • #2

    The gameserver writes most of its actions to a logfile immediately. Just need to check for new loglines in the gameservers logfile.
    Its really easy:

    • First open the Logfile
    • Get the position of the last char
    • Close the logfile
    • Wait about half a secound
    • Open the file and go to the position you got before
    • Read everything after this position and parse this files
    • Safe the position of the last char
    • Goto 3
  • Q'Relly
    Anfänger
    Punkte
    20
    Beiträge
    3
    • 12. August 2010 um 22:53
    • #3

    My bad english -_-
    I want ask, how to make bot listening game actions, without manu daemon.
    I simple need save players ip, PID, GUID and chat msgs in some file or database, it all.

    I decide to write own daemon, based on your rcon class. Now i can send commands, but i cant view game actions, bot connecting, send cmd and close connection, but i need to proceed game actions.
    I search all classes, but did not found needed code :)

    PS: For me was the discovery that i can send commands to game server via a socket :D

    4 Mal editiert, zuletzt von Q'Relly (12. August 2010 um 22:57)

  • Dieses Thema enthält 5 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.
  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  • Deutsch
  • English
Zitat speichern