Wall Worm Forums

Design Tools => Wall Worm Model Tools => Bug Reports => Topic started by: CarbonCopyCat on July 26, 2015, 02:59:44 AM

Title: -- Type error: Call needs function or class, got: undefined
Post by: CarbonCopyCat on July 26, 2015, 02:59:44 AM
When I import certain models, the error above appears, as well as this window:
(https://www.wallworm.net/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F6wKTAbz.jpg&hash=db3e94b7e07071c26eeb086ea14c2c6e0aec8c89)
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:
(https://www.wallworm.net/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJ18aV80.jpg&hash=4efdb2a2afcd4993ff37f9ee31799bfa3941882e)

Here's one of the models I was having issues with (https://mega.co.nz/#!ChEGDTYB!Z4REWgnOA56yaINWqPVyRQasLLwPKCXwIlCdcSOhjy4) (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 .
Title: Re: -- Type error: Call needs function or class, got: undefined
Post by: wallworm on July 26, 2015, 02:48:55 PM
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.