Code Monkey home page Code Monkey logo

cam_head's Introduction

the easier way to install to garrys mod

The folder randy_beans_head has the proper structure and can be added to .steam/steam/steamapps/common/garrys_mod/garrysmod/addons folder to be used in game.

The biggest trick with this part is the qc file and the directory to add for $cdmaterials. I set it as models\cam_head as this is the file format in the randy_beans_head folder. You do not need to include materials in the front of the path as this is implied I guess. a backslash is used because teh front slashes were making the game look in the materials folder inside garrysmod instead of what is included with the file. the backslash made the texture files work inside the addons folder and on the steam workshop so I think forward slash is a no no.

After compiling the qc with crowbar. move the models folder created and everything in it into the folder with a structure like randy_beans_head. vtf and vmt files should be in materials under the path defined in qc file. this path should be used again when editing the vmt file.

after having all the files and making sure it works inside the addons folder, publish it using crowbar. to make the thumbnail, I took a screenshot and edited it with GIMP. you will need to make it 512x512 and export as a JPEG file.

[NOT THE BEST] how to install to garrys mod

  1. get these files from blender using source engine exporter - smd, animation (from bone) and texture

  2. make qc file and follow a guide on how to make one. use the one in this repo for reference

  3. use crowbar to compile the files

  4. use vtf edit on windows to make the vtf file and vmt file. name them the way crowbar says to name them when viewing info on .mdl file (same name as in blender). it will say the file name it expects the texture to be.

  5. move these files into where the qc file says it will look for them. in my case it was garrys_mod/addons and garrys_mod/materials. you probably don't need to add this to both but I did just to make sure it worked. the folder models/cam_head and all the files in it should be moved into the addons of garrys mod. the vmt and vtf files should be added into addons but in materials/models/cam_head

PRO TIPS

  • using the viewer function of crowbar will help diagnose any errors it finds. this helped me figure out that the vmt file was not named the correct way.

  • use vtf edit in windows to edit the vmt file so that it has the right paths to the vtf file and stuff. you can probably use vim too.

  • in the vmt file, make sure you have the correct path to the vtf filei(should be the same as the $cdmaterials line in the qc file). since I did this on windows when everything else was on linux. the path was wrong so I had to fix this.

resources used as reference

https://www.youtube.com/watch?v=XNg_UouLbcA

https://www.youtube.com/watch?v=VAYWPY7EkaQ

https://wiki.facepunch.com/gmod/Workshop_Addon_Creation

https://github.com/Facepunch/gmad/blob/master/include/AddonWhiteList.h

https://steamcommunity.com/sharedfiles/filedetails/?id=2003940195

https://developer.valvesoftware.com/wiki/Category:QC_Commands

https://www.youtube.com/watch?v=0nRQxy4wek4

https://wiki.facepunch.com/gmod/

cam_head's People

Contributors

cjones217 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.