Log in

View Full Version : factions & model texture paths



Dol Guldur
08-25-2005, 22:35
In the DMB file, why would:


texture data/models_unit/textures/filename.tga

work fine, but on adding the bit in red:


texture romans_julii, data/models_unit/textures/filename.tga

cause an error message to pop up reporting the filename.tga could not be found in the specified path?

Frans Ubberdork
08-25-2005, 22:40
check your spacing and your spelling first.
after texture press tab. You probably already have it right but just verify.

Dol Guldur
08-25-2005, 23:06
As I said, only the red part was added so no changes were made to the former version of the working line (spaces and tabs included).

This one has got me stumped.

EDIT: Cracked it, though it is not fully understood as to why it works this way: When adding the faction specification you must make sure the actual graphic file (in the textures folder) ends in .tga or it will report it cannot find it. Illogically, it will read it fine when not ending in tga when the faction specification is not there. Strange.

Epistolary Richard
08-26-2005, 13:26
Most bizarre. Thanks, Dol Guldur.

Dol Guldur
08-26-2005, 14:36
Not as weird as when the show-err report says it cannot find a texture which has not been specified in the files or even exists on your PC! I must assume that cas files, at their creation, retain information about a default texture applied to them. Indeed, I cannot see what other explanation there could be.

It is, fortunately (it woudk appear), over-ridden when the dmb file is coded correctly on the texture lines (and the tga file correct too).

I hope these 2 points are of use to coders & other modders, though I am sure there are others who must have had these problems. Are there any full-conversion coders out there??

Dol Guldur
soon-to-be expert in every aspect of R:TW modding..yeah, right. :)

Epistolary Richard
08-26-2005, 17:54
Yes, most models are linked to specific textures - some of which aren't actually used in the vanilla game. A few of them aren't. That's another useful titbit to know when trying to track down show_err messages.