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. Orcrist

Beiträge von Orcrist

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!
  • Voting to set next map and next gametype

    • Orcrist
    • 26. Februar 2010 um 11:57
    Zitat von surf3r

    I managed to integrate necessary changes for vote setnextmap but I noticed one problem in code. It's from voting.php (MAM 0.11), function votePassed, case "setnextmap".

    if (!$this->mod->rconSetNextMap($this->voteparameters, "sd", true))...

    I think "sd" is wrong, maybe some variable "gametype" goes here ?

    Also, it would be nice to see this message if vote passes (from main.lng): setNextMap = "^2Next map was set to ^7<MAP> (<GAMETYPE>)"

    Hi, I'm the guilty one here. See this post where I introduced the feature to MAM 0.10.1. You're right, that should have been a variable. I only play SD and when I released the code I forgot I had hard-coded game type :( I'll see if I can fix that up this weekend. I'll post it to that thread then. I also screwed up the setting of the default variable as you can see from various threads.

  • Start.bat will not run

    • Orcrist
    • 12. Februar 2010 um 17:28
    Zitat von headshot

    php.exe - entry point not found.

    the procedure entry point OCILobRead2 could not be located in the dynamic link library OCI.dll


    thats the error i got.

    Well, a quick google search seems to indicate this is some php error to do with Oracle. Why you would be having that kind of error is beyond me. At this point it would seem you need to seek help from php forums or mailing lists :denken:

  • Start.bat will not run

    • Orcrist
    • 12. Februar 2010 um 11:45
    Zitat von headshot

    kk have tried that but still no luck same messages appear. this is how it looks now


    @echo off
    :1
    c:\php\php -f daemon.php -- -configdir "config" -logdir "log"
    goto 1


    sorry about this but i am a total newbie with mods

    Try this test: open a DOS console (Start menu -> Run -> cmd) and type:

    Code
    cd \php


    then

    Code
    php -m


    what happens? Please past the output here.

    BTW, you don't need to put your files on that filesharing thing. Where the smileys are down below, you can click "Attachments" and attach the file directly to the post.

  • Start.bat will not run

    • Orcrist
    • 11. Februar 2010 um 13:33
    Zitat von headshot

    according to the instalation run through its just php but i tried php.exe and still the same thing

    Are you sure there are no spaces in there? From the original error message it looks like it is only looking for c:\php and not c:\php\php

  • Start.bat will not run

    • Orcrist
    • 10. Februar 2010 um 21:19
    Zitat von Dennis

    I merged your doublepost.


    Shouldn't it be:

    No, it doesn't matter. Executable files on windows (e.g. .exe, .bat, .com) can be run without supplying the ending.

  • Start.bat will not run

    • Orcrist
    • 10. Februar 2010 um 11:53
    Zitat von headshot

    I unzipped php that i downloaded but could not see a php.exe file or any .exe file in there.

    here is the source for the start.bat

    @echo off
    :1
    c:\php\php -f daemon.php -- -configdir "config" -logdir "log"
    goto 1

    I suspect you have the Windows option activated which hides file extensions. Just that option alone is reason for the responsible product manager to burn in hell, but that's neither here nor there. Just follow the directions here to restore at least a little sanity to window: http://www.fileinfo.com/help/windows-show-extensions.html

    Zitat von headshot

    yes up till the configuration as i could not find the required file in there.

    there were 2 php.ini files in there

    php.ini-development and
    php.ini-production
    no php.ini-recomended

    I see what the problem, or rather problems, are. The instructions were written for PHP 5.2, and you downloaded 5.3. I have edited that part of the wiki to better reflect what the download would look like, and corrected the English in the part that looked google-translated :D . I would recommend you download PHP 5.2, since I didn't check out PHP 5.3 on Windows to see if the instructions are sufficient in other respects, and I run Linux for my installation.

  • Start.bat will not run

    • Orcrist
    • 9. Februar 2010 um 12:01
    Zitat von headshot

    Hey guys i am totally new to this admin mod and i went through the tutorial on the site but i cant get the start.bat file to run.
    here is what i get http://clantoolz.com/osok/forum/upl…HOT-F/start.jpg

    Please help.

    The path for the daemon.php file is correct at c:\

    Thanks

    Hey Headshot!

    It appears that php itself isn't being found. Can you attach your start.bat file?

    I think you might have misunderstood the requirement for the php path. In the start.bat file you need to have the complete path to PHP itself. IOW, you install PHP (you did this, right?) to e.g. c:\program files\php. And inside the install directory will be the program "php.exe".

    So for example if the path to php is c:\program files\php\php.exe, then that line of your start.bat should look like this:

    Code
    c:\program files\php\php -f daemon.php -- -configdir "config" -logdir "log"

    (you don't need the ".exe" part in the config)

    - Chris

  • SQLITE

    • Orcrist
    • 2. Februar 2010 um 13:10

    Bitte mach ein DOS Fenster auf (d.h. Start->Ausführen, dann tippe 'cmd') und mache folgendes Befehl:
    php -m

    Was kommt?

  • Language Plugin

    • Orcrist
    • 21. Januar 2010 um 15:36
    Zitat von Dennis

    Naja, ich will nicht, dass jemand irgendwas auf meinem Server tut, dass ich nicht kontrollieren kann, daher erlaube ich andere Sprachen auch nicht.

    Ist dein guter Recht :thumbup:

    Ich debatiere nur gern, wie du sicher mitbekommen hast. :haue:

    Wie dem auch sei, ist dieses mit technischen Mitteln, praktisch gesehen, nicht machbar.

  • Sun Tzu - wisdom instead of kicks

    • Orcrist
    • 21. Januar 2010 um 13:55

    Sun Tzu
    Ein Chat-Überwacher, der passende Sprüche ausgibt, anstatt warns/kicks
    A Chat monitor which reacts with appropriate sayings instead of warns/kicks

    Anforderungen/Requirements
    Version 0.10.1 oder neuer
    Version 0.10.1 or newer

    Beschreibung/Description
    Dieses Plugin ist vom "badwords" Plugin abgeleitet, nur mit einem ganz anderen Ansatz. Ich halte nichts von warnen oder kicken wegen bestimmte Worte an sich. Ich wurde einmal von so einem teil für 10 minuten tempgebannt, weil ich sagte "damn, I'm such a noob". Aber ich mag nicht, wenn Leute, die ge-ownt wurden "noob" oder "gaymore" schreien.

    Also, wie badwords, überwacht dieses Plugin das Chat für bestimmte Worte bzw. Regexes, aber when es ein solches Wort sieht, dann gibt ein dazugehörenden Satz aus. Dies wird zunächst für alle lesbar sein, und nach der konfigurierten pmthreshold als PM an den Spieler ausgegeben.

    Zusätzlich fügt es den neuen Befehl !suntzu dazu. Wenn man !suntzu ohne parameter eingibt, kommt ein zufälliger Spruch von der gesamten Liste. Wenn man ein wort danach tippt, sucht das Plugin dieses wort in sowohl den "Trigger" Worten als auch den gesamten Text der Spruchliste und, sofern eine passende Zeile gefunden wird gibt es diese aus, ansonsten wird aus der ganzen Liste zufällig eine ausgegeben.

    Für sowohl Chat-Überwacher als auch mit Parameter, findet das Plugin mehr als einen Treffer, wird zufällig von den Treffern ausgewählt. Also, hast du 2 verschiedene Sprüche mit dem Tiggerwort: "noob", wird von den 2 zufällig einen ausgegeben.

    Alle Sprüche werden im Moment mit Unterschrift von Sun Tzu ausgegeben. Dies Entspricht meinem Gebrauch davon, aber man kann dies im Code trivial ändern. Allerdings, will ich das noch konfigurierbar machen.

    This plugin is an alternative to the "badwords" plugin. But instead of kicking players it showers them with wisdom. This plugin has 2 modes:
    1. Chat monitor: This monitors user chat, and if it sees one of the "trigger" words, it spits out one of the sayings associated with that trigger. This will be output for all to see on the console until the per-player pmthreshold is reached, after which it will output as a PM to the player in question.
    2. Explicit call with !suntzu: If you type !suntzu without any parameters the pluging will choose a random saying from the whole list and output it. If you add a word, it will search through the trigger words and the text of the sayings and choose randomly from the list of sayings which match. If it doesn't find the word at all, it will fall back to randomly choosing from the whole list.

    Currently, the plugin is hard-coded to add "- Sun Tzu " as a signature to each saying. This should be trivial to change in the code for those who want to. But I will also make that configurable in the near future.

    Beispiel:
    Example:
    Orcrist: you stupid camper!
    Console: He who is prudent and lies in wait for an enemy who is not, will be victorious. - Sun Tzu

    Orcrist: !suntzu attack
    Console: Thus, what is of supreme importance in war is to attack the enemy's strategy. - Sun Tzu

    Installation
    Erst, die angehängte Datei runterladen, entpacken und "suntzu.php" in das "plugins"-Verzeichnis schieben. Dann "suntzu.lst" ggf. anpassen (s. Konfiguration unten) und in das "config/plugins" Verzeichnis reintun. Anschliessend, [suntzu] block in die config.cfg Datei von ManuAdminMod einfügen und anpassen. Abspeichern und danach den Mod neustarten.

    Download the attached file, unpack, and copy "suntzu.php" in the "plugins" folder. Then edit "suntzu.lst" as needed (see Configuration below) and place it in the "config/plugins" folder. Finally add [suntzu] section to the config.cfg and change as needed. Restart the Mod.

    Konfiguration/Configuration
    config.cfg:

    Code
    [suntzu]
    enabled = 1             ; Enable plugin
    chattrigger = 1        ; Automatically react to player chat
    pmthreshold = 3      ; number of chat reactions before further sun tzu messages are sent privately
    debug = 0               ; Add extra debugging to mod_log

    suntzu.lst:
    Diese Datei enthält einen Spruch pro Zeile. Optional, kann man am Anfang der Zeile einen Regex reintun, der als "Trigger" dient. Nur die Zeilen mit "Trigger" Regexes werden beim Chat-Bewacher berücksichtigt. Der Regex wird markiert mit ":" vorne und hinten. Wenn du kein Regexes kennst, kannst du einfach "normale" Worte reinschreiben, und "|" benutzen um mehrere Triggers für einen Spruch zu haben. Siehe Beispiel unten und auch im beiliegenden "suntzu.lst" Datei.

    This file contains one saying per line. Optionally, you can add a regex at the beginning marked by opening and closing ":". If you are not familiar with Regexes, you can just type literal words you want to match, using "|" to separate multiple triggers for one saying.

    Beispiel/Example suntzu.lst:

    Code
    All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved.
    :totenstille\s+[nb][o0]{2,}[bn]|deadsilence\s+[nb][o0]{2,}[bn]|ds\s+[nb][o0]{2,}[bn]:Be extremely subtle, even to the point of formlessness. Be extremely mysterious, even to the point of soundlessness. Thereby you can be the director of the opponent's fate.
    :gaymore|claynoob|gay.*clay|clay.*gay|claybob:For to win one hundred victories in one hundred battles is not the acme of skill. To subdue the enemy without fighting is the acme of skill.
    :camping|camper:He who is prudent and lies in wait for an enemy who is not, will be victorious.
    Hence that general is skillful in attack whose opponent does not know what to defend; and he is skilful in defense whose opponent does not know what to attack.
    If you are far from the enemy, make him believe you are near.
    :[nb][o0]{2,}[bn]:Pretend inferiority and encourage his arrogance.
    Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.
    :gaymore|claynoob|gay.*clay|clay.*gay|:Supreme excellence consists in breaking the enemy's resistance without fighting.
    Thus, what is of supreme importance in war is to attack the enemy's strategy.
    :[nb][o0]{2,}[bn]:It is said that if you know your enemies and know yourself, you will not be imperiled in a hundred battles; if you do not know your enemies but do know yourself, you will win one and lose one; if you do not know your enemies nor yourself, you will be imperiled in every single battle
    It is the rule in war, if ten times the enemy's strength, surround them; if five times, attack them; if double, engage them; if equal, be able to divide them; if fewer, be able to evade them; if weaker, be able to avoid them.
    :[nb][o0]{2,}[bn]:A military operation involves deception. Even though you are competent, appear to be incompetent. Though effective, appear to be ineffective.
    If your enemy is secure at all points, be prepared for him. If he is in superior strength, evade him. If your opponent is temperamental, seek to irritate him. Pretend to be weak, that he may grow arrogant. If he is taking his ease, give him no rest. If his forces are united, separate them. If sovereign and subject are in accord, put division between them. Attack him where he is unprepared, appear where you are not expected.
    :lucker:When torrential water tosses boulders, it is because of its momentum. When the strike of a hawk breaks the body of its prey, it is because of timing.
    Alles anzeigen

    Notizen/Notes
    Das Plugin ist noch in Beta Zustand. Bitte mit Vorsicht geniessen!
    Dazu gibt es ein paar Dinge zu beachten:

    • Wie schon erwähnt ist "- Sun Tzu" hard-codiert.
    • Wenn ein Spruch zu lange ist, wird es in Console Ausgabe umgebrochen, was leider die Farbe wieder zurücksetzt. Das werde ich demnächst fixen.
    • Sei sehr vorsichtig mit den Trigger Regexes. Wenn dein Regex für alles ein Match hat, werden alle zugespammt bei jedem chat überhaupt!!
    • Das Code ist immer noch sehr unschön. Ich werde das demnächst aufräumen und umfaktorieren.

    The Plugin is still in Beta condition. Use at your own risk!
    A couple of things to note:

    • As mentioned, the "- Sun Tzu" signature is hard-coded.
    • If a saying is too long the console forces a line-break which causes the color on the new line to be "reset". I will fix this soon.
    • Be very careful with the trigger regexes. If your regex matches everything every single chat event will trigger causing a bunch of console spam.
    • And finally, the code is still a mess. I will be cleaning it up and refactoring soon.


    Viel Spass!
    Enjoy!

  • Language Plugin

    • Orcrist
    • 21. Januar 2010 um 11:22
    Zitat von Dennis

    Hallo,
    das finde ich nicht Manu. Bei uns ist auch nur Deutsch, Englisch und Französisch erlaubt, alles andere führt nach zweimaliger Verwarnung zu permanentem Bann.
    Ich habe keine Lust, auf Leute, die meinen, sie könnten in anderer Sprache über uns ablästern oder den Chat mir ihrem Russisch-Gedöns zubrabbeln, von dem niemand etwas versteht.

    Ich kann nicht widerstehen
    Hier bin ich ganz Manu's Meinung. Warum kummert es dich, wenn es in einer anderen Sprache ist? Wenn du verstehst, dass die Lästern, ist es egal welche Sprache, oder? Dann sagst du den Leuten, dass sie aufhören sollten. Wenn du nicht verstehst... dann ist es nicht anders als würden sie private über dich lästern. Und wenn es um zu viel Spam geht, dann ist das auch egal welche Sprache :whistling: Es geht hier nicht um Sprache, sondern Verhalten.

    Letztendlich, ist so was nicht wirklich Gebiet eines automatischen Mechanismus. Wie Manu sagt, gibt es so viele Überlagerungen zwischen den Sprachen, und gerade eine Zeichenfolge wie 'le'?? :lol:

    Das wird wohl heissen, dass auch ein Franzoser, der 'le' in seinem Namen hat wird lauter kicks verursachen, wenn Leute ihn nur ansprechen? Oder man vertippt sich "ich versuche dein nachricht zu le sen" ich könnte am laufenden Band Beispiele bringen.

    ManuAdminMod ist eine tolle Sache, weil es die Arbeit leichter macht; aber es ist kein Ersatz für menschliches Verstand. Manchmal muss man einfach aufpassen, und leute ansprechen.

    Naja... meine Meinung.

  • Release: Version 0.11 beta

    • Orcrist
    • 20. Januar 2010 um 18:58
    Zitat von tommy77

    öhm, ich glaube nun gehts... 8o

    aber dann 2 andere fragen, habe noch nicht wieder ins wiki gesehen, aber was bewirkt das type setting.... noch steht es nirgends beschrieben??
    und wieso wirkt das type setting überhaupt wenn enabled auf 0 steht? :denken:

    danke und greetings
    --tommy77

    Ich habe das noch nicht 100% nachvollzogen, aber es hat wohl mit dieser "skip" befehl zu tun. Und zur zweiten Frage? Sieht aus als hätte Manu bei der einen Stellen übersehen, den "enable" Wert auszuwerten. Aber "type" tut er doch noch.

  • Release: Version 0.11 beta

    • Orcrist
    • 20. Januar 2010 um 17:46
    Zitat von tommy77

    ja gut, aber mam schreibt mir die map rotation immer noch um, genau da liegt der hase im pfeffer ?(

    --tommy77

    achso? :denken: hmmm. Das hast du vorhin nicht gesagt, oder? Redest du von einem anderen problem? When "enabled" und "type" auf 0 stehen tut das mapvoten gar nichts mehr.

  • Release: Version 0.11 beta

    • Orcrist
    • 20. Januar 2010 um 10:57
    Zitat von tommy77

    hallo,

    mal ne frage, wie kann man das mapvoten deaktivieren??? also in der config.cfg habe ich alles auf 0, wenn ich mam starte und connecte kommt immer noch der quatsch von wegen next map will be bla bla, type !skip for bla bla... ich will den quatsch nicht, also wo kann ich es abstellen??!!

    danke

    --tommy77

    Versuche es damit "type" auf 0 zu stellen. Es ist per default 2, und da kommt dieses Bescheid, auch wenn das enabled auf 0 steht, also:

    Code
    [mapvote]
     enabled = 0
     type = 0
     ...
  • Zeit zwischen Kick, Autokick,Tempban,Ban

    • Orcrist
    • 17. Januar 2010 um 11:43

    Noch dazu muss ich sagen. Was heisst, man kann nicht mehr in chat sehen? Ich staune immer, dass leute nicht von console Historie wissen ?(
    Tut man umschalt + consolentaste(^ bei mir) kommt die ganze Historie von chat, etc. Auch wenn man nicht mehr im Server ist.

  • Pluginvorschlag: Rechteentzug bei Clantagentfernung / Automatische Readconfig

    • Orcrist
    • 2. Januar 2010 um 16:09
    Zitat von Luk

    1. Da ich meinen Clan inzwischen zum Funclan umstrukturiert habe, wird es langsam immer nerviger die Admins.cfg immer wieder zu verwalten.

    Da sich meine Member manchmal einfach einen anderen Namen machen (ohne Clantag) oder das Clantag entfernen und somit aus dem Clan austreten, ists immer wieder nervig die drauf aufmerksam zu machen bzw. sie von allen Servern von Hand zu löschen -.-

    Daher wollte ich mal Orcrist oder die anderen fragen, ob man so ein Plugin schnell schreiben könnte, was die Memberrechte bei Entfernung des Namens (möglicherweise noch mit Zeitstrafe = Rechteentzug bis das Clantag wieder 10 min getragen wurde) entzieht.

    2. Des Weiteren ists immer nervig auf die Server entweder von Hand zu connecten oder per TCP Interface. Gibt's die Möglichkeit, dass !readconfig automatisch vom Mod aus alle 10 Minuten durchgeführt wird?

    Also !readconfig alle 10 minuten ausführen dürfte trivial sein... Das könnte ich in der nahe zukunft problemlos implementieren

    Aber erkennen nach den Namen, wer clantag entfernt oder so was, ist deutlich kniffliger :-/ Da musste schon ein relativ komplexe Logik rein. Ehrlich gesagt, wäre das für mich keine Priorität, da ich eher in die andere Richtung gehe gerade. Meine Ziele im moment, sind mehrere Funktionen einzubauen für 'normal' spieler. D.h. unter Anderem, eine Erweiterung für Stats, wo Benutzer ihre Preferenze speichern können, eine Umfrage, die Möglichkeit das vertraute Spieler zusammen andere kicken können (ein art begrenzte Abstimmung)... etc.

  • PHP-Error mod.class.php:253 => Undefined index: scr_axis

    • Orcrist
    • 1. Januar 2010 um 14:02

    Very strange. If I had to guess, I would say some of the rcon answers are coming back more slowly than ManuAdminMod expects. Manu mentioned in another thread that reading of values from rcon is unreliable.

    Looking at the code, it appears there is an internal timeout set for that. It might be that your system is running more slowly than the old setup.

    Try the following test:
    When nothing else is happening on the server, type:

    Code
    !rcon dvarlist scr_a*s


    and then

    Code
    !rcon dvarlist sv_maprotation*

    Note if there is any noticable delay before the answer comes. If those both return values, then I would say it's a performance problem. If that's the problem then you might be able to get it working by making the following change to ManuAdminMod. But first, note this might cause other problems with the mod, and it's definitely not "supported" per se. I'm not even sure if it will work. I'm only sure it will not cause you physical harm, and will not cause the rise of the machines :D

    In the adminmod folders find "classes/q3query.class.php". Make a backup copy first. Then open the file in a text editor and find the following 2 lines, they should be around line 55:

    Code
    private function getResponse() {
    stream_set_timeout($this->fp, 0, 7e5);

    The number we're screwing around with is the "7e5". Leave the first line alone. After every change you need to restart the mod. Try "8e5", then "9e5". so... for example:

    Code
    stream_set_timeout($this->fp, 0, 8e5);

    If that still doesn't work...maybe replace the 0 with 1 and delete the last bit, so like this:

    Code
    stream_set_timeout($this->fp, 1);

    If that *does* help... it might make ManuAdminMod slower... Manu might be able to say more exactly the effect... but the ideal thing is to improve the performance of the computer :(

  • Erweiterungen von tcp_query mit 'KILL' Information

    • Orcrist
    • 31. Dezember 2009 um 17:30
    Zitat von Luk

    Ich liebe dich :D

    Voll geil, was du alles hier einbaust! :)

    EDIT: Reicht !readconfig oder muss ich den Mod komplett neustarten?

    Mod neustarten :)

  • Erweiterungen von tcp_query mit 'KILL' Information

    • Orcrist
    • 31. Dezember 2009 um 12:09

    Hallo Zusammen,

    für diejenige die daran interessiert sind:
    Ich finde das TCP Console ungemein praktisch, um die Geschehnisse auf dem Server zu verfolgen (solange man vom Chat Tab fern bleibt), aber mir fehlte bisher den überblick wer wen gerade tötet oder getötet hat.

    Also habe ich tcp_query angepasst, um alle kills auszugeben...

    Nur über eins war ich nicht sicher
    :wo?: Sollte ich das hier posten? Oder im Plugins Thread?

    Naja, wer das haben will:
    Angehängt ist ein zip mit 2 Dateien:
    1. tcp_query.php - Dies ist ein angepasste 0.10.1 tcp_query. Wer ein unveränderte tcp_query.php hat kann diese hier drüber kopieren.
    2. tcp_query.patch - wer es lieber in patch format hat, z.B. ein verändertes tcp_query hat, kann diese benutzen.

    Fragen beantworte ich gern. 8)

    Viel Spass!

  • Voting - added feature: "setnextmap"

    • Orcrist
    • 30. Dezember 2009 um 22:29
    Zitat von Dennis

    Es überschreibt aber die originale Datei, gell?
    Nicht gut für bereits getane Änderungen, ich warte also dennoch auf ne neue Version,
    bzw. extrahiere mir die entsprechenden Zeilen xD

    Ja, schon. Aber welche Änderungen denn? Hast du eine Vorabversion vom nächsten Release? Auf jeden Fall sind meine Änderungen sehr übersichtlich... also kannst du mit einem Vergleichsprogramm ziemlich leicht die richtige Teile rausholen.

    Das wäre natürlich trivial, wenn das ganze in einem RCS wäre.... ;)

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