Wall Worm Forums

Design Tools => Materials and Textures => Topic started by: TooL on January 18, 2015, 09:50:52 AM

Title: Error when exporting Materials
Post by: TooL on January 18, 2015, 09:50:52 AM
Hey,

I'm making a tutorial vid for the Gmod users on how to get models into source with WWorm but when I go to do material exporting I get this error.

(https://www.wallworm.net/proxy.php?request=http%3A%2F%2Fpuu.sh%2FeGJuf%2F7f6ac99aa5.png&hash=f5408d48ebb74bb51b005f80faf4925ce55b209e)

It exports my vtf's still but it does NOT make my vmt which is a bit of a problem I'd say...

Just checked something as well, if I uncheck the vmt then I don't get the error.
and it's in the ww_struct_mat.ms file apparently.

I fixed it with just an if check
if(tempBitmap != undefined) then (
close tempBitmap
)

and now it works fine, vmt and vtf's are exported correctly and nicely.
Title: Re: Error when exporting Materials
Post by: wallworm on January 18, 2015, 10:12:57 AM
Thanks for reporting this. The VMT export code was recently completely redesigned to work more efficiently, but obviously there was something that fell through the cracks. I'll post a general fix today with the other updates coming.
Title: Re: Error when exporting Materials
Post by: TooL on January 18, 2015, 10:29:29 AM
No problemo, glad to help.

Hopefully I'll post the vid I just completed later tonight. (have to cut it up and such)