done with the AU power pack (ithink?!)
::Author - Trovaner::Description - Makes a list of RA2 component names, files, and weights::What To Do - :: 1. Put this in the same folder as the RA2 component text files:: 2. Double click this batch file:: 3. Save the file or copy/paste it into something else:: 4. Complete the formatting listed here: https://gametechmods.com/forums/showthread.php?t=2714:: 5. Reply to the above thread with your resultsfor %%a in (*.txt) do (set file=%%a & call :Create "%%a")if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :Create "%%b"))goto Complete:Createfor /F "tokens=*" %%c in (%file%) do set %%cfindstr /b mass %file%if errorlevel 1 (findstr /b name %file%if errorlevel 1 (::Loaded if the file is not being loaded correctly or if it is not a component text fileset file=%file:styles\=%echo FileError: %file% >> Problems.tmpgoto :EOF)::Loaded if the mass value is not listed in the text fileset file=%file:styles\=%echo MassError: %name :~1%, %file:~0,-1% >> Problems.tmpgoto :EOF)::Loaded if there were no problemsset file=%file:styles\=%echo %name :~1%, %file:~0,-1%,%mass % >> TextFileList.tmpgoto :EOF:Completeif exist Problems.tmp (START /w NOTEPAD.EXE Problems.tmpdel Problems.tmp)START /w NOTEPAD.EXE TextFileList.tmpdel TextFileList.tmp
::Author - Trovaner::Description - Makes a list of RA2 component names, files, and weights::What To Do - :: 1. Put this in the same folder as the RA2 component text files:: 2. Double click this batch file:: 3. Save the file or copy/paste it into something else:: 4. Complete the formatting listed here: https://gametechmods.com/forums/showthread.php?t=2714:: 5. Reply to the above thread with your resultsfor %%a in (*.txt) do (set file=%%a & call :Create "%%a")if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :Create "%%b"))goto Complete:Createfor /F "tokens=*" %%c in (%file%) do set %%cfindstr /b mass %file%if errorlevel 1 (findstr /b name %file%if errorlevel 1 (::Loaded if the file is not being loaded correctly or if it is not a component text fileset file=%file:styles\=%echo %file% >> FileError.tmpgoto :EOF)::Loaded if the mass value is not listed in the text fileset file=%file:styles\=%echo %name :~1%, %file:~0,-1% >> MassError.tmpgoto :EOF)::Loaded if there were no problemsset file=%file:styles\=%echo %name :~1%, %file:~0,-1%,%mass % >> TextFileList.tmpgoto :EOF:Completeif exist MassError.tmp (START /w NOTEPAD.EXE MassError.tmpdel MassError.tmp)if exist FileError.tmp (START /w NOTEPAD.EXE FileError.tmpdel FileError.tmp)START /w NOTEPAD.EXE TextFileList.tmpdel TextFileList.tmp
I damn sure hope you'll release some sort of API for all of this.
What kinda stuff would you want access to, and what kinda stuff would you want to do?
http://www.robotcombatgames.com/botexchange.php
Anybody seen Trov lately?
::Author - Trovaner::Description - Makes a list of RA2 component names, files, and weightsfor %%a in (*.txt) do (set file=%%a & call :Create "%%a")if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :Create "%%b"))goto Complete:Createfor /F "tokens=*" %%c in (%file%) do set %%cfindstr /b mass %file%if errorlevel 1 (findstr /b name %file%if errorlevel 1 (::Loaded if the file is not being loaded correctly or if it is not a component text fileset file=%file:styles\=%echo "%file:~0,-1%" >> FileError.tmpgoto :EOF)::Loaded if the mass value is not listed in the text fileset file=%file:styles\=%echo "%name :~1%", "%file:~0,-1%", >> MassError.tmpgoto :EOF)::Loaded if there were no problemsset file=%file:styles\=%echo "%name :~1%", "%file:~0,-1%",%mass % >> TextFileList.tmpgoto :EOF:Completeif exist FileError.tmp (START /w NOTEPAD.EXE FileError.tmpdel FileError.tmp)if exist MassError.tmp (START /w NOTEPAD.EXE MassError.tmpdel MassError.tmp)START /w NOTEPAD.EXE TextFileList.tmpdel TextFileList.tmp