No problem.

note, the last line you will want to change to del *.bsp & del *.nav
Either of these file extensions left in the cfg folder will be file
collisions.

As another note, you can also copy a pre-built file, instead of doing an
echo, or better you could get a junction maker (like NTFSLink for
example) that will create NTFS hardlinks to a single configuration file.

so much is possible through the OS itself.

For more information of batch scripting in windows, go to ANY windows xp
box, and open the help and support center. Type "command shell overview"
into the search box. This is quite well documented, and I'd recommend
getting familiar before vista, which is said to have a new shell with
expanded capabilities.

DOS may be dead, but cmd lives on, and it's better.

SKELETOR wrote:
now that.. i like... i merely did not want to go through and change file
names, and past contents to that many files, that manually would take a
long
time... and scripting i know LITTLE about, and was pretty sure there would
be something, but due to lack of knowledge i decided not to ask, but i will
tinker with that, and thank you for this responce.

----- Original Message -----
From: "James Tucker" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, September 07, 2005 7:14 AM
Subject: Re: [hlds] stop nav creation in srcds


meh.

here's an old script used to rapidly generate some stuff for surf maps:

@echo off
FOR %%f in (surf_*.bsp) DO echo sv_airaccelerate 100 > cfg/%%f
cd cfg && rename *.bsp *.cfg

But seeing as this will take sooooo long to do for his problem, we could
start by changing it like this:

@echo off
FOR %%f in (*.bsp) DO echo bot_quota 0 > cfg/%%f
FOR %%f in (*.nav) DO echo bot_quota 10 > cfg/%%f
cd cfg && rename *.nav *.cfg && rename *.bsp *.cfg
delete *.bsp

This is a simple script that uses filename collision dependancy. You
could build a better solution that uses:

IF [ -F somefile ]

and so on, for more informaiton on windows command syntax, try cmd /?
and the help command. Once again, this is much better documented than
you give your operating system credit for, and DOES NOT TAKE "A LONG
TIME".

Either way, it seems you have little interest in this thread as you
insist that your most favoured solution would be to try and stop the
game from creating the nav files. Your choice solution is up to you, but
I can assure you that this one has a quicker response time than
redeveloping any part of source, if for no other reason than these
scripts are not subject to major development checks as there is no need.

EOD.






_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to