Author Topic: -- Type error: Call needs function or class, got: undefined  (Read 3363 times)


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

Full line is:
Code: [Select]
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 .


  • Administrator
  • Hero Member
  • *****
  • Posts: 3672
  • Karma: 101
  • Behind me?
    • View Profile
Re: -- Type error: Call needs function or class, got: undefined
« Reply #1 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.