GoldSrc Engine Icon GoldSrc Tutorial

Source -> Goldsource

Hello world. 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

Sound fun?

Join GameBanana

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.

Posts

  • 4mo
    FunnkyHD avatar
    FunnkyHD avatar uncloaked
    Homepage
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 2y
    5,007 points Ranked 952nd
    23 medals 2 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Received thanks 50 times Medal icon
    • Reached 50 subscribers Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    CS:GO Ports
    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
  • 4mo
    James Luke avatar
    James Luke Offline
    Member Joined 2y
    721 points Ranked 6186th
    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
  • 4mo
    Powerminecraft avatar
    Member Joined 3y
    727 points Ranked 6186th
    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
    So... How i can port only textures?
    Praise Tatueugen!! avatar
    Mantra
    Praise Tatueugen!!
  • 4mo
    FunnkyHD avatar
    FunnkyHD avatar uncloaked
    Homepage
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 2y
    5,007 points Ranked 952nd
    23 medals 2 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Received thanks 50 times Medal icon
    • Reached 50 subscribers Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    CS:GO Ports
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
  • 4mo
    James Luke avatar
    James Luke Offline
    Member Joined 2y
    721 points Ranked 6186th
    Updated the download link.

    Thanks for sharing that.
    Goldsource Programmer
  • 4mo
    THePrince2231206 avatar
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    Member Joined 1y
    918 points Ranked 5017th
    19 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
    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
  • 4mo
    X RaY avatar
    X RaY avatar RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    Member Joined 2y
    10,049 points Ranked 435th
    35 medals 2 legendary 6 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.
    Hey this is a nice tutorial. Thanks
    Another Black Mesa Fan <3
  • 4mo
    Ezequiel-TM avatar
    Ezequiel-TM avatar you do not see
    Life Tree Flag Affiliation: Life Tree
    Member Joined 3y
    1,361 points Ranked 3410th
    37 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
    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 2y
721 points Ranked 6186th
Everything.

Submitter

James Luke avatar
James Luke Offline
Member Joined 2y
721 points Ranked 6186th

James Luke
Creator
Send a Private Message to the submitter

Category

Details

Difficulty Level
Intermediate Difficulty

Stats

Posts
8
Views
511
Date Added
4mo
Date Modified
4mo

Featurings

  • Today's Pick Mar 13 2017

Rating

9.7/10 by 1 rater