#Getting all the files I need to upload my playermodel to gmod.

1 messages · Page 1 of 1 (latest)

brazen raft
#

I have gone through the process of rigging and weight painting the model to work in gmod, but I can't get all the necessary files to upload it to my game.

One of the files I need to get is the .vvd file of my model and I can't find anything that talks about how to get that.

I don't know if I need to get new versions of the dx80 and dx90 vtx files so if someone could clarify that for me, that would be amazing.

I don't understand what the sw vtx file is for.

I have pointed the materials in the .qc to look at the correct folder but when I load the game, my model is invisible.

I have a png of the textures I got for the model that I converted into 2 vtx and vmt files. Not sure if this is part of the problem, but I honestly don't know.

If anyone needs clarification on anything to help me out, please let me know.

winged sequoia
#

at the top of your vmts

#

make SURE it's "vertexlitgeneric" and not "lightmappedgeneric"

#

vertexlitgeneric is for stuff like models and lightmappedgeneric is for map stuff like walls and floors

#

are you clicking the mesh then the skeleton and exporting?

brazen raft
brazen raft
winged sequoia
#

selected objects or a specific collection?

brazen raft
winged sequoia
#

do selected objects

brazen raft
winged sequoia
#

also, is crowbar throwing up an error about vvd?

#

have you copied someone's qc file from online?

winged sequoia
winged sequoia
#

select the mesh then the skeleton

brazen raft
winged sequoia
#

also, the vvd dependency is likely coming from a line in your qc

#

can you upload it?

brazen raft
#

yeah, one sec

winged sequoia
#

all good mate, i've just tackled with my own annoying crowbar problems so i'm down to help

brazen raft
#

I really appreciate it man

winged sequoia
#

also-- vvd data is generated upon compiling with crowbar

#

meaning that i don't think you've exported your mesh

brazen raft
#

there's the qc

winged sequoia
#

you sent a shortcut to me

#

rather than uploading the whole file

#

drag and drop your qc here

brazen raft
winged sequoia
#

seems to be fine

#

select your mesh then the skeleton then export selected objects

#

then get the smd with the name of your mesh, rename it to whatever it needs to be, then delete the other one

#

point crowbar towards your qc, set the game to garry's mod, compile then see if it loads

brazen raft
winged sequoia
#

are you sure it's in the same folder that it says in the qc?

#

addons\ModName\player\imagundi\senzata\

#

that includes the "add valid playermodel" lua

#

player_manager.AddValidModel( "Senzata", "models/player/imagundi/senzata/senzata.mdl" )

brazen raft
winged sequoia
#

go into your qc

#

and change all the \ to /

#

then recompile

#

in the $model line

brazen raft
#

alright, done

#

do these matter in crowbar

winged sequoia
#

no

#

qc input means that you're loading a .qc

#

output to means you're exporting to a folder in the same folder as the qc

#

so if my qc file is in "ButtNugget" folder, my compiled folder would be in "ButtNugget" too

#

it's usually something like compiled 0.72 or smth

brazen raft
#

Okay I finally got it @winged sequoia

#

The only thing not loading now is the textures

#

I named the vtf and vmt files the same as the material in blender because I saw that you were supposed to do that. Not sure what else I need to do to make the materials load in.

winged sequoia
#

ya need to change both the name and the file path inside the vmt

brazen raft
#

how do I change the file path?

winged sequoia
#

open up the vmt

#

then in the $basetexture part

#

the last part's gotta be the same name as the vtf

#

the vtf itself can be any name since it loads the vmt as the material

#

but it's gotta point towards the right part

brazen raft
#

Is that right?

winged sequoia
#

2 seconds

#

yeah

#

if that's the name of the material

#

in blender

brazen raft
#

this is all how it looked when I took the ss of the model

#

one sec

#

for the autorun

winged sequoia
#

did you change the \ to / in the $cdmaterials line?

brazen raft
#

yeah but that ended up not letting me compile it in crowbar

winged sequoia
#

what was the error?

brazen raft
#

ill redo it and take a ss

#

just in the cdmaterials line or in all of the ones that look for a directory?

winged sequoia
#

try just the cd materials line

brazen raft
#

got it

#

alright it let me compile, lemme check to see if it works in game

#

It didn't work :/

winged sequoia
#

and you're 100% sure that's the material name assigned in blender?

brazen raft
winged sequoia
#

that has no s

#

remove the s from the vmt and vtf

#

"senzatatextures"

brazen raft
#

holy shit

winged sequoia
#

should be "senzatatexture"

brazen raft
#

bro i love you for catching that

winged sequoia
#

yeah ya fuck about with materials long enough and you get an eye for it

#

that's why i name my materials after the colour

brazen raft
#

holy shit it worked

#

dude

#

i love you so much