Counter-Strike 2

Counter-Strike 2

197 ratings
Use Your Weapon Finish In-Game [How-To]
By Sgt Jesus
Want to try out your snazzy new weapon finish/skin in-game?
Here's how.
   
Award
Favorite
Favorited
Unfavorite
Tutorial
Hello everyone.
With the new skin workshop added recently I figured I'd have some fun with it. But unfortunately as you've probably realized you can't (by default) test out your weapon skin in-game. I'd previously been doing a bunch of experimenting and hacking with CSGO for a seperate modding project I'd been working on and have become pretty familiar with a good bit of the inner-workings of the game.

If you want some proof or would just like to see how it looks, here are some screens:

*UPDATE 3*
For those complaining that this tutorial is "too complicated." It is not really, 2 steps at most that are quite simple if you can follow straight-forward instructions and are literate in the English language (if anybody would like to repost translations of this, feel free.) If you've made a skin and want to try it in-game... and that is your attitude: give-up skinning now. You're obviously too lazy to make anything anyone would want to ever use, besides perhaps a few extremely loyal friends. Just a few months ago this process was at least 10x as tedious, and you would have never had this opportunity.... feel lucky it's actually this simple now.

So anyhow, I'll try and keep this as straight-forward as possible. Also note, I am not reponsible for anything that goes wrong with this process so proceed at your own risk. Make sure you back-up anything you change. As a last resort if anything is still messed up you can use the 'Verify Integrity of Game Cache' function in Steam for CSGO to restore everything back to default (including any files you may *not* want replaced.)

Also note this will probably only work in a local (bot) game and most likely you won't be able to connect to any games with your files modified.

*UPDATE 2*
Matchmaking won't allow for modified script files (you'll be kicked and forced to abandon match until you change the script file back,) however about 50% of the community servers I tried on (VAC secured or not) seemed to work (at least for the 10 minutes I played on them.)
Previously it seemed to work on all community servers I tried (never tried MM,) so it's possible VAC may have been recently updated (no clue.)

Anyhow...

What you will need:
-text file generated from the workbench for your weapon & the pattern VTF file if your weapon uses one.
-text editor (any)
-a default market skin for the weapon your skin is for (ie: one of the official valve skins)



