|
|
Main /
HH Extracting Script CodeHell's Highway: Extracting Unreal Script Source CodeIn order to create Unreal Script code for mods, you will need to examine the Unreal Script code included with the game. To do this, you will need to extract the Unreal Script source code using the Editor. Follow the tutorial on creating a shortcut for the Editor, then run the Editor by double clicking on the shortcut. Once the Editor is running, click on the "Actor Classes" tab in the Generic Browser dialog box (or select View->Browser Windows->Actor Classes from the Editor main menu). Once the Actor Classes tab is selected, click on "File" and then "Export All Scripts" in the browser menu... ![]() It will tell you "This option will export all classes...", and ask you to confirm if you want to do this. Click on the "Yes" button. It will take a few minutes to run (you should see the "busy cursor" while it is extracting Unreal script source code). Once it is done, you can exit from the Editor. Then use Windows Explorer to look in your Documents folder (or My Documents for Windows XP). Inside the Documents folder will be a My Games folder. Inside that folder will be a BIA Hells Highway folder. Inside that will be a SumacGame folder and inside the SumacGame folder will be an ExportedScript folder... ![]() Inside the ExportedScript are folders for each Unreal Script package that was used to create the game. Each of these folder will contain a Classes folder and inside the Classes folder will be Unreal Script source code files (all ending in a .uc extension). All of the Unreal Script code in the ExportedScript folder is for REFERENCE PURPOSES ONLY. You should NEVER modify any of this Unreal Script code and you should never attempt to recompile any of these Unreal Script packages. If you do so, you will not be able to join a multiplayer game (and if you distribute any modified version of any of these Unreal Script packages, the people who play your mod will not be able to join any multiplayer games). Instead of modifying existing Unreal Script code, you should instead extend the code (by creating your own class in your own mod folder) and then modify that code. See the UDN description of 'Classes' to understand what "extending" a class means... http://udn.epicgames.com/Three/UnrealScriptReference.html#Classes |