Anmelden Register

Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Minecraft Vanilla Server Toolset (alte Version)
#1
******************************************
Der Thread ist veraltet. Die aktuelle Version findet ihr unter dem neuen Thread.
Das neue Repo ist auf Github zu finden: https://github.com/uhuc-de/minecraft-van...er-toolset

******************************************


Ich zitier einfach mal die readme.txt
Code:
================================================================================
======================= Minecraft Vanilla Server Toolset =======================
================================================================================

... is a compilation of different Skripts. This Bundle isn't a "all-round
carefree package" for wannabe Serveradministrators who want an "easy to use"
Window where they can click through. If you are familiar with Linux and the
Shell you should have no problems to run the skripts and maybe edit them as you
want.


================================================================================
wrapper.py

Depencies:
    python 2.*


Description:
    Starts the Minecraftserver and provides a TCP-Port for incomming Client
    connections. It broadcasts the output from the minecraft_server.jar to
    the clients and forward every input from the clients to the Server.


Configuration:
    Can be found in config.py

    command
        The process for the Minecraftserver. eg:
        "java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui"

    ip
        If you want to bind the socket to a specific IP. Otherwise use
        "127.0.0.1" or "localhost".

    port
        Port to serve Clients.

    buffersize
        Buffer of the TCP-Connection to the Clients. Has to be x^2.
        Default: 1024

    linebreak
        Linebreaker for the command-process. Unixdefault: "\n"


Installation:
    No installation required.



================================================================================
tracer.py


Depencies:
    python 2.*
    nbt (https://github.com/twoolie/NBT)
    cron
    

Description:
    This tool gets the position of every Player on the Server and saves it
    in a Database. There won't be a record, if the player doesn't move.

    Arguments:
        <nothing>     - Starts the Client for a Query
        install     - Setup the Database
        log         - Write a record of every Player
        clean         - Erase every Record in the Database.

Configuration:
    Can be found in config.py

    database-path
        Path to the sqlite3-file which should contains the Logdata.
        eg: "./" if it is in the same Directory as the playerlog.py
        or "/path/to/the/file/".
        The String must be end with "/"!

    player-path
        Path of the Map-Save where the player.dat are.
        eg: "mymap/players/" or "/path/to/my/map/example/players/"
        The String must be end with "/"!

    radius
        Radius for the coordinate based search.
        Default for a 1 minute based log: 240

Installation:

    After the configuration, you have to run:
    $ python2 /path/to/playerlog.py install
    This will create Database and Table for the Records.

    You need to add the line
    */1 * * * * python2 /path/to/playerlog.py log
    to the crontab.



================================================================================
ircbridge.py


Depencies:

    python 2.*


Description:

    Transmits the Ingame-Chat to the IRC-Channel and vice versa.


Configuration:
    Can be found in config.py
    
    network
        Hostname or IP of the IRC-Network.

    port
        Port of the IRC-Network. Default: 6667

    timeout
        TCP-Timeout of the IRC-Socket.

    buffersize
        Buffersize of the TCP-Connection to the IRC-Server.

    channel
        Name of the IRC-Channel, eg: "#example".

    channelpw
        If the channel is password protected. Otherwise let it "".

    botname
        Name of the Bot (Nick and Identidy).

    owner
        Name of the Botowner.

    password
        If the account of the bot is registered. Otherwise leave it
        blank.


Installation:
    No installation needed.



================================================================================
pipe2server.py


Depencies:
    python 2.*


Description:
    Forward every argument to the Wrapper.
    $ ./pipe2server say something to the user


================================================================================
updater.sh


Depencies:
    pipe2server.py

Description:
    A simple skript that restarts the Server and downloads the newest
    minecraft_server.jar from www.minecraft.net

Download: http://files.saiphx.de/mvst_1.tar.bz2
#2
Was macht dieses Toolset?
#3
[Bild: are-you-fucking-kidding-me-face.png]
#4
aso sry habv nich des ganze script gelesen
#5
Das MVST wird jetzt mit git organisiert. Das Repo ist unter git://saiphx.de/mvst.git klonbar. Änderungen zur initialen Version vom 1. Post sind in den commits nachzulesen. Patches bitte an cyd gmx de

Größere Neuerungen werd ich hier in den Thread reinschreiben.
#6
Kleines Update:

Obwohl ich in den letzten Monaten nicht wirklich viel Zeit in das Toolset gesteckt habe, wollt ich trotzdem mal eine Meldung rausgeben. Das Projekt ist noch am laufen.^^ Momentan wird Gregs Dämon Skript adaptiert und dessen Funktionen übernommen (start, stop, status, whitelist <user>, map, etc).

Bisher vollständige Änderungen:
- Tracerclient: man kann jetzt die Datenbank vom Tracer leichter auslesen/analysieren.
- activity: erstellt aus der Tracerdatenbank ein Pie-Chart mit der Aktivität einzelner User.
- Control.pm: Gregs Skript um den Server zu "steuern". ( Quelle: git://141.li/mcwrap )
- Configs der jeweiligen Skripts stehen jetzt immer in den Skripts selbst (zumeist am Anfang).
#7
Ich hab das Projekt mal auf Gitorious hochgeladen.

https://gitorious.org/minecraft-vanilla-server-toolset

Das Repo ist Teil der uhuc-developers.
#8
Hab die Wochen einen rewrite gemacht:
https://gitorious.org/mvst2/mvst2

Bisher sind nur Tracer, Tracer-Client, sowie der Wrapper und control.pm enthalten. Große Änderung ist die Verwendung von Argumenten anstelle von Configdatein. Außerdem nutzt der Wrapper UnixSockets um sich mit Clients zu unterhalten.

Aus meiner Sicht fehlt nur noch ein Skript zur Steuerung eines Dämons: minecraftd <start|stop|restart|status>
#9
In der aktuellen Version des Minecraft Vanilla Server Toolsets ist der Dämon enthalten. Dieser enthält auch alle wichtigen Einstellungen und startet anhand derer einige der anderen Skripte mit.

Wrapper Steuerung: minecraftd start|stop|restart|status

Zum MC-Server was weiterleiten: minecrafd say|control
say $1 ist im Grunde ein control /say $1

Aktualisieren und Sichern: minecraftd update <version> bzw minecraftd backup daily|weekly|<reason>

Aufzeichnen der Spielerpositionen: minecraftd tracer log


Soweit ist imho alles einsatzbereit. Was allerdings noch fehlt bzw mich stört:

- Die Einstellungen von control.pm kann man nicht via Argument umstellen (geht hauptsächlich um die Socketadresse)
-- alternativ: Rewrite von control.pm in Python mit curses (wer sich damit auskennt, bitte bei mir melden^^)
- IRC-Bridge für Unixsockets
- activity-skript portieren (pie-chart der Useraktivität und zuletzt online)
- Beispiel-Client für die Unixsockets bereitstellen.

Alles zufinden unter: https://gitorious.org/mvst2/mvst2




Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste