Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMod PM+

Port character models to Garry's Mod the easy* way · By Amaxivermis

Need some help

A topic by Mr. Balls 25 created 43 days ago Views: 256 Replies: 21
Viewing posts 1 to 13

Hello, I've tried using this program a few times and it works great up until the compiling at the very end. I'll click the button to do it, but nothing seems to happen. If I click it again it freezes up for a few seconds then crashes. I feel like it's something to do with my paths maybe, mainly VTFCmc, I don't see in your tutorial where to get it from exactly. I've linked a picture of my paths here, so they seem right?

Developer

I'm very sorry for the late response on the earlier post, it got flagged and I forgot to check until now. The VTFCmd is listed in the install instructions but I have also listed the link in the FAQ now

(1 edit)

Thank you! After changing my path to that though it didn't change anything, it still crashes when I try and compile. I've been using a simple model just to try and get it working, it shouldn't be an issue with the verts. I should mention that the program itself didn't open at first until you updated it to work on older computers, maybe it's something to do with that?

Developer

I'm not entirely sure why it crashes when you compile, assuming you followed all of the steps and the applications also seem to be correct too, as for that update for older computers I switched it over from Vulkan to OpenGL as some older computers don't really work on Vulkan, although I don't think that's the reason it's not compiling, have you made sure you followed the steps?

I’ve reread the instructions several times just to be sure I’m doing it right, I have no clue why it wouldn’t be working. I import my model, rename some bones in the feet to gibberish since it has one too many in each foot, then I rename them automatically, set them to T pose, generate collisions, and set their material to vertex lit generic and try to compile. Am I missing anything necessary there? I’ve got no idea why it’d crash.

Developer

You could try to provide the model you are trying to port over so I can see if it's a bug with the program or not and let you know

https://gofile.io/d/GkUOSe this should work, let me know if it doesn't lol

Developer

The compiling issue is most likely a bug, the model didn't crash when I tried to compile but when I clicked it nothing happened. However, I did notice that the bone after the head was renamed to the pelvis which is a bug and when I renamed the bones correctly compiling now did something

IT WORKS YIPPIE!!! WAHOO!!!

On a serious note thank you, lol

Never mind, lol. I don't want to be annoying or anything with constant questions, but this is the last thing I seem to have an issue with. The texture works fine in the editor, but in game it's a missing texture. I added a screenshot to show the materials tab, it seems like it should work to me.

Developer

You should show the folder where the materials are stored for the model, if you don't know it's compiled in the 'addons' folder for Gmod (if you don't know search up gmod legacy addons) and it will contain the model you have compiled, and go in the materials folder and and go in the models folder in there again and you should find the materials

It should contain the 'vtf' files which are the textures, and 'vmt' which are materials, if you don't find the vtf files VTFCmd failed to convert them, which I wouldn't be sure why but if you imported textures tell me what file format they are

Here's the materials folder, I don't think there should be this many though? I might've exported them weirdly in Blender or something.
Developer

the flat height is file is needed for phong reflections or those specular highlights as I noticed I wasn't getting any until I set a bump map for the materials when I ported models over in the past (the normal way). Based on the file size of the first texture it should have compiled correctly, maybe it's a mistake with the vmt files and try to check them to see if they point correctly over to the texture

Here's what they say from top to bottom, is any of this wrong to you? I don't know much about vmt files, but I know what they do at least, lol


VertexLitGeneric

{

$basetexture "models/Felix/synth/_Downloads_Synthrewrapped"

$bumpmap "models/Felix/synth/flat_height_912382513"

}


VertexLitGeneric

{

$basetexture "models/Felix/synth/_Downloads_Synthrewrapped"

$bumpmap "models/Felix/synth/_Downloads_Synthrewrapped"

$translucent  0

$alphatesting  0

$alphatestreference  0.0

$allowalphatocoverage  0

$halflambert  0

}


VertexLitGeneric

{

$basetexture "models/Felix/synth/id_Downloads_IMG_0327"

$bumpmap "models/Felix/synth/flat_height_912382513"

}

Developer

Since these look correctly, it might be that something went wrong with the VTFCmd or there's a mistake with the directories, though I don't think there's a mistake with the folders. Is there something with the textures for the imported model?

It looks fine in the editor like I showed above, but when I get it into gmod the textures are missing. In Blender they look fine too, so I’ve got no clue. Maybe it’s the directories somehow?

Developer

It might be with the directories and if not you can provide the model including the textures to see if it's a bug with the program or not, check the directories one more time and if they don't look off do provide the gltf model with also has the textures too

How do I check the directories actually? Again I’m not very familiar with this stuff, I know the basics though at least lol

Developer

For the directories you can check the one the material files are in and compare to how the directories are in the vmt files, they might look a bit weird given that they work in a certain way but if they don't look very off there shouldn't be a problem with them

(2 edits)

I don't understand what that means, sorry. I'll probably just give up on this honestly, I'm having too many nonsensical issues to deal with it much longer.

I tried one more thing and it worked! In Blender before exporting I tried setting the material to just a flat colored one, and after exporting it and readding my texture in the editor it wokred for some reason? No idea why, but hey I fixed it :D

Developer

It might have something to do with how the materials are imported, I'm not sure if you tweaked the material settings for the game (ex. phong and stuff) and it worked just fine but I'll test the materials again to see what caused the problem