alright, well i tried that, and i couldn't get it to work, cuz i would like
to do this and create cfg files for all the maps that aren't surf maps
setting it to exec bot1.cfg, and then making the server default to no bots.
but if i save that in a bat file, it says file can't be found, or something,
its hard to read it goes away soo fast, and if i try to exec it manually in
cmd, it first says "%%f was not expected at this time" and then for the next
line it says The system cannot find the patch specified. and like i said i
know little to nothing about codeing, when i made the bat file i put it in
the directory where i copied the map folder too, and when i tried to exec it
from cmd i navigated to that same directory, i would assume this would have
to be so, i odn't know why this isn't working.

thank you for your help with this, i didn't even think about making some
sort of script like this, mainly cuz i have no clue how.
-skel

----- 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

Reply via email to