Source -> Goldsource

A Tutorial for GoldSrc Engine

Attention Gamer! 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.

Posts

  • 2mo
    mikutron avatar
    mikutron Offline
    Member Joined 3mo
    hey man. nice tutorial. i have a little problem. the bmp is 1024x512 texture too large
    i resize to 512x256 and compile. all model in black similar to chrome
    how do i fix? i need this model :v
    Bananite
  • 9mo
    Funnky15 avatar
    Funnky15 sleepy
    Member Joined 2y
    25 medals 3 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Received thanks 50 times Medal icon
    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
  • 9mo
    James Luke avatar
    James Luke Offline
    Member Joined 2y
    721 points Ranked 6478th
    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
  • 9mo
    So... How i can port only textures?
    Praise Tatueugen!! avatar
    Mantra
    Praise Tatueugen!!
  • 9mo
    Funnky15 avatar
    Funnky15 sleepy
    Member Joined 2y
    25 medals 3 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Received thanks 50 times Medal icon
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
  • 9mo
    James Luke avatar
    James Luke Offline
    Member Joined 2y
    721 points Ranked 6478th
    Updated the download link.

    Thanks for sharing that.
    Goldsource Programmer
  • 9mo
    THePrince2231206 avatar
    THePrince2231206 avatar Texturing
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    Member Joined 2y
    519 points Ranked 8722nd
    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 2
    • Thanks x 2
    • Win x 1
    • Interesting x 1
    Texture Specialist avatar
    Mantra
    Texture Specialist
  • 9mo
    X RaY avatar
    X RaY avatar RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    Member Joined 3y
    11,847 points Ranked 361st
    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
  • 9mo
    Ezequiel-TM avatar
    Ezequiel-TM avatar you do not see
    Life Tree Flag Affiliation: Life Tree
    Member Joined 3y
    1,683 points Ranked 2835th
    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
    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!

Embed

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

Credits

Key Authors
James Luke
James Luke Offline
Member Joined 2y
721 points Ranked 6478th
Everything.

Submitter

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

James Luke
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate
Sign up to access this!

Category

Details

Difficulty Level
Intermediate Difficulty

Stats

Posts
9
Views
1,106
Date Added
9mo
Date Modified
9mo

Featurings

  • Today's Pick Mar 13 2017

Scores

87 bScore
9.7 Rating

1 voter

Sign up to access this!

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
bcp.crwdcntrl.net tracking pixel