can I make an .cfg file for my server

Discussion about specific ET servers

Moderators: Forum moderators, developers

Post Reply
Bartjuh
Posts: 3
Joined: Sun May 09, 2004 5:18 am

can I make an .cfg file for my server

Post by Bartjuh »

Hi,

I run an dedicated server
and I dont run it 24 oures so i close it down when i shut down my pc
but I have semiadmin levels and banners and that are 20 banners
and everytime when i wanna host it again i must typ all those banners again I get sick of it cant i make an file that when i host it again it stays.....??

plz help me and tell me that I can make it :?: :oops:
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

its kinda simple

the .cfg is just in text format

i suggest you copy past the example.cfg then open it whit a text editor (wordpad)

then remove all text the inside it

then you can add all your stuff into it like

Code: Select all

set b_banner1 "bla"
set b_banner2 "bla"
and so on

then make sure you put the file inside ..etdir/etpro

then when your server starts (or add it to the commandline) exec thenyourconfigfilename.cfg

this will load the .cfg and all the settings
Bartjuh
Posts: 3
Joined: Sun May 09, 2004 5:18 am

Post by Bartjuh »

Like this?



b_semiadminlevels 3

set b_semiadminpass1 boolyhoo
set b_semiadmincmds1 cp say cancelvote

set b_semiadminpass2 yougotthepower
set b_semiadmincmds2 clientkick shuffle_teams cp say cancelvote

set b_semiadminpass3 youareworthy
set b_semiadmincmds3 mute unmute swap_teams shuffle_teams cancelvote cp bp g_speed g_gravity say passvote clientkick map_restart




set b_banners 20
b_bannerlocation 4
b_bannertime 10

set b_banner1 Welcome to our server
set b_banner2 Ur connected to 80.100.89.248:27960
set b_banner3 REFS don’t change settings!
set b_banner4 When REFS change some settings post that at atfsupport@hotmail.com !!!
set b_banner5 Only 1 TEMP a time.
set b_banner6 Leader : ^1=^9[^7ATF^9]^1=^9K^7i^1LL^7e^9R^7, Admin : ^1=^9[^7ATF^9]^1=^7Ba^9R^1t^9J^7uH
set b_banner7 Don’t ask for higher rankings
set b_banner8 When you want to join ^1=^9[^7ATF^9]^1=^7 Visit our website at : www.atfclan.tk
set b_banner9 No backtalk to the referee’s
set b_banner10 No cheating or you will be caught!
set b_banner11 Don’t block the doorways!
set b_banner12 No spamm or you will get muted
set b_banner13 No Vote-Spamm or you will get muted
set b_banner14 REFS have to handle out warnings before they may ^1KICK ^7or ^1MUTE
set b_banner15 Who disagree our rules isn’t welcome
set b_banner16 When you want to join ^1=^9[^7ATF^9]^1=^7 Visit our website at : www.atfclan.tk
set b_banner17 Normal g_speed is 325 and g_gravity 800.
set b_banner18 REFS : Don’t change the map, Settings, or kick without reason or you will lose ur rights!
set b_banner19 REFS : 3 ^1KICK ^7warnings. 2 ^1MUTE ^7Warnings.
set b_banner20 Good luck & Have fun on our server !


team_maxFlamers 1
team_maxMortars 1
team_maxPanzers 2
team_maxMines 16
set b_privatemessages 2
set b_spectatorNames 2




does this work and must i place it in D:\Wolfenstein - Enemy Territory\etpro

and with my shortcut like this "D:\Wolfenstein - Enemy Territory\ET.exe" +set fs_game etpro +set exec Server.cfg
??
Klar
Posts: 2
Joined: Mon May 17, 2004 10:38 am

Post by Klar »

You're probably going to need quotes around those strings.
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

yeh if you sue a spaces between the values you need to quick "g_speed kick bla"

this is not needed for litle numers like g_balanceteams 1

as for the rest it does goto in /etpro

it also works from etmain anyway but its best in etpro

and yes +exec server.cfg if the cfg is named like server.cfg
Post Reply