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
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Mitglieder
  3. Yenz

Beiträge von Yenz

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!
  • Target Machine Refuses RCON

    • Yenz
    • 9. September 2014 um 19:35

    Do you actually run the mam.bat? Or only the TCP Console? :D

  • little help need

    • Yenz
    • 9. September 2014 um 09:32

    manuadminmod/plugins/
    There are the most important parts of plugins (the actual plugin that do stuff).

    manuadminmod/config/plugins
    There are just further configurations for the plugins. This is optional and therefore not so important.

  • little help need

    • Yenz
    • 9. September 2014 um 06:37

    Just take a look at exisiting plugins ;)

  • Target Machine Refuses RCON

    • Yenz
    • 21. August 2014 um 16:57

    I wanted the mod.log (MAM's logfile)

  • Alarm

    • Yenz
    • 18. August 2014 um 20:11

    @GumGes1
    Take a look into plugins/deferredJobs.php
    Read the comment section.

  • Alarm

    • Yenz
    • 18. August 2014 um 18:41

    I have a helper plugin for such a task. I'll upload that later today.

  • Target Machine Refuses RCON

    • Yenz
    • 18. August 2014 um 18:37

    Please give us The part of the log with this error. And your config without rcon

  • [ Helper Plugin ]

    • Yenz
    • 14. August 2014 um 20:51

    instead of

    PHP
    <?php
    $search = array("afk","he is hacking","lag");

    do sth like

    PHP
    <?php
    $fileContent = file($mod->getConfigDir() . "/plugins/helper.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); // read the file, strip newline "\n" characters from the end, ignore empty lines
    foreach ($fileContent as $line) { // for every entry of the $fileContent array to this block
    $search = array();
        $parts = explode(":", $line, 2); // "explode" the line at the ":" chat, that means to create an array for each part between ":"-characters, but only do that for the first ":" (3rd parameter "limit" = 2, means maximum array size of 2)
        $search [] = array("search" => $parts[0], "response" => $parts[1]); // add new entry in the $search array, each entry is an array with the search part (in front of the ":"), and the response part ("everything after the first ":")
    }

    config/plugins/helper.txt could look like this one

    Code
    lag:try my commands
    hack:vote kick hacker
    afk:votekick him


    EDIT: I've added some comments so that you can understand my code better!
    See this links for more infos:
    http://php.net/manual/en/function.file.php
    http://php.net/manual/en/control-structures.foreach.php
    http://php.net/manual/en/function.explode.php
    http://php.net/manual/en/language.types.array.php

  • [ Helper Plugin ]

    • Yenz
    • 14. August 2014 um 17:06

    @GumGes1 Two suggestions:
    1.) Searchkeywords and response messages should be configured in a text file, so everybody can easily change/add/remove some. Create/read a text file from $mod->getConfigDir() . "/plugins/helper.txt"
    2.) Get familiar with loops (for php they are name with while/for/foreach). Then you can reduce your current three similar if-block with one loop.

    Extra bonus suggestion :D
    3.) support regex to identify chat messages to which respond with the predefined answers. Then one can easily define "if this, that, that or this is found in the message, send this back: blabla". example: '/\bla+g+\b/' will found everything like: lag, laaaag, laaaagggg, lagggggg, BUT NOT flag!!!!

  • Target Machine Refuses RCON

    • Yenz
    • 14. August 2014 um 16:50

    I would have betted that you will forget the "which ports" question! :D

    So, my assumption:
    WWW
    Router 1 (IP: 192.168.0.1), connecting wire is plugged into a LAN port
    Router 2 (IP: 192.168.1.1 - DIFFERENT NETWORK), connecting wire is plugged into the WAN port (there is only one WAN port on normal routers which mostly have a different color than the lan ports)
    Your PC (IP: 192.168.1.123)

    Netmask in all networks: 255.255.255.0

    The IPs and the netmask are only guessed. So be careful / take a concrete look at your environment when apllying forwarding rules.

    In this scenario you need the follwing forwarding rules:
    On Router 1: forward game port (incoming 28960 udp packets) to router's 2 ip (192.168.1.1)
    On Router 2: forward game port (incoming 28960 udp packets) to your pc's ip (192.168.1.123)
    With this set up everybody from the WWW can connect to your gameserver (running on your pc).

  • Target Machine Refuses RCON

    • Yenz
    • 12. August 2014 um 14:52

    How is router 1 connected to router 2? Cable? Which ports (lan/wan)?
    Mord Mord info. Then forwarding via two routers is possible of course.

    But if you have a possibility to connect your pc directly with router 1: do that ;)

  • GSC

    • Yenz
    • 11. August 2014 um 21:37

    Waaaaaaaat?

  • Unban

    • Yenz
    • 11. August 2014 um 18:27

    Einen Befehl hierzu bietet das Plugin leider nicht.
    Manuell geht es so: In deinem MAM-Log-Verzeichnis gibts eine Datei pban.log. Diese mit einem Texteditor öffnen und die entsprechende Zeile löschen.

  • [ Name Change Announcer ]

    • Yenz
    • 4. August 2014 um 21:01

    CONFIG:

    Code
    [nameChangeAnnouncer]
    enabled = 1
    msg = "^7<PLAYER_OLD_NAME> changed his name to ^7<PLAYER_NEW_NAME> ^2(PID: <PLAYER_PID>)"
  • mask and unmask

    • Yenz
    • 4. August 2014 um 10:58

    oh i thought you want to make the player invisible and not only the servergroup of mam :D

  • mask and unmask

    • Yenz
    • 4. August 2014 um 10:47

    Only if you have a rcon command that provides this functionality. But I assume you don't have sth like that ;)

  • Target Machine Refuses RCON

    • Yenz
    • 4. August 2014 um 10:45

    are the routers connected in a row?

    Internet <---> Router 1 <---> Router 2 <---> Your PC

    Where do you want to run your Gameserver and where the ManuAdminMod?

  • Target Machine Refuses RCON

    • Yenz
    • 28. Juli 2014 um 22:58

    Are you sure that the error is from the RCON connection? Sounds more like a error message from a possible mysql connection...
    Do you try to connect to a mysql server for statistics?

    mod.log will help!

  • Problems ManuAdminMod

    • Yenz
    • 28. Juli 2014 um 08:35

    He's not using a current version of php for MAM. Maybe he has different versions installed and uses and old one for MAM (unwittingly).
    @Dante What does "php -v" return?
    @GumGes1 He already said that he is using Linux ;)

  • Problems ManuAdminMod

    • Yenz
    • 27. Juli 2014 um 20:54

    First, you have to update your php!

  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™