PDA

View Full Version : Improved boot5zones


Pneu
01-24-2003, 09:51 AM
I have changed my boot5zones.bat file with some subtle changes that I think some of you may appreciate, so i'm posting it here :)


@echo off
start Minilogin
start zone . localhost 7995 localhost
start zone . localhost 7996 localhost
World
cls
exit


Including start Minilogin launches the login as a seperate task (in it's own window) thus saving you having to click a seperate shortcut.

I reduced the zones down to 2 which when developing a server is all you need - more than this is only needed when you have multiple players or persistent zones.

I included World in the batch file but did not launch it with start, this launches the world application in the same window as the batch file, thus preventing it from becomming a redundant memory hole.

I reversed the order of cls and exit, which enables the script to close without error, although this is only relevent if you use 'start world' or do not launch world automatically.

Hope that's helpful to someone :)

Pneu

Lurker_005
01-24-2003, 01:26 PM
World should be started before the zones, you get away with it because the zones are taking so long to load everything. I would suggest changing it to
@echo off
start Minilogin
start World
start zone . localhost 7995 localhost
start zone . localhost 7996 localhost


Really no need for cls or exit, batch files close when finished anyhow. And why clear the screen when your closing hte window.

Pneu
01-24-2003, 01:51 PM
I do agree with you on the cls Lurker :), but I think but i'm not sure that without exit under Win95/WinMe series the window stays open but says finished. Not sure about that though.

As for if you have a small db (ie. an empty one) the bigger problem than world would be minilogin I think, you'd find that world and zone servers do not connect to it because that takes a min or so to load.

Given even a relatively small database, both these issues would dissapear.

Pneu