1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

[Source] Model compiling never seems to 'work' - help please

  • amckern
  • November 20, 2006 at 3:37 AM
  • amckern
    • November 20, 2006 at 3:37 AM
    • #1

    Hey!

    I cant for the life of me export, or build a working model file.

    I am hoping that some one here can give me a one on one from export to ingame, or can compile the models for me?

    I have 3ds max 7, and 8, with the SMD Exporter.

    I have exported a refrence file from 3ds max, and am trying to compile it with the hl2 compile kit.

    The compile seems to work, but when i load the model in HLMV it tells me 'invalid model'.

    Any hints or tips please?

    MSN - [email protected]

    Skype - amckern

    Adam

  • Campaignjunkie
    • November 20, 2006 at 3:43 AM
    • #2

    I don't really know what's wrong with your model, but I'll just say that I'm rather fond of guistudiomdl

  • Rick_D
    • November 20, 2006 at 3:52 AM
    • #3

    This is what I do, get yourself cannonfodders max smd import/export tools.

    Make sure you smooth your ref and apply only a single smoothing group to your phys model (a different smoothing group to each seperate object of your phys model if you have more than one).

    Export the ref, phys and idle smd's.

    Write yourself a qc, here's an example of one of mine:

    Code
    $modelname "rd_models/rd_shelves01.mdl" 
    
    
    $body studio "rd_shelves01_ref" 
    
    
    $cdmaterials "models/rd_models" 
    
    
    $staticprop 
    
    
    $sequence idle "rd_shelves01_idle.smd" fps 5 ACT_IDLE 1 
    
    
    $surfaceprop "wood" 
    
    
    $collisionmodel "rd_shelves01_phys.smd" { 
    
    
    $concave 
    
    
    $mass 1.0 
    
    
    }
    Display More

    I had a batch file set up for me by a great guy (Andy) from the RnL team, basically it sets it up to compile using the HL2 directories (with the often buggy SDK I find this the most consistent way). It also sets a pause so if there's any problems I have time to check them out before the window closes.To make your batch file create a new text document, open it up and paste this into it:

    Code
    "C:\PATH TO USERNAME FOLDER\sourcesdk\bin\studiomdl.exe" -game "C:\PATH TO USERNAME FOLDER\half-life 2\hl2" %1
    
    
    pause

    Save the file as (I used) studiomdl.bat (make sure you add the .bat).

    Now set up your qc, and drag/drop it onto the studiomdl.bat file (I keep my .smd, .qc and .bat files in the same folder).

    The compile window will pop up, notifying you of any errors you may have,. And if successful will place your finished model files into the hl2/models folder (depending on your path in the qc)

  • BaRRaKID
    • November 20, 2006 at 1:35 PM
    • #4

    Go to http://www.iwannamap.com there are some video tutorials there that teach you how to compile a model.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Building a Huge Library of Free Images for Everyone

    Eric Matyas
    August 17, 2026 at 1:23 PM
  2. Any of the old guard still around? D:

    Chunks
    August 7, 2026 at 11:08 PM
  3. CS:S | cs_manoir | Map creation process by D'artagnan

    Thrik
    August 3, 2026 at 10:42 AM
  4. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  5. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  6. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  7. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  8. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  9. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  10. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM

Users Viewing This Thread

  • 2 Guests
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™