• Code works when using models from workshop (.gma), but not after extracting
    2 replies, posted
Hi. So I'm going to need to use a few playermodels for an addon I'm working on, and the code works just fine if I subscribe to the addons and load them up normally. If I extract the models (gma -> legacy), put them in the addons folder as usual and start gmod with "-noworkshop" as to reduce loading times, however, the models become errors and the console spits "Model missing:" errors at me, even though the model is there. The addons in question are: https://steamcommunity.com/workshop/filedetails/?id=338263072 https://steamcommunity.com/sharedfiles/filedetails/?id=608761583 The funniest thing, though, is if I lua_run if(file.Exists("addons/team_fortress_classic_model_ports_338263072/models/tfc/pyro.mdl", "MOD")) then print("File exists.") end or if(file.Exists("addons/team_fortress_classic_playermodels_608761583/models/tfc/player/pyro.mdl", "MOD")) then print("File exists.") end right after the console says "Model missing: models/tfc/player/pyro.mdl", the console prints "File exists" back, so what the hell is going on here? Thanks in advance.
I'm not sure but I think you have you pre-cache models and textures if they are loaded through your files directly instead of through gmas
Try file.Exists("models/tfc/player/pyro.mdl", "GAME")
Sorry, you need to Log In to post a reply to this thread.