Multiple UCC batch files
Ok, so you've made your first mod, you've compiled it with UCC. Now you're making several mods. Isn't it a pain in the backside having to adjust the ini file each time you want to compile a different package, only then to forget you didn't delete the packages in the first place so that it doesn't recompile it? There's a very simple and effective way of setting up multiple UCC compiles, and I'm going to show you how.
Create a folder on your desktop named UCC Batch files. For this tutorial
we'll keep everything where we can find it.
Now, navigate to your Unreal (Unreal, UT or UT2003) system folder and
copy the ini file (Unreal.ini, UnrealTournament.ini or Ut2003.ini). Rename
this to what you wish (for this tutorial MySecondMod.ini), keeping the
.ini extension. Now in this file set up the editpackages to a different
package you are compiling.
In your desktop UCC Batch files folder, create a new batch file (.bat
extension) and call it MySecondMod.bat
Open up notepad, load this file up and prepare to get editing.
Type this:
-----------------------------
Cd C:\UnrealTournament\System
*Make sure to replace the drive letter with your own, and the game folder (Unreal, UnrealTournament, UT2003 etc)*
Ren UnrealTournament.ini Oldini.ini
*Again, UnrealTournament.ini, Unreal.ini or UT2003.ini, depending on which game this is for*
Ren MySecondMod.ini UnrealTournament.ini
*See above, only with your custom ini this time*
Ucc make
*Calls the ucc program to recompile*
Ren UnrealTournament.ini MySecondMod.ini
*Rename the ini back*
Ren Oldini.ini UnrealTournament.ini
*Same rules apply*
------------------------