STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
282
游戏中
1,860
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
Crusty Screamer 2015 年 4 月 11 日 下午 1:29
[SOLVED] Model's texture is not loaded (VMT cannot be found)
My goal was to convert a Sims 4 model to Source, but I can’t get the model to use its material, so it's displayed as the almighty purple and black texture. HLMV says it can’t find the VMT, which is in the folder defined in the QC.

http://i.imgur.com/Dh9if7G.png
Here is the scene in Blender, along with the “material” display. I've tried so many combinations of renaming the texture, but HLMV still returns purple and black. Any help would be appreciated.



QC
$modelname "sims4\megacoffeetable.mdl"
$body table "s4studio_mesh_2.dmx"
$staticprop
$surfaceprop Wood_Furniture
$cdmaterials "models\sims4\"

$sequence idle "s4studio_mesh_2.dmx"


VMT
"VertexLitGeneric"
{
"$basetexture" "models\sims4\megacoffeetable"
"$surfaceprop" "Wood_Furniture"
"$model" 1

}
最后由 Crusty Screamer 编辑于; 2015 年 4 月 12 日 上午 9:32
< >
正在显示第 1 - 12 条,共 12 条留言
Artfunkel 2015 年 4 月 11 日 下午 1:41 
What is the name of your VMT?

Does your object have a Material assigned? That will take precedence over any Texture.
Crusty Screamer 2015 年 4 月 11 日 下午 2:00 
The vmt is megacoffeetable.vmt, the same as the vtf.
The object does have a material, but I've been exporting with "Ignore Blender Materials" on. Unless having a material would still create problems.
Artfunkel 2015 年 4 月 11 日 下午 2:09 
That should be OK then. HLMV can tell you the path of the material it's trying to load on the model tab. What's it saying?
Zappy 2015 年 4 月 11 日 下午 2:13 
引用自 Artfunkel
That should be OK then. HLMV can tell you the path of the material it's trying to load on the model tab. What's it saying?
It's (probably) saying "Failed to load this or that material" in the "loaded materials" list in the bottom-right, or the name of the expected material in the material list in the bottom-left.

Either way, the console in a true Source game/engine (Team Fortress 2, Source FilmMaker, Garry's Mod...) would output "couldn't load material X" or "couldn't load texture X", so checking the model in Source itself might be a better idea than just the model viewer.
Crusty Screamer 2015 年 4 月 11 日 下午 2:26 
Made a test map for EP2, the only error that came back in the console was
SOLID_VPHYSICS static prop with no vphysics model! (models/sims4/megacoffeetable.mdl)
'
Zappy 2015 年 4 月 11 日 下午 2:33 
Try copy-pasting all the contents of the console into something such as Notepadd++ (or even just Notepad), then do a search for "megacoffeetable" and/or "material", and see if you can find a material/texture error like that.
Crusty Screamer 2015 年 4 月 11 日 下午 2:38 
Only the Vphysics error, unfortunatly.
http://pastebin.com/aB565rXg
Zappy 2015 年 4 月 11 日 下午 2:42 
Well that is certainly odd. If you have Source FilmMaker installed, what happens when you try adding override materials to the model, and checking the model in the Element Viewer? And if not, a screenshot of the "Model" tab in the model viewer might be helpful instead.
Crusty Screamer 2015 年 4 月 11 日 下午 2:48 
Here's the model viewer
http://imgur.com/VKng0lT

I'm going to be away for about 30 minutes, so when I get back I'll try SFM.
Thank you everybody for your help so far!
Crusty Screamer 2015 年 4 月 11 日 下午 4:03 
For SFM, the model doesn't seem to list any materials, so it's impossible to overwrite it.
Zappy 2015 年 4 月 11 日 下午 11:41 
Could you use Source FilmMaker's model viewer instead? It has an important thing in the bottom-left of the Model tab the model viewer you used didn't.
Crusty Screamer 2015 年 4 月 12 日 上午 9:32 
So I managed to fix it, and here's where I went wrong.
For the "Material" section under Source Engine, I had put the full directory (Steam/Steamapps...) when it's only supposed to look for folders in the game's "materials" folder itself. Compiling the model with that fixed the texture.
I wish I used SFM's model viewer first, that "Materials used" bar is a great addition.
Thank you Artfunkel and Vintage for your help.
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2015 年 4 月 11 日 下午 1:29
回复数: 12