1 / 16

Programming UnrealScript

Programming UnrealScript. 2009. File Types – Storage Location. Object Storage. Unreal is partitioned using Packages Each package can contain all of the files listed before Almost all objects in unreal are stored in groups. You can see how objects are stored in UnrealEd. Compiler.

dino
Télécharger la présentation

Programming UnrealScript

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming UnrealScript 2009

  2. File Types – Storage Location

  3. Object Storage • Unreal is partitioned using Packages • Each package can contain all of the files listed before • Almost all objects in unreal are stored in groups. • You can see how objects are stored in UnrealEd

  4. Compiler • UCC is a Command Line Compiler • To Compile use ‘Ucc make’ • To compile using a custom config use Ucc make –ini=‘<ini file>’ - Useful to avoid recompiling too much code, and reducing includes • .ucl, .u file in System Folder • UnrealScript runs at about 1/20th the speed of C++ Code

  5. Compiling the fast way • Don’t Forget the ucc.log file in the Unreal System Directory • It WILL save you loads of time when things get weird

  6. Editors • UltraEdit • Text Based Editor, Manage your own compiling, Classes, Files, etc • Fantastic File Search abilities • Wotgreal • All in one, compiler, editor, class manager Setting Up UltraEdit: http://wiki.beyondunreal.com/wiki/UltraEdit

  7. Engine Structure • Object Oriented • Massive Class Hierarchy • Almost everything in Unreal is a sub class of the class Actor • Actor is an extension of the Native Class Object • Native Classes are permanent, and you shouldn’t need to try to override them • Every visible object in the game world is an Actor, or sub class of

  8. Class Extensions • Nearly every Class you write will extend upon one of the Unreal Classes • You first Class will extend the Class Mutator

  9. Types of Mods • Mutator • Minor Changes in Gameplay • The only classes you can inherit from are Mutator, Info, and Actor • You can reference other classes, but more advantageous modders should consider a TC Mod • Total Conversion (TC Mod) • Can vary between minor changes, to a completely new game type • Classes can be extended from everywhere

  10. Running Mods • Muators appear automatically under the Mutator list in Unreal • TC Mods: • -mod=[Your Mod] • Log file view • Execute Unreal using ‘ut2004 –log’ • Mod .ini file • DefaultProperties in your mod.uc file will override the Ut2k4mod.ini file

  11. Keeping your code separate • UCC make –mod= • Only works when your mod has a UT2k4mod.ini file • Compiled files are stored in Mod\System Folder • You need to create a Default.ini and DefUser.ini in the Mod\System folder • For mutators to show up in the Mutator browser a .ucl file is required

  12. You’ll also need to remove the MyMod.ini and MyModUser.ini files when you recompile your mod • For a Simple Mutator this is excessive, and complicated • When you are building a TC Mod, this is Ideal • It makes you mod Portable, and easy for people to Play

  13. Gary!!!

More Related