Step 1 (skip this if your skin doesn't use a pattern texture):
-----------------------------------------------------------------------------------------------------------
Goto your CSGO root folder. Navigate to your 'materials' folder. If the following folders do not exist (by default they do not) you will have to create a series of folders inside one another.
Create a folder named 'models' inside your materials folder.
Inside of the new 'models' folder, create another named 'weapons'
Now inside of the weapons folder, create yet another named 'customization'
Now inside the customization folder, create another named 'paints'

Now, depending one which finish style you've chosen for your weapon you will create one of the following folders, depending on which style you're using:

Anodized Airbrush -> 'anodized_air'
Anodized Multicolor -> 'anodized_multi'
??? -> 'antiqued' Note: I haven't tested, but I'm guessing this is for 'patina' style.
Custom -> 'custom'
Hydrographic -> 'hydrographic'
Spray Paint -> 'spray'

Finally, place your pattern texture VTF inside the folder appropriate for it's style.

NOTE: If you'd like to use one of Valve's pattern VTFs they can all be found inside the PAK file following the same folder paths we just created. Extract them with GCFScape.


Step 2
-----------------------------------------------------------------------------------------------------------
Now I'm assuming you already have a default Valve skin for the weapon you're skinning. We will be replacing it with our own.
For this example I'll be replacing the hideous SG553 'Ultraviolet' finish with a quickly-made deserty digicamo design.

Navigate to your root "csgo" folder. From there go into your 'scripts' folder. Now find the folder named 'items' and open it. Inside you'll see a text file named "items_game.txt," open it up.

At this point you'll have to search for the skin that you're going to replace, but they aren't necessarily named what you would think. Knowing which collection the skin comes from can help to find the text you're going to need to replace. For this I'm using the UltraViolet skins from the default CS:GO collection.

Near the bottom of the text file search for a string "item_sets" (with the quotation marks.) Within the brackets the skin you're wanting to replace should be listed in the set it comes from (nuke/office/dust/bravo/etc.)
For the skin I'm replacing in this example, I've found the set ""set_weapons_i" and found the SG553 skin from that set, it is named: "so_purple" in the text file.

NOW. Search for that name we just found in the same text file. It will probably be found many times using the search function, but there's only 1 specific occurance we want to look for, it will be preceeded with the text "name", and should be inside brackets with a number index. For the weapon I'm replacing the 'paint kit' number is "98." (Note: Some weapons use the same pattern/texture, so you may need to do a bit of extra checking. If the first one doesn't work try the next one, etc.)

Open up the text file that was generated by the workbench/skin editor for your skin and copy everything *in between* the two curly brackets '{ }'. Now go back to the 'items_game' text file to where we found the paint kit we want to replace with our own skin.
Delete everything inside of the curly brackets for the paint kit you're replacing, EXCEPT for the "name", "description_string" and "description_tag" entries. Now paste the text from your custom skin inside of the curly brackets.
Find the line named "pattern" (if your skin uses a pattern file) and remove all directory and drive/path information and the file extension (.vtf) leaving only the filename in the "pattern" key value. (IE: If your "pattern" key is "C:\patternfile.vtf" you should change it to simply "patternfile")

Now save the items_game file and close it up.
-----------------------------------------------------------------------------------------------------------

At this point your custom skin should now be working in-game. You will *NOT* see your skin in the inventory or load-out menu as it will still display the skin as it should be. Make sure you've equipped the skin you replaced.

Now launch a game, and your skin should show up on the buymenu and in both 3rd and 1st person as you'd expect...
FIN!

Sorry for the lack of detail in these instruction. If you need any clarification on any part be sure to leave a message and I'll at least try to help.

Also note: you can extract and hack-in any of the market skins from pak file and use them for free! But I probably shouldn't mention that part :P You can figure that one out on your own.

Cheers.
109 Comments
Beanstalk313 18 Jun, 2023 @ 4:47pm 
I got past the error but my weapon skin will not appear:steamsad::steamsad::steamsad:
Beanstalk313 18 Jun, 2023 @ 4:20pm 
it did not work I got error :steamsad:
AeeN 15 Apr, 2020 @ 8:22am 
ty helped me alot
[UA/SK] Divine Lotus 1 Jul, 2019 @ 5:36am 
For anyone that use GIMP (pasting my info to relative guides):

I recommend looking into the official Valve SDK Documentation for insight on how materials work in CSGO's Source engine, linked below:
GIMP alpha channel
https://developer.valvesoftware.com/wiki/GIMP

GIMP Alpha channel: https://m.youtube.com/watch?v=LQCziSTNJgQ
https://www.youtube.com/watch?v=A9aZdPqs17M

Using GIMP VTF plugin?
Be sure you're using GIMP 2.80

Not using it for GIMP? Follow this: https://developer.valvesoftware.com/wiki/Creating_a_Material

I have a wiki going on here that relates to the process of making skins / modding: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1501754039&searchtext=Wiki

Always try to read the manuals in anything, because they often give you insight and the proper foundation of how to handle things which most people don't care to look. They miss the good stuff
secco 11 Feb, 2019 @ 7:53am 
For everyone having any problems with your skins: check this reddit page, there are useful tips for testing {LINK REMOVED}
꧁ঔৣ☬✞assasin✞☬ঔ 22 Nov, 2018 @ 9:08am 
Please make a video -_-
=(^ ^)= 29 Jun, 2018 @ 3:57pm 
To test my skin in game, do i need to purchase anything? I do not have any of those skins you are talking about. If i do where do you get them.
lolxdxd 2 Oct, 2017 @ 10:04am 
how do i find the csgo folder
Ichipwn 8 Jun, 2017 @ 4:59pm 
I was able to do follow your steps word for word, and I was also able to get the skin in the game and facing the right direction unlike most of the people commenting here. However, when I got the skin in the game i noticed that no matter what settings I tried to change, and now matter how many times I started from scratch, the skin always seems to show in a bad wear, even though I set the wear settings all to 0 in the workshop. I would highly appreciate it if you could respond and help me out, because I've been stuck on this for quite a while now and it's really starting to piss me off. I should mention that I haven't quite finished the skin yet, but i have finished enough of it to where it should definitely not look like this, I just want to test it in game first before I add the finishing touches to it.

This is what the skins should look like: http://imgur.com/8yRyWvj

However, for some odd reason, this is what's being shown in an actual match: http://imgur.com/getyZCK
东海岸重工 29 Mar, 2017 @ 8:04am 
Thank you,it does work:steamhappy:,but i still don`t know how to replace the default skin.