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
776 points Ranked 6432nd
James Luke
5mo

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

  • 10mo
    mikutron avatar
    mikutron Joined 10mo 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
  • 1y
    FunnkyHD avatar
    FunnkyHD Joined 3y ago
    in the shadows
    Life Tree Flag Affiliation: Life Tree
    3,078 points Ranked 1614th
    27 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
    FunnkyHD Life Tree Flag
    Affiliation
    Life Tree
    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
    i ded rip
  • 1y
    James Luke avatar
    James Luke Joined 3y ago
    Offline
    776 points Ranked 6432nd
    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
  • 1y
    Powerminecraft avatar
    Powerminecraft Joined 4y ago
    Offline
    282 points Ranked 15005th
    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!!
  • 1y
    FunnkyHD avatar
    FunnkyHD Joined 3y ago
    in the shadows
    Life Tree Flag Affiliation: Life Tree
    3,078 points Ranked 1614th
    27 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
    FunnkyHD Life Tree Flag
    Affiliation
    Life Tree
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
    i ded rip
  • 1y
    James Luke avatar
    James Luke Joined 3y ago
    Offline
    776 points Ranked 6432nd
    Updated the download link.

    Thanks for sharing that.
    GoldSource Programmer
  • 1y
    Viper1337 avatar
    Viper1337 username pic Joined 2y ago
    Texturing
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    1,850 points Ranked 2767th
    22 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
    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
  • 1y
    X RaY avatar
    X RaY username pic Joined 3y ago
    RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    14,525 points Ranked 313rd
    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
  • 1y
    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
    2,357 points Ranked 2140th
    45 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
    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 6432nd
Everything.

Submitter

James Luke avatar
James Luke Joined 3y ago
Offline
776 points Ranked 6432nd

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

Category

Details

Difficulty Level
Intermediate Difficulty

Share

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

Featurings

  • Today's Pick Mar 13 2017

Stats

  • 2,175 Views
  • 10 Posts
  • 1y Submitted
  • 5mo Modified
  • 5mo Updated

Scores

87 bScore
9.6 Rating

2 voters

Sign up to access this!

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