Source → GoldSource

A Tutorial for GoldSrc Engine

Updates

TutorialParentSubmitterStats
  • Improvement General improvements.
  • Amendment Grammatical fixes.
  • Amendment Updated links.
  • Improvement Included a contributor's suggestion.

Additional Notes
(early) 1-Year Anniversary Update 7mo
Stats

A(n updated) porting guide.

2/17/18 edit- This is an updated version of the original article I posted.

I used CrowbarMS3D, and Notepad++. As MilkShape 3D is not free software, a suitable alternative has to be found if you do not own a copy.

For this example, I'm porting the shotgun from Half-Life 2. First, I gathered all the model files. 

I put them into a folder structured like this:


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


After decompiling, your files should look like this:



Then go into MS3D > File > Import > Half-Life SMD 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 indexed, 256-colour palette. Be sure that all image files have sizes that are a power of 2 and under 512x512! (Exception if your compilers support larger files, i.e. Xash).

It should look like this when you're done:


(But move them (the textures?) to your final folder! And be sure to 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.

I have no idea what I was talking about here originally, but to quote THePrince,
"...just compile the model [normally], 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".

Also, what was I going on about here too initially? Half-Life 2 by default uses a viewmodel FOV (that Half-Life 1 lacks) and a different default_fov.

Here's the finished result:


Hope you enjoyed! Post here or PM me for any comments/concerns.

First tutorial here, don't kill me!

Posts

  • mikutron avatar
    mikutron Joined 1y ago
    Offline
    12mo
    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
  • FunnkyHD avatar
    FunnkyHD username pic Joined 3y ago
    in the shadows
    CS:GO Ports Flag Affiliation: CS:GO Ports
    7,670 points Ranked 630th
    29 medals 5 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • Submitted 100 Skins Medal icon
    • 10 submissions featured Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    Affiliation
    CS:GO Ports
    2y
    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 Joined 3y ago
    Offline
    776 points Ranked 6530th
    2y
    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
    Powerminecraft Joined 4y ago
    Offline
    504 points Ranked 9745th
    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
    2y
    So... How i can port only textures?
    Praise Tatueugen!! avatar
    Mantra
    Praise Tatueugen!!
  • FunnkyHD avatar
    FunnkyHD username pic Joined 3y ago
    in the shadows
    CS:GO Ports Flag Affiliation: CS:GO Ports
    7,670 points Ranked 630th
    29 medals 5 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • Submitted 100 Skins Medal icon
    • 10 submissions featured Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    Affiliation
    CS:GO Ports
    2y
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
  • James Luke avatar
    James Luke Joined 3y ago
    Offline
    776 points Ranked 6530th
    2y
    Updated the download link.

    Thanks for sharing that.
    GoldSource Programmer
  • Viper1337 avatar
    Viper1337 username pic Joined 2y ago
    Probably dead
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    2,185 points Ranked 2359th
    23 medals 1 legendary 2 rare
    • Returned 5000 times Medal icon
    • 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
    Viper1337 avatar
    Viper1337
    Wasteland Rebels Flag
    Affiliation
    Wasteland Rebels
    2y
    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
  • X RaY avatar
    X RaY username pic Joined 3y ago
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    15,081 points Ranked 299th
    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
    Affiliation
    Black Mesa Inc.
    2y
    Hey this is a nice tutorial. Thanks
    Another Black Mesa Fan <3
  • Ezequiel-TM avatar
    Ezequiel-TM username pic Joined 4y ago
    MUGEN Manager HL Manager SC Manager CS1.6 Manager CS:CZ Manager
    you do not see
    Life Tree Flag Affiliation: Life Tree
    3,004 points Ranked 1687th
    46 medals 4 legendary 13 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • 2017 Top Contributor Medal icon
    • Returned 5000 times Medal icon
    • Submitted 50 Skins Medal icon
    • Returned 1000 times Medal icon
    Ezequiel-TM avatar
    Ezequiel-TM
    Life Tree Flag
    Affiliation
    Life Tree
    2y
    Uff... A little long but useful, maybe use it in the future

    9.7

    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 Joined 3y ago
Offline
776 points Ranked 6530th
Everything.

Submitter

James Luke avatar
James Luke Joined 3y ago
Offline
776 points Ranked 6530th

James Luke
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 2,423 Views
  • 10 Posts
  • 2y Submitted
  • 7mo Modified
  • 7mo Updated

Featurings

  • Today's Pick Mar 13 2017

Scores

87 bScore
9.6 Rating

2 voters

Sign up to access this!
bcp.crwdcntrl.net tracking pixel