Error when exporting Materials

Started by TooL, January 18, 2015, 09:50:52 AM

Previous topic - Next topic

TooL

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.



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.

wallworm

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.

TooL

No problemo, glad to help.

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

SMF spam blocked by CleanTalk