Raised This Month: $51 Target: $400
 12% 

CS:GO Models Mechanism


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 05-24-2018 , 15:34   CS:GO Models Mechanism
Reply With Quote #1

Hi people,

I was wondering if there is a way to know what files does a model file require. I mean every .mdl file comes with series of files with extensions .vmt .dx90.vtx .vtf .vvd .phy etc.

Is there some kind of manifest information in .mdl files to know exactly what extra files does it require and which folder they should be placed in?

I think they also can require sound files too. When I used a zombie claws model, the server printed out some error messages about missing zombie sounds.

I used Source SDK's model viewer tool to look for such information but couldn't find any.
akcaliberg is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 05-25-2018 , 01:43   Re: CS:GO Models Mechanism
Reply With Quote #2

According to this: https://steamcommunity.com/sharedfil.../?id=436454108
Quote:
QC Script: A text document containing a very simple script specifying where the Source Engine can find the necessary prop files.
I haven't been into modeling but i guess you may need to decompile the model to get such info, correct me uf I'm wrong
__________________
ambn is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 05-25-2018 , 10:15   Re: CS:GO Models Mechanism
Reply With Quote #3

Thanks for the link, it helped clarify some things.

I couldn't get the decompiler working but I've found a quicker solution for retrieving the data from .mdl files. I used "strings" command in PowerShell to display printable strings in the .mdl file. The filename and the directory that the engine should look at is listed at the last bytes of the .mdl file.

If anyone else is wondering, this is what I've understood:

So let's say you have a model named mutation_light.mdl in the directory: csgo/models/player/custom_player/zombie/mutation_light/

The engine will automatically look at the same directory for the .phy .vvd and .dx90.vtx files. They should all have the same name with the .mdl file.

Now if you type "strings mutation_light.mdl" on PowerShell (or terminal if you are using a unix-like os) last lines of the output will look like this:

Code:
...
ACT_DIERAGDOLL
studio
rhand
lhand
rfoot
lfoot
models/player/custom_player/animset_ct.mdl
zombie_mutation_light
models\player\zombie\mutation_light\
I guess animset_ct.mdl is something that the studio includes during the compilation, so it's not important for the user.

"zombie_mutation_light" is the name of the files that the engine will look for in the directory "csgo/materials/models/player/zombie/mutation_light"

The engine will use these information to find "zombie_mutation_light.vmt" and "zombie_mutation_light.vtf" files.
akcaliberg is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode