-- Type error: Call needs function or class, got: undefined

Started by CarbonCopyCat, July 26, 2015, 02:59:44 AM

Previous topic - Next topic

CarbonCopyCat

When I import certain models, the error above appears, as well as this window:

Full line is: local theVMT = wallworm_VMFIMPORT_getMaterial (basename) Color:undefined openLib:false matType:"model" extraPath:fsourcepath extraRootPaths:extraRootPaths overWriteName:basename

I'm importing the models with prop library from VMF, and most of them seem fine, so I don't think it's the settings, but I'll post them just in case:


Here's one of the models I was having issues with (uploaded to MEGA due to size limits). The .mdl and other necessary files, the decompiled .qc, the .tga, the .vtf and the .vmt are all in the .zip .

wallworm

Thanks for reporting.

Oddly, I get no error at all when importing this file. The exception is that the textures simply didn't import, which pointed me at some bad logic I need to implement.

In any event, I have a fix for the next update that I believe will cause the error to not occur for you.

SMF spam blocked by CleanTalk