The Game Modding Community - Since 2001

Source → GoldSource

A Tutorial for GoldSrc Engine

Updates

(early) 1-Year Anniversary Update
  • Improvement General improvements.
  • Amendment Grammatical fixes.
  • Amendment Updated links.
  • Improvement Included a contributor's suggestion.
That should be all, but looking back after a year, only thing I see is that this has been done before, and has been done after me.

Never change GameBanana, never change.

Enjoy.
James Luke avatar
James Luke Joined 3y ago
Offline
764 points Ranked 6287th
James Luke
6d

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

  • 5mo
    mikutron avatar
    mikutron Joined 5mo ago
    Offline
    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
  • 11mo
    Funnky15 avatar
    Funnky15 Joined 2y ago
    sleepy
    1,514 points Ranked 3257th
    26 medals 4 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 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
  • 11mo
    James Luke avatar
    James Luke Joined 3y ago
    Offline
    764 points Ranked 6287th
    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
  • 11mo
    Powerminecraft avatar
    Powerminecraft Joined 3y ago
    Offline
    410 points Ranked 10865th
    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!!
  • 11mo
    Funnky15 avatar
    Funnky15 Joined 2y ago
    sleepy
    1,514 points Ranked 3257th
    26 medals 4 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
  • 11mo
    James Luke avatar
    James Luke Joined 3y ago
    Offline
    764 points Ranked 6287th
    Updated the download link.

    Thanks for sharing that.
    GoldSource Programmer
  • 11mo
    THePrince2231206 avatar
    THePrince2231206 username pic Joined 2y ago
    Texturing
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    1,173 points Ranked 4219th
    20 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
    Affiliation
    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
  • 11mo
    X RaY avatar
    X RaY username pic Joined 3y ago
    RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    12,399 points Ranked 353rd
    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.
    Hey this is a nice tutorial. Thanks
    Another Black Mesa Fan <3
  • 11mo
    Ezequiel-TM avatar
    Ezequiel-TM username pic Joined 4y ago
    MUGEN Manager HL Manager SC Manager
    you do not see
    Life Tree Flag Affiliation: Life Tree
    3,332 points Ranked 1447th
    44 medals 3 legendary 13 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • 2017 Top Contributor Medal icon
    • Submitted 50 Skins Medal icon
    • Returned 1000 times Medal icon
    • 2nd Place - Site Improvement Ideating Contest Medal icon
    Ezequiel-TM avatar
    Ezequiel-TM
    Life Tree Flag
    Affiliation
    Life Tree
    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
764 points Ranked 6287th
Everything.

Submitter

James Luke avatar
James Luke Joined 3y ago
Offline
764 points Ranked 6287th

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

Scores

87 bScore
9.6 Rating

2 voters

Sign up to access this!
Sign up to access this!

Category

Details

Difficulty Level
Intermediate Difficulty

Stats

Posts
9
Views
1,447
Date Added
11mo
Date Modified
6d
Date Updated
6d

Featurings

  • Today's Pick Mar 13 2017

Share

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

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Interested? Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel