Decompile a Goldsrc .MDL file without UV shifts

A Tutorial for Counter-Strike 1.6

Hey, you! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending CS PRO points.
  • Post: Give CS PRO your thoughts on this Tutorial.
  • Vote: Help CS PRO win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

Tired of having your perfect UVs shifting upon decompiling? Here's a way to prevent it!

Ladies and Gentlemen, I'd like to announce to you that me, AleKKDNIO071, and other people from Sven Co-op's discord, while we were discussing UV shifting issues, have finally discovered the way to decompile any goldsrc model while keeping the UVs 100% stable! Which Ends our major problem in Goldsrc skinning..

Requirements:


Steps:

  1. So first of all you decompile the model with Valve's MDLDecompiler as usual
  2. Now open Crowbar tools and choose the .mdl file you want to decompile, make sure the output folder is located away from files dumped by Valve's MDLD
  3. Now go to the output file where crowbar put the decompiled files (the one you chose obviously) And Copy the reference .SMDs ONLY and paste them to a new folder
  4. Copy Valve's dumped .qc file to the new folder You've put the .SMDs in.Now you're in front of 2 ways, they're pretty much the same result, but I'll explain them anyway:1- First Method here is to compare the .SMD file names you copied with the ones in Valve's .qc file format and rename the .SMDs one by one and make sure to follow the same order in the .qc file2- The second method is to rename the references mentioned inside the .qc file to match the ones you decompiled with crowbar
  5. Now copy the Animation .SMD files into the new folder along with the texture files
  6. Now do the edits you want to the skin (like dead frames removal, re-origin, bla bla..)
  7. Recompile your .mdl again, but DOn'T use Valve's StudioMDL because it'll shift the UV again! So better use the StudioMDL I linked in the requirement section on top of the tutorial
  8. Lastly, enjoy your skinning! :D

If you've got any questions comment below and I'll try to answer asap, also please rate this tutorial to make it featured on the homepage for a few days so it'll arrive to all the modders in the site, also if you know any other Goldsrc modding community please share this tutorial there so we reach everyone possible!

Posts

  • 24d
    Ezequiel-TM avatar
    Ezequiel-TM avatar you see
    Homepage
    Life Tree Flag Affiliation: Life Tree
    Member Joined 3y
    1,456 points Ranked 3253rd
    41 medals 2 legendary 12 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • Submitted 50 Skins Medal icon
    • Returned 1000 times Medal icon
    • 2nd Place - Site Improvement Ideating Contest Medal icon
    • 10 submissions featured Medal icon
    Thank you

    10/10

    say what you want, I'm crazy! avatar
    Mantra
    say what you want, I'm crazy!
  • 24dEdited 24d
    CS PRO avatar
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 4y
    6,907 points Ranked 638th
    32 medals 2 legendary 5 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Reached 50 subscribers Medal icon
    • Received thanks 50 times Medal icon
    CS PRO avatar
    CS PRO
    CS:GO Ports Flag
    CS:GO Ports
    schiff. MasterEmile

    So you guys aren't believing this tutorial actually makes sense?

    I can prove to you that the UV barely moves using this tutorial! Here's a comparison between the P250 model's I decompiled to remove some dead frames and the one after recompiling using this tutorial:
    Original:

    Recompiled:


    As you can see it's 99% the same.
    Also it's not always easy to fix UVs through MS3D or other programs, you'll still have some differences and honestly it gave me headaches few times!
    It's time .. For a change avatar
    Mantra
    It's time .. For a change
  • 24d
    MasterEmile avatar
    MasterEmile avatar Offline
    Member Joined 4y
    1,152 points Ranked 4105th
    14 medals 1 rare
    • Returned 1000 times Medal icon
    • Unlocked Treehouse VIP clearance Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    You do know the decompiler and compiler we have today are out dated. You still have to fix the uv map on textures either way.

    I hate to break your tutorial but your just adding more work on a simple task that can be done by Milkshape itself. 
    • Agree x 4
    Retired 2012 - 2017 avatar
    Mantra
    Retired 2012 - 2017
  • 24d
    schiff. avatar
    schiff. avatar away
    Cell 1 Flag Affiliation: Cell 1
    Member Joined 8y
    19,203 points Ranked 226th
    41 medals 4 legendary 8 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • Reached 100 subscribers Medal icon
    • Returned 5000 times Medal icon
    • Submitted 50 WiPs Medal icon
    • 6 years a member Medal icon

       
    • Funny x 2
    • Correct x 2
    one man army. avatar
    Mantra
    one man army.

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
CS PRO avatar CS:GO Ports Flag
CS:GO Ports
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 4y
6,907 points Ranked 638th
32 medals 2 legendary 5 rare
  • Submitted 100 Skins Medal icon
  • 30 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • 10 submissions featured Medal icon
  • Reached 50 subscribers Medal icon
  • Received thanks 50 times Medal icon
Figured out, Wrote, Screenshooted, tested
Contributors
AleKK avatar
AleKK avatar Offline
Member Joined 1y
2,410 points Ranked 1942nd
11 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • Submission featured Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • 6 months a member Medal icon
"If i decompile GoldSRC model with Crowbar will it shift the UVs of .SMDs?"
DNIO071
DNIO071 Offline
Member Joined 3mo
169 points Ranked 20106th
H2Whoa

Submitter

CS PRO avatar
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 4y
6,907 points Ranked 638th
32 medals 2 legendary 5 rare
  • Submitted 100 Skins Medal icon
  • 30 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • 10 submissions featured Medal icon
  • Reached 50 subscribers Medal icon
  • Received thanks 50 times Medal icon

CS PRO avatar
CS PRO
CS:GO Ports Flag
CS:GO Ports

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

Genre
Compiling

Stats

Posts
10
Views
373
Date Added
25d
Date Modified
24d

Scores

91 bScore
10 Rating

6 voters

Sign up to access this!

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel