Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    62

    Lightbulb Start and Create Ini

    Hello,

    I created a script for all new comers!
    The good is an INI for the TS3 TS3 server build and server restart with the help of the ini then
    This is for Windows!

    UPDATE::
    The run is equal to one ts3server.ini and mysql_db config created equal, and hence also entered by the user!
    Then start the server!
    Both 32 and 64 BIT
    ::UPDATE

    Please give me Feedback!

    INSTALL::
    -> Unzip
    -> Copy File in your Ts3 Server Directory
    -> Run
    ::INSTALL

    ::SorceCode
    Code:
    @echo off
    color f6
    @echo ###############################
    @echo #                             #
    @echo #   Create by Teris Cooper    #
    @echo #  Copyright by Teris Cooper  #
    @echo # Mail: [email protected] #
    @echo #   Ts-Forum: Teris Cooper    #
    @echo #                             #
    @echo ###############################
    SETLOCAL enabledelayedexpansion
    FOR /F "usebackq tokens=1,2,3 delims=. " %%D IN (`DATE /t`) DO (
    ECHO %%F-%%E-%%D > %%F-%%E-%%D.txt
    SET dateiname=ts3server.ini
    ECHO !dateiname!
    )
    @echo.
    set /p mashin=Server ID (Default 0):
    set /p udp=Standartport (Default: 9987):
    set /p voice=Server IP:
    @echo.
    set /p lizenz=Liznezenverzeichnis:
    @echo.
    set /p tranudp=Datei Tranferport (Default 30033):
    set /p trans=Transfer IP:
    @echo.
    set /p queryudp=Query Port (Default 10011):
    set /p query=Query IP:
    set /p querlist=Query IP Whitelist:
    set /p black=Query IP Blacklist:
    @echo.
    set /p plugin=Datenbankplugin (beispiel: ts3db_mysql oder ts3db_sqlite3):
    set /p para=Datenbankpluginparameter (Für MYsql beispiel: datenbank.ini):
    set /p path=Datenbank SQL Pfad (Default: sql/):
    set /p type=Datenbank install SQL (beispiel: create_mysql/ oder create_sqlite/):
    @echo.
    set /p log=Logdatei Pfad:
    set /p comments=Query Log commants (1 = An; 0 = Aus):
    @echo.
    set /p server=Serverversion?
    @echo.
    ECHO.machine_id=%mashin% >> %dateiname%
    ECHO.default_voice_port=%udp% >> %dateiname%
    ECHO.voice_ip=%voice% >> %dateiname%
    ECHO.licensepath=%lizenz% >> %dateiname%
    ECHO.filetransfer_port=%transudp% >> %dateiname%
    ECHO.filetransfer_ip=%trans% >> %dateiname%
    ECHO.query_port=%queryudp% >> %dateiname%
    ECHO.query_ip=%query% >> %dateiname%
    ECHO.query_ip_whitelist=%querylist% >> %dateiname%
    ECHO.query_ip_blacklist=%black% >> %dateiname%
    ECHO.dbplugin=%plugin% >> %dateiname%
    ECHO.dbpluginparameter=%para% >> %dateiname%
    ECHO.dbsqlpath=%path% >> %dateiname%
    ECHO.dbsqlcreatepath=%type% >> %dateiname%
    ECHO.logpath=%log% >> %dateiname%
    ECHO.logquerycommands=%comments% >> %dateiname%
    
    SETLOCAL disabledelayedexpansion
    
    IF %plugin% == ts3db_mysql GOTO:data
    IF %server% == 64 GOTO :64_BIT
    IF %server% == 32 GOTO :32_BIT
    
    :64_Bit
    ts3server_win64.exe inifile=ts3server.ini
    :END
    
    :32_BIT
    ts3server_win32.exe inifile=ts3server.ini
    :END
    
    :data
    SETLOCAL enabledelayedexpansion
    FOR /F "usebackq tokens=1,2,3 delims=. " %%D IN (`DATE /t`) DO (
    ECHO %%F-%%E-%%D > %%F-%%E-%%D.txt
    SET dateiname_2=%para%
    ECHO !dateiname!
    )
    set /p host=Host (127.0.0.1):
    set /p port=Port (3306):
    set /p user=username (root):
    set /p password=Password:
    set /p database=Database (ts3):
    
    ECHO.[config] >> %dateiname_2%
    ECHO.host=%host% >> %dateiname_2%
    ECHO.port=%port% >> %dateiname_2%
    ECHO.username=%user% >> %dateiname_2%
    ECHO.password=%password% >> %dateiname_2%
    ECHO.database=%database% >> %dateiname_2%
    SETLOCAL disabledelayedexpansion
    :END
    PAUSE
    ::SorceCode

    This is on Germeny!
    Last edited by Teris Cooper; August 4th, 2010 at 01:54 AM.

  2. #2
    Join Date
    December 2009
    Location
    Germany
    Posts
    62

    Exclamation

    Version 2 Is Now online

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: March 15th, 2018, 12:09 PM
  2. Replies: 1
    Last Post: May 6th, 2013, 09:05 AM
  3. Cannot start server from start menu
    By sitting duck in forum Windows
    Replies: 0
    Last Post: March 20th, 2010, 01:37 AM
  4. Replies: 9
    Last Post: February 7th, 2010, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •