Glyph Posted October 21, 2008 Posted October 21, 2008 (edited) ;CSS Map dumper v0.1 ;BY Glyph ;feel free to modify this, just add me to credits!! #include <File.au3> $filearray = _FileListToArray("C:\SRCDS\cstrike\maps", "*", 1) ; change directory to the maps folder _FileWriteFromArray("test.txt", $filearray) $lines = _FileCountLines("test.txt") $i = 0 $file = FileOpen("final.txt", 1) Do $i += 1 $lineread = FileReadLine("test.txt", $i) $split = StringSplit($lineread, ".") If $split[0] = 2 Then;array = 2 splits (if anythign else you will error) If $split[2] = "bsp" Then;extension to dump FileWrite($file, $split[1] & @CRLF) ConsoleWrite("Line: " & $split[1] & @CR) EndIf EndIf Until $i = $lines FileClose($file) FileDelete("test.txt");duh For Counter-Strike Source dedicated server admins. Dumps all .bsp documents to a .txt that you can use in your mapcycles.txt! Before, I had to manually copy and paste them all. So... I said this is too slow, and made this. Edited October 21, 2008 by Glyph tolle indicium
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now