Beiträge vom 22. Oktober 2008

CounterStrike:Source-Server (SRCDS) Anti-Crash Startscript für Windows (Batch)

Mittwoch, 22. Oktober 2008 7:08

Hier mal ein simples CounterStrike:Source-Server (SRCDS=SourceDedicatedServer) Anti-Crash Startscript für Windows (Batch,DOS,com,bat) welches ich auf Wunsch geschrieben habe.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
@ECHO OFF
TITLE CounterStrike Source Windows Server Startscript (simple) v.1.0
:# CounterStrike Source Windows Server Startscript (simple)
:# Version: 1.0
 
:# Author:
:# Björn Oppermann ([LAG]Natural)
:# clan-lag.ath.cx
 
:# Function:
:# CounterStrike Source Server Startscript for Windows.
 
:# Requirement:
:# nothing
 
 
:############################*
:# Configuration (Required):
:#
 
:# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
:# #~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~#
:# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
:# ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended)
:# ~~ Params: Existing user on your system
:SYS_USER="root" # ~~ not required under windows
 
:# ~~ Description: Path to the root directory of the server
:# ~~ Params: System path
SET SYS_DIR=J:\SRCDS\
 
:# ~~ Description: Server daemon
:# ~~ Default Value: srcds_run
SET SYS_DAEMON=srcds.exe
 
:# ~~ Description: Name of the server on your system
:SYS_NAME="CSS001" # ~~ not required under windows
 
:# ~~ Description: Description of the server
SET SYS_DESC="My first CounterStrike Source Server"
 
:# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
:# #~~ 2. SERVER START PARAMETER ~~~~~#
:# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
:# ~~ Description: IPv4 Address of your server
:# ~~ Params: XXX.XXX.XXX.XXX
SET START_PARAMS_IP=192.168.1.2
 
:# ~~ Description: Port of your server
:# ~~ Params: Between 27015 and 30000
:# ~~ Default Value: 27015
SET START_PARAMS_PORT=27015
 
:# ~~ Description: Defines the default maps
:# ~~ Params: Every on the server installed map is possible
SET START_PARAMS_MAP=de_dust2
 
:# ~~ Description: Defines the amount of player slots
:# ~~ Params: Between 1 and 32
SET START_PARAMS_MAXPLAYERS=14
 
:# ~~ Description: Defines wether VAC (Valve Anti Cheat) is activated
:# ~~ Params: secure / insecure
:# ~~ Default Value: secure
SET START_PARAMS_SECURE=secure
 
:# ~~ Description: Pingboost
:# ~~ Params: 0 / 1 / 2 / 3
:# ~~ Default Value: 0
SET START_PARAMS_PINGBOOST=0
 
:# ~~ Description: Defines the tickrate
:# ~~ Params: 33 / 66 / 100 / 125
:# ~~ Default Value: 33
SET START_PARAMS_TICKRATE=100
 
:#
:# CONFIGURATION END
:############################*
 
 
 
:# ~~~ DON'T EDIT ANYTHING BELOW THIS LINE - ACCEPT YOU KNOW WHAT YOU ARE DOING ~~~
 
 
:############################*
:# STARTSCRIPT CORE START
:# 
 
ECHO °° INFORMATION °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
echo.
ECHO  Script:         CounterStrike Source Windows Startscript (simple)		
ECHO  Version:        1.0						
ECHO  Author:         Bjoern Oppermann					
ECHO  Website:        clan-lag.ath.cx					 
ECHO  Creation Date:  2008-09-09					
ECHO  Last Update:    2008-09-09					 
echo. 									              
ECHO °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
 
:# ~~ Assembly start parameters
SET PARAMS=-game cstrike -console -pingboost %START_PARAMS_PINGBOOST% +map %START_PARAMS_MAP% +maxplayers %START_PARAMS_MAXPLAYERS% -%START_PARAMS_SECURE% -tickrate %START_PARAMS_TICKRATE% +ip %START_PARAMS_IP% -port %START_PARAMS_PORT%
 
ECHO Starting %SYS_DESC% . . .
ECHO SRCDS still running in console mode.
ECHO To stop SRCDS you may type "exit" or "quit" in the SRCDS-conole.
CALL %SYS_DIR%%SYS_DAEMON% %PARAMS%
:#
:# STARTSCRIPT CORE END
:############################*
 
 
ECHO Bye,bye.
EXIT

  startscript_simple.cmd (3.4 KiB, 82 hits)

Die Konfiguration ist, denke ich mal, weitestgehend selbsterklärend.

Viel Spass.

PS: Demnächst kommt noch eine Extended Version.

Clanserver von STRATO supergünstig - Hier klicken!

VN:F [1.7.5_995]
Rating: 10.0/10 (1 vote cast)
VN:F [1.7.5_995]
Rating: 0 (from 0 votes)
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Current
  • Faves
  • HackerNews
  • HealthRanker
  • HelloTxt
  • Yigg
  • Socialogs
  • Webnews.de
  • Simpy
  • MyShare
  • MSN Reporter
  • ThisNext
  • MisterWong
  • MySpace
  • LinkArena
  • Live
  • MisterWong.DE
  • Symbaloo
  • Suggest to Techmeme via Twitter
  • Twitter
  • Twitthis
  • RSS
  • email
  • PDF
  • Print

Thema: Batch, Sripting, Windows | Kommentare (1) | Autor: Björn Oppermann

Erstes PHP Script und CodeBox-Test

Mittwoch, 22. Oktober 2008 4:47

1
2
3
< ?php
phpinfo();
?>

  phpinfo.php (19 bytes, 65 hits)

Dies ist das erste Script, welches ich hier veröffentlichen möchte und um die Codebox zu testen.
Es dient zum Testen, ob PHP auf einem Webserver läuft und welche Erweiterungen installiert sind.

VN:F [1.7.5_995]
Rating: 10.0/10 (1 vote cast)
VN:F [1.7.5_995]
Rating: +1 (from 1 vote)
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Current
  • Faves
  • HackerNews
  • HealthRanker
  • HelloTxt
  • Yigg
  • Socialogs
  • Webnews.de
  • Simpy
  • MyShare
  • MSN Reporter
  • ThisNext
  • MisterWong
  • MySpace
  • LinkArena
  • Live
  • MisterWong.DE
  • Symbaloo
  • Suggest to Techmeme via Twitter
  • Twitter
  • Twitthis
  • RSS
  • email
  • PDF
  • Print

Thema: Allgemein, PHP, Sprache | Kommentare (1) | Autor: Björn Oppermann

Easy AdSense by Unreal