2.0 Sample Batch file for Server

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

2.0 Sample Batch file for Server

Post by Sir Lance-A-Lot »

Well this is how I run my servers. (WinXP)
I always have trouble with it locking up withought -d -d -d -d in the line.
Try this for easier server startup.

Its kinda easier just to write batch files for everything. I make like 2 a day for all kinds of things.
If you want it, open Notepad and write this:

Code: Select all


@Echo On 

bzfs.exe -conf bzfs.conf 
 
If your not gonna use the conf (I dont - It never works for me) type your batch file like this:

Code: Select all


@Echo On 

bzfs.exe -publicaddr whatever.thing.com:5154 -j -sb -fb -d -d -d -d.......... 


Now when your done typing it out (In Notepad) save it as:
start_server.bat
Save it in the same folder as your bzfs stuff is.
Make sure the "All Files" option is selected before saving.

Image


Now run it - It should work
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

a shortcut and a config is much better to do for a double click option. Then you don't need the text editor.
ImageJeffM
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

The config never runs succesfully for me in WinXP. It never loads a map, and it always has errors.
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

config's wor fine for me on XP.
perhaps your config has errors.

There are limits to how long a command line can be, even in a bat file. The config file gets around that limitation.

If you have real duplicatable bugs with configs, please report them, so they can get fixed.

The config is the best way to start a server and is here to stay. I'd like all bzbb tutorials to use configs, since they are platform inspecific. Bat Files are windows specific.
ImageJeffM
Post Reply