Goldsource 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

  • 2mo
    FunnkyHD avatar
    FunnkyHD avatar cloaked
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 1y
    2,258 points Ranked 2018th
    22 medals 1 legendary 5 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
    • Submitted 50 Skins Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    CS:GO Ports
    Report post
    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
  • 2mo
    James Luke avatar
    James Luke Offline
    Member Joined 2y
    721 points Ranked 6049th
    Report post
    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
  • 2mo
    So... How i can port only textures?
    Praise Tatueugen!! avatar
    Mantra
    Praise Tatueugen!!
  • 2mo
    FunnkyHD avatar
    FunnkyHD avatar cloaked
    CS:GO Ports Flag Affiliation: CS:GO Ports
    Member Joined 1y
    2,258 points Ranked 2018th
    22 medals 1 legendary 5 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
    • Submitted 50 Skins Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    CS:GO Ports
    Report post
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
  • 2mo
    James Luke avatar
    James Luke Offline
    Member Joined 2y
    721 points Ranked 6049th
    Report post
    Updated the download link.

    Thanks for sharing that.
    Goldsource Programmer
  • 2mo
    THePrince2231206 avatar
    THePrince2231206 avatar Texturing
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    Member Joined 11mo
    513 points Ranked 8188th
    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
    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
  • 2mo
    X RaY avatar
    X RaY avatar RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    Member Joined 2y
    9,056 points Ranked 473rd
    34 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
    Hey this is a nice tutorial. Thanks
    Another Black Mesa Fan <3
  • 2mo
    Ezequiel-TM avatar
    Ezequiel-TM avatar you do not see
    Life Tree Flag Affiliation: Life Tree
    Member Joined 3y
    496 points Ranked 8431st
    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
    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 6049th
Everything.

Submitter

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

James Luke
Creator
Send a Private Message to the submitter

Category

Details

Difficulty Level
Intermediate Difficulty

Stats

Posts
8
Views
380
Date Added
2mo
Date Modified
2mo

Featurings

  • Today's Pick Mar 13 2017

Rating

9.7/10 by 1 rater