News / Archive
    About Us
    Staff
    Staff Login
    Links
    Spotlight
    Interview


    SP Maps
    MP Maps


    SP Maps
    MP Maps
    Mods
    Prefabs
    Tools


    Basic Mapping
    Advanced Mapping
    Basic Coding
    Advanced Coding
    ConEdit
    Other


    Forums
    IRC
 

2/12 - Unatco Born Update
2/10 - TNM Wants Your Voice!
2/7 - TNM Updatage
1/8 - 2027 Mod Trailer
12/7 - Deus Ex: High Definition Texture Project
12/24 - DXMP_Duality
12/24 - DXMP_Onslaught
12/23 - DXMP_Yokatami
12/23 - DXMP_HedgeFields
9/25 - Latest DX SDK
Importing Textures
By Bliah
Date Created: 5/6/2002


{#exec is used to import all textures, sounds, and models into the game.)

First let's look at some original .uc samples and I'll explain how it works.

WeaponShuriken.uc

class WeaponShuriken extends DeusExWeapon;
defaultproperties
{
Icon=Texture'DeusExUI.Icons.BeltIconShuriken
largeIcon=Texture'DeusExUI.Icons.LargeIconShuriken'

These two lines are loading the belt texture and inventory texture for the shuriken. Icon being the belt texture and Large Icon being the inventory texture.

"DeusExUI" is the folder containing the .uc that will import the texture. "Icons" is the group name given to this texture, you can make this whatever you want.

The last part is the name for the texture you want to load. You can name your texture anything you want as well, just keep the name the same in all references to it.

Now lets look at at the lines inside of DeusExUI/AllUI.uc that loads these textures.

#exec TEXTURE IMPORT FILE=Textures\Icons\LargeIconShuriken.pcx NAME=LargeIconShuriken GROUP=Icons

File= is where you put the sub folders that store your texture and the name of your texture under your main mod folder.

In this case it is looking in DeusEx\Textures\Icons for the file LargeIconShuriken.pcx

Name= refers to the name you gave your texture....in WeaponShuriken.uc they called it LargeIconShuriken. Group= Is where you put the group name you gave your texture...in WeaponShuriken.uc they listed it under Icons.

Again you can name your group names and Texture names anything you want.

That's all there is to it.

Subclass your new weapon/item/character

Give a group and texture name, then create a .uc file to load the textures and use the #exec command to do it.





Copyright 2001 | Design by AsylumX | Coded by Jim