Lunazure
11-08-2009, 07:56 AM
Hey guys! Well the UDK tutorials are still in the works, but for now I'll be putting out Quick Tips every once in a while. These will essentially be mini-tutorials focused on individual tasks, improving your project workflow, or just learning something cool that could be used in your game. Today's Quick Tip is for those of you who are interested in managing multiple UDK projects and keeping them organized. Let's get started!
First let's go to UDK > UDK-2009-11 > Development > Src. This is where the MyMod directory is, which is where you would normally put your custom scripts. But we want to add more projects and seperate them in an organized fashion. So, start by adding a new folder here and calling it MySecondMod (or whatever you want your next project to be).
http://i289.photobucket.com/albums/ll203/NickPfisterer/AddingANewModFolder.jpg
Now open your new folder and add a new one in here called Classes. This is the folder you'll put your scripts in, just as you have been doing with MyMod.
Once you have that set up, navigate to UDK > UDK-2009-11 > UTGame > Config. Look for UTEngine.ini and double-click to open it with Notepad or whatever text editor you prefer to edit configuration files.
Scroll down until you find the [UnrealEd.EditorEngine] section. Scroll down towards the bottom of this section and look for the line "ModEditPackages=MyMod".
(For those of you who haven't done this yet, there will be a ';' in front of the line. This symbol is used to comment out anything you DON'T want UTFrontEnd to compile. Deleting it and saving the file will ensure that this mod package will be compiled next time you run Make.)
Add a new line below that and type ModEditPackages=MySecondMod.
http://i289.photobucket.com/albums/ll203/NickPfisterer/AddingANewConfigLine.jpg
You can add as many packages as you want in this fashion, but you can only work on one project at a time right? Simply put a ';' in front of every project that you DON'T want UTFrontEnd to compile, as seen below. This allows you to easily change which project you want to work on.
http://i289.photobucket.com/albums/ll203/NickPfisterer/CommentingProjectsOut.jpg
Once you've done that, save and exit the file. Your new project is now ready to run. But wait! What about your packages containing all your project's assets? Well, you could just put them in the UTGame > Content folder, but that could get cluttered and tedious very quickly. To avoid this headache, let's go back to UDK > UDK-2009-11 and create a new folder called MySecondMod.
http://i289.photobucket.com/albums/ll203/NickPfisterer/NewContentFolder.jpg
I believe you can use whatever directory structure you want from here, but for the sake of this tutorial, I'll be using the standard UTGame structure. Go ahead and add a new folder inside of MySecondMod and call it Content. In there, add another folder called Packages. This is a good place to add a Maps folder as well if you want to keep everything related to your project in one place. Place your packages inside of the Packages folder. Done? Ok. Now it's time to set up easy access to those packages from within the editor.
Open the UTEngine.ini file again, this time scrolling down to the [Core.System] section. Scroll through this section and look for a line that reads Paths=..\..\UTGame\Content. Add a new line below this one and type Paths=..\..\MySecondMod\Content.
http://i289.photobucket.com/albums/ll203/NickPfisterer/NewConfigLineForProjectContent.jpg
Save this out, and you're ready to go! Below is a screenshot of my results to show you how easily your packages can now be accessed within the editor.
http://i289.photobucket.com/albums/ll203/NickPfisterer/Results.jpg
I hope you guys have found this Quick Tip to be helpful. I look forward to seeing what exciting new games come out of this community. :)
Lunazure
First let's go to UDK > UDK-2009-11 > Development > Src. This is where the MyMod directory is, which is where you would normally put your custom scripts. But we want to add more projects and seperate them in an organized fashion. So, start by adding a new folder here and calling it MySecondMod (or whatever you want your next project to be).
http://i289.photobucket.com/albums/ll203/NickPfisterer/AddingANewModFolder.jpg
Now open your new folder and add a new one in here called Classes. This is the folder you'll put your scripts in, just as you have been doing with MyMod.
Once you have that set up, navigate to UDK > UDK-2009-11 > UTGame > Config. Look for UTEngine.ini and double-click to open it with Notepad or whatever text editor you prefer to edit configuration files.
Scroll down until you find the [UnrealEd.EditorEngine] section. Scroll down towards the bottom of this section and look for the line "ModEditPackages=MyMod".
(For those of you who haven't done this yet, there will be a ';' in front of the line. This symbol is used to comment out anything you DON'T want UTFrontEnd to compile. Deleting it and saving the file will ensure that this mod package will be compiled next time you run Make.)
Add a new line below that and type ModEditPackages=MySecondMod.
http://i289.photobucket.com/albums/ll203/NickPfisterer/AddingANewConfigLine.jpg
You can add as many packages as you want in this fashion, but you can only work on one project at a time right? Simply put a ';' in front of every project that you DON'T want UTFrontEnd to compile, as seen below. This allows you to easily change which project you want to work on.
http://i289.photobucket.com/albums/ll203/NickPfisterer/CommentingProjectsOut.jpg
Once you've done that, save and exit the file. Your new project is now ready to run. But wait! What about your packages containing all your project's assets? Well, you could just put them in the UTGame > Content folder, but that could get cluttered and tedious very quickly. To avoid this headache, let's go back to UDK > UDK-2009-11 and create a new folder called MySecondMod.
http://i289.photobucket.com/albums/ll203/NickPfisterer/NewContentFolder.jpg
I believe you can use whatever directory structure you want from here, but for the sake of this tutorial, I'll be using the standard UTGame structure. Go ahead and add a new folder inside of MySecondMod and call it Content. In there, add another folder called Packages. This is a good place to add a Maps folder as well if you want to keep everything related to your project in one place. Place your packages inside of the Packages folder. Done? Ok. Now it's time to set up easy access to those packages from within the editor.
Open the UTEngine.ini file again, this time scrolling down to the [Core.System] section. Scroll through this section and look for a line that reads Paths=..\..\UTGame\Content. Add a new line below this one and type Paths=..\..\MySecondMod\Content.
http://i289.photobucket.com/albums/ll203/NickPfisterer/NewConfigLineForProjectContent.jpg
Save this out, and you're ready to go! Below is a screenshot of my results to show you how easily your packages can now be accessed within the editor.
http://i289.photobucket.com/albums/ll203/NickPfisterer/Results.jpg
I hope you guys have found this Quick Tip to be helpful. I look forward to seeing what exciting new games come out of this community. :)
Lunazure