Need help making my texture work

javierdl

2009-12-21 22:18:27

Happy Holidays to all! :)

I wonder if someone would bother checking my files up and help me find where the problem is?

Here are the files:

custom_props Textures - Put'em in the Materials folder.
This image shows an explanation of what you'll find in the custom props.zip file
Image

modelsrc files All source files - Put'em in the models/modelsrc folder

So, if you can make it work, then I'll know the problem is not with the files I'm using. Any insight on what could I be doing wrong would be super.

Thanks in advance guys :)

JDL

Pig Popper

2009-12-22 15:04:28

your download seem to be a dud.

Why not make a small map (a dev room) put the model and a info_player_start in there, pakrat it then upload the bsp?

you'd get more input that way.

javierdl

2009-12-22 19:15:24

Thanks for letting me know about the "dud" PP :)
I just fixed it.

The reason why I'm not creating a BSP with it is because everytime I attempt to open the SDK Tool it keeps saying:
"This game is currently unavailable. Please try again at another time." :(
It happened since last night.
I am able to open HL2DM and join a game, but I can't open the SDK Tool.
I am not too worried about this now, I'll find the solution eventually.

For now I want to get this "missing material issue" resolved as soon as possible. But I could use a helping hand.

I don't know if this has anything to do with it but I've noticed that the VMT file made by StudioCompiler has the 2 types of slashes in the same path address:

"LightmappedGeneric"
{
"$baseTexture" "models\custom_models/drpeppercan"
}

I have changed the second one to be like the first, but my model still doesn't show the material in ModelViewer :(
I just thought we couldn't have both slashes in the same path... anyway.

JDL

javierdl

2009-12-22 21:28:49

Ok I figured if I make this more accessible maybe people will help ;)

This is what I'm getting presently:
The model loads, but without its texture :(
Image

Now, this is where GUIStudioMDL places all the files it creates from the modelsrc folder (which is available to you here). Ignore the "burger" files please.
Image

And finally, this is where the textures are located:
Image

I don't suppose there is any point in going through the steps I take to make/export/compile the model as we can see it just fine in Model Viewer. Clearly the only thing missing is the texture. As for how I do it, I make sure its dimensions are by the power of 2 (1024x1024), TGA format. I have used both VTFEdit and Studio Compiler to create it. I have created the VMT from other scripts and have let both previously mentioned applications create the VMT for me.
This is what my VMT presently looks like:

"LightmappedGeneric"
{
"$baseTexture" "models/custom_models/drpeppercan"
}

I don't know what else to mention for now. Should you have any questions please don't hesitate to ask.

Thanks guys,

JDL

Paradox

2009-12-23 02:48:21

Stupid question, but Im not sure if thats what you did... Are the VMT and VMF files in BOTH the materials and the materialsrc folders in the HL2MP folder? Ive made that mistake before...

javierdl

2009-12-23 08:26:52

Actually, not stupid at all Paradox ; ) We might be up to something here!
It just so happens that:
1. I don't have a materialsrc folder (I'm just putting the TGA file along with the rest of the model source files, the SMDs, in the modelsrc folder).
2. I don't have a VMF file either. Only the VMT & VTF. The latter one I create it by dragging the TGA into Source Compiler, then I move the resulting VTF to the materials/models/custom_props folder where I already have the VMT I created earlier by hand (most of the time).

I guess it would make more sense to have a materialsrc folder too eh?

Anything you have spotted already?

JDL

Image

javierdl

2009-12-23 10:02:12

I found the solution to this prop, thanks to JesterSpawn from the SteamPowered forums:
As I replied to him:
"Both changing to VLG (as opposed to LMG) and correcting my QC file helped already (the folder was called "custom_models", but in the QC file I had entered "custom_props")."

Btw, while creating my test room with Hammer I realized what the VMF file is ; ) So now I have one. I just don't see what this file has to do with my texture...

JDL

Paradox

2009-12-23 16:56:52

lol that might have been a mistype on my part....should have been VMT and VTF I think...


Anyway glad you got it working