Goldsource Engine Icon GoldSrc Tutorial

Source -> Goldsource

Greetings! 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 James Luke points.
  • Post: Give James Luke your thoughts on this Tutorial.
  • Vote: Help James Luke 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

Resistance is futile...

Sign up

Already a Bananite? Login

A porting guide.

Hello, just thought I'd poke in here and give something back to the community. I'm sure this has been done before, but this is my method and works pretty well.

I used CrowbarMS3D, and Notepad++.

First of all, I gathered all the model and texture information. For this example, I'm porting the Shotgun from HL2.

I put them into a folder-structure like this:

(The .qc file is here!)

After that, I opened up Crowbar and set up the menu like this:


After that, your files should look like this:



Then go into MS3D and import your reference model. DO NOT rename your bones!

At this point however, were going to need the textures to make this work. Locate those and convert them to .bmp files with a 256-colour palette.

It should look like this when you're done:

(But move them to your final folder! (And select them in MS3D through your final folder!!))

Back into MS3D and go to your Materials section. Select your textures and if you did it correctly, it should look like this:


After that, export as a reference and move to your final folder.

Move all your animations into your final folder as well.

There's a little hack I like to use so you don't have to keep porting your animations over, just edit out the Crowbar header in each .smd file.

Example:
// Created by Crowbar 0.34.0.0
version 1
nodes
Make it look like this:
version 1
nodes
Now do this for every .smd file.

When you're done, all that's left is to link them up into your .qc file.

Here's the finished example I'm going to be using. (For clutter reasons, I'm not including the attachments or sound effects.)

Now compile and your model should look like this. Obviously the compiling process/Source engine changes the model a bit, but with some origin fixing, it'll look as good as new.

Here's the finished result.



Hope you enjoyed! Post here or PM me for any comments/concerns. First tutorial here, don't kill me!

EDIT: For whatever reason, editing the animations in MS3D is now impossible. Exporting them will yield a 1-2 frame animation.

This is because of the way the time-frames are put in the file...if anyone has a fix for this. Please share.

EDIT: As THePrince has pointed out, you can solve this problem. Read his comment below.

Comments

  • FunnkyHD avatar
    FunnkyHD avatar cloaked
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 1 year ago
    2,790 points Ranked 1633rd
    21 medals 1 legendary 4 rare
    • 30 submissions featured Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Received thanks 50 times Medal icon
    • Reached 50 subscribers Medal icon
    • One month a member Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    CS:GO Ports
    Report post
    15 days ago:
    Posted by James Luke

    I use Photoshop to convert, and IrfanView if I want to batch convert.

    What do you mean? You can extract the .vtf file and export them as a .bmp then convert to 256-colour palette. Is that what your asking for?
    1. Open vtf file
    2. Export as bmp file
    3. Resize to 512x512 (if needed) and then make it indexed
  • James Luke avatar
    James Luke Offline
    Member Joined 2 years ago
    673 points Ranked 6348th
    Report post
    15 days ago:
    I use Photoshop to convert, and IrfanView if I want to batch convert.

    What do you mean? You can extract the .vtf file and export them as a .bmp then convert to 256-colour palette. Is that what your asking for?
    Goldsource Programmer
  • Powerminecraft avatar
    Member Joined 2 years ago
    409 points Ranked 9825th
    7 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • Thanked 5 submitters Medal icon
    • Returned 100 times Medal icon
    Report post
    15 days ago:
    So... How i can port only textures?
    Praise Tatueugen!! avatar
    Mantra
    Praise Tatueugen!!
  • FunnkyHD avatar
    FunnkyHD avatar cloaked
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 1 year ago
    2,790 points Ranked 1633rd
    21 medals 1 legendary 4 rare
    • 30 submissions featured Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Received thanks 50 times Medal icon
    • Reached 50 subscribers Medal icon
    • One month a member Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    CS:GO Ports
    Report post
    15 days ago:
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
  • James Luke avatar
    James Luke Offline
    Member Joined 2 years ago
    673 points Ranked 6348th
    Report post
    15 days ago:
    Updated the download link.

    Thanks for sharing that.
    Goldsource Programmer
  • THePrince2231206 avatar
    THePrince2231206 avatar Texturing
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    Member Joined 10 months ago
    254 points Ranked 14239th
    18 medals 2 rare
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 5 Models Medal icon
    • One month a member Medal icon
    • Received thanks 5 times Medal icon
    • Modeller of the Month, June 2016 Medal icon
    THePrince2231206 avatar
    THePrince2231206
    Wasteland Rebels Flag
    Wasteland Rebels
    Report post
    15 days ago:
    Do NOT download crowbar from therazzerapp.de, it is outdated, download this one instead.

    EDIT: Editing the animations in MS3D is fairly simple , just compile the model with the way you showed, then open MS3D, go to Tools - Karisto's HL MDL Decompiler, uncheck everything except Sequence SMDs (leave it checked) browse the model directory, and decompile... if you try to import the animations on MS3D now, they should work
    • Helpful x 1
    • Thanks x 1
    Texture Specialist avatar
    Mantra
    Texture Specialist
  • X RaY avatar
    X RaY avatar RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    Member Joined 2 years ago
    8,863 points Ranked 482nd
    33 medals 2 legendary 5 rare
    • Submitted 100 Sounds Medal icon
    • 30 submissions featured Medal icon
    • Submitted 50 Sounds Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    X RaY avatar
    X RaY
    Black Mesa Inc. Flag
    Black Mesa Inc.
    Report post
    16 days ago:
    Hey this is a nice tutorial. Thanks
    Another Black Mesa Fan <3
  • Ezequiel-TM avatar
    Ezequiel-TM avatar you do not see
    Life Tree Flag Affiliation: Life Tree
    Member Joined 3 years ago
    1,970 points Ranked 2327th
    36 medals 1 legendary 11 rare
    • Submitted 100 Skins 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
    • Submitted 5 Tools Medal icon
    Report post
    16 days ago:
    Uff... A little long but useful, maybe use it in the future

    9.7/10

    say what you want, I'm crazy! avatar
    Mantra
    say what you want, I'm crazy!

Share

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

More embeddable images

Bookmark and Share

Credits

Key Authors
James Luke
James Luke Offline
Member Joined 2 years ago
673 points Ranked 6348th
Everything.

Submitter

James Luke avatar
James Luke Offline
Member Joined 2 years ago
673 points Ranked 6348th

James Luke
Creator
Send a Private Message to the submitter

Category

Details

Difficulty Level
Intermediate Difficulty

Stats

Posts
8
Views
279
Date Added
16 days ago
Mar 12 2017 @ 2:26am UTC
Date Modified
15 days ago
Mar 12 2017 @ 8:17pm UTC
Date Updated
16 days ago
Mar 12 2017 @ 2:26am UTC

Featurings

  • Today's Pick Mar 13 2017

Rating

9.7/10 by 1 rater