#Is this something we can do also with

1 messages · Page 1 of 1 (latest)

drowsy patio
#

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

drowsy patio
drowsy patio
#

Might've accidentally done a long when it should've been a short

#

Whoops

drowsy patio
#

After some very welcome help from Phoenixf, it works

sick arrow
split hare
#

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

drowsy patio
#

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

split hare
drowsy patio
#

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

mint pebble
#

I’m a little confused on the use case, it doesn’t export hl2 models so what is it for?

drowsy patio
#

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

split hare
#

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

drowsy patio
#

It is also exporting the vtf files

split hare
#

oh ok, perfect then

drowsy patio
#

It goes through and reads each vmt file to find the vtf files it needs

split hare
#

that's the best

#

thanks again, I'll try it and let you know

#

better than nothing

drowsy patio
#

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

split hare
#

so for the models it get also the related materials and for pcf it does the same

drowsy patio
#

Yes

#

And materials get all of their textures exported

split hare
#

❤️

drowsy patio
#

I'm sure I'll end up adding support for $includemodel as well at some point

split hare
#

Does it keep also the correct path for the vtf files?

drowsy patio
#

Yes

split hare
#

the same that is defined in the vmt?

#

awesome

split hare
#

but at the moment it's not a big deal for me

drowsy patio
#

... TIL that util.GetModelInfo includes a material list now

#

Nevermind, it's a qc-esque material list

#

And there's $includemodel support

split hare
#

wow, you are the best ahaha

drowsy patio
#

And pushed to git