#Is this something we can do also with
1 messages · Page 1 of 1 (latest)
If someone can point me to info about the pcf file format and how I'd go about parsing it, I'll be happy to give it a shot
Maybe you can find something useful in here:
https://developer.valvesoftware.com/wiki/PCF
I might be able to work with this yeah
After some very welcome help from Phoenixf, it works

Woow, sorry for not seing this earlier. But that's amazing, thanks!
Finally I can organize my contents without spending all my life
@drowsy patio Do you think it can be difficult to maybe extract the materials only for a certain particle inside a pcf file?
Cause maybe I'm working on a pcf with 10 different particles or even more, but I want to export only the materials of a couple of them.
I'll take a look too
That's not something that's possible with this method, no.
I was working on doing things the proper way at first by parsing the pcf file, but kept running into problems. Phoenixf's method is just a way to reach in and joink out just the vmt files
Oh, it's not getting the vtf files?
That's not it
It's not actually parsing the pcf file
So there's no way for me to tell what vmt belongs to what effect
I’m a little confused on the use case, it doesn’t export hl2 models so what is it for?
In my case I've got models and materials spread out over a bunch of different workshop packs that I need to reorganize
And I'm also just doing a lot of recompiles, for all of those it's infinitely easier to use a tool that finds all the materials and textures and pulls them out of the game rather than having to dig through files myself
It not exporting content from mounted games is intentional
Oh ok, I need to read the tool better. I was asking if it's exporting just the vmt file or also the related vtf files
It is also exporting the vtf files
oh ok, perfect then
It goes through and reads each vmt file to find the vtf files it needs
The way the tool works is it just grabs an asset, and along with exporting that asset to your _export folder, it also tries to dig deeper
So .mdl's get all of their .vmt's exported
And .vmt's gets all of their .vtf's exported
so for the models it get also the related materials and for pcf it does the same
❤️
I'm sure I'll end up adding support for $includemodel as well at some point
Does it keep also the correct path for the vtf files?
Yes
Oh that's right
but at the moment it's not a big deal for me
... TIL that util.GetModelInfo includes a material list now
Nevermind, it's a qc-esque material list
And there's $includemodel support
wow, you are the best ahaha
And pushed to git