Author Topic: gmod moding  (Read 1463 times)

do any of you know how to make a background with sound for gmod? if any of you tell me you get a cookie.  :cookie: see there it is. better get it before the cookie monster does. o no there he is  :cookieMonster: any way sorry for that plz tell me how

You're an idiot.

Actually, let me dumb that down for you.

u r idot.

Chriz, that's totally unhelpful. He's just new.

Here's a tutorial, but you'll need VTF Edit to do it, download VTF Edit here: Download VTFEdit

Backgrounds

Once you've installed VTF Edit, make a folder on your desktop called materials, and in that folder, make another folder called console, open up a .jpg image with VTF Edit (By right clicking the image and going to the 'Open With' list, the image MUST be 1024 by 1024, VTF Edit will have a window opened up called 'VTF options'

In the [General] tab, make the 'Normal Format' DTX1, make the 'Alpha Format' BGRA8888, leave the 'Texture Type' as an Animated Texture, un-check 'Resize' (To be sure nothing goes screwy), leave 'Generate Normal Map' un-checked, leave 'Generate Mipmaps' checked and leave the Mipmap settings as they are, in the [Advanced] tab, leave the 'Version' as 7.2, and leave all other 'Advanced' settings as they are, leave everything in the [Resources] tab as they are, it'll take a few seconds for VTF Edit to load the image up

Now on the left side of the window, you'll see a bunch of un-checked boxes, only check the SRGB box, then save it as background01 and put it in the console folder (Located in the materials folder) that you just made, once it's saved, go to the top of VTF Edit's window and click 'Tools', click 'Create VMT File', leave things in the [Textures] tab as they are, now go to the [Options] tab and change the 'Shader' to 'UnlitGeneric, then hit the 'Create' button on the bottom right of the window, then go to the console folder and open up your .vmt file (Which should have the name background01.vmt) with VTF Edit, select everything in it, delete it and paste this in place of what you've just deleted
Code: [Select]
"UnlitGeneric"
{
"$basetexture" "console/background01"
"$vertexcolor" 1
"$vertexalpha" 1
"$ignorez" 1
"$no_fullbright" "1"
"$nolod" "1"
}
Then on the top left of the VTF Edit window, click 'File' and hit 'Save' (Not 'Save As...', just 'Save', then once it's saved, close it, go back to the console folder where you have your background01.vtf and background01.vmt files, right click background01.vmt, click 'Copy', right click a blank spot in the folder, hit 'Paste', you now have a .vmt file called Copy of background01, right click it, and click 'Rename', rename this one to background01_widescreen, then hit Enter (Or just left click a blank spot in the folder) to accept the new name

Music

Make a folder on your desktop (Not inside the materials folder though!) and call it sound, in that folder, make another folder called ui and in that folder, put in a .mp3 song file, it doesn't have to loop and it doesn't have to be mono, you can leave it as stereo and not looping, all you gotta do is rename the file to gamestartup01

Overview

Just to be sure we got everything right here, here's a overview of what your folders on your desktop should look like, bolded text are the folders, non-bolded text is the files

materials
-console
-background01.vtf
-background01.vmt
-background01_widescreen.vmt

sound
-ui
-gamestartup01.mp3

How to install it

Select both the sound and the materials folder, and drag them to your steam/steamapps/YOURNAME/garrysmod/garrysmod folder, if asked to overwrite the materials, console, sound and ui folders, say yes to all of them, if asked to overwrite background01.vtf, background01.vmt, background01_widescreen.vmt, and/or gamestartup01.mp3 files, say yes too

How do I get my old background back or get rid of the music?

Just simply delete the background01.vtf, background01.vmt, and background01_widescreen.vmt files you've just put in, and to stop the music, just delete gamestartup01.mp3
« Last Edit: October 19, 2009, 05:40:05 AM by Masterlegodude »