It is currently Fri May 24, 2013 8:56 am




Post new topic Reply to topic  [ 3 posts ] 
Referencing Textures in Other Packages 
Author Message
UNATCO
User avatar

Joined: Wed Feb 15, 2012 8:34 am
Posts: 258
Post Referencing Textures in Other Packages
So I'm trying to split up my material into multiple packages to keep the compile times down but I'm having trouble referencing the texture assets in other custom packages. I have one package "DXModUI" which is supposed to have all the UI images and another "DXMod" package which references them, but

For example in DXModUI is a class DXModAllUI:

Code:
//=============================================================================
// AllUI.
//=============================================================================
class DXModAllUI extends Object
   abstract;


#exec texture IMPORT NAME=YellowStreetLines FILE=Textures\YellowStreetLines.pcx GROUP=Street


Then in the DXMod package I have "ModScreenAugmentations" which references the YellowStreetLines texture

Code:
//-----------------------------------------------------------
//
//-----------------------------------------------------------
class ModScreenAugmentations extends PersonaScreenAugmentations;

DefaultProperties
{
     clientTextures(0)=Texture'DXModUI.Street.YellowStreetLines
}


I'm compiling using WOTGreal and I've tried rearranging the order of the editpackages package compilation but it keeps saying that the texture could not be found when I try to reference it.

_________________
Image


Tue Mar 27, 2012 4:47 am
Profile
Traditional Evil Scientist
Traditional Evil Scientist

Joined: Mon Oct 17, 2005 10:03 am
Posts: 3641
Post Re: Referencing Textures in Other Packages
Put

#exec obj load file=yourtexpackagenamehere

at the top of the relevant class, under class declaration, above variables.

That'll force the compiler to load that package when compiling.

Also, add a ' to the end of your texture name in the defprops. (I'm assuming this is a typo, though) :)


Tue Mar 27, 2012 9:44 am
Profile
UNATCO
User avatar

Joined: Wed Feb 15, 2012 8:34 am
Posts: 258
Post Re: Referencing Textures in Other Packages
Sweet, thanks.

_________________
Image


Tue Mar 27, 2012 6:02 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forum/DivisionCore.