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

Compiling models for Orange box content

  • robert.briscoe
  • February 18, 2008 at 10:29 AM
  • robert.briscoe
    • February 18, 2008 at 10:29 AM
    • #1

    Hey guys,

    I'm using the latest sdk beta (-beta srcsdk0122) so that I can create a new mod using the orange box engine as a base. The problem im having is that I cannot get models to compile. At the moment I have a batch file which i drag my .qc files onto, the bat file consists of the following:

    @echo off

    "%sourcesdk%\bin\orangebox\bin\studiomdl.exe" "%1"

    pause

    when the compile window comes up I get "WARNING: AppFramework : Unable to load module p4lib.dll!" and at the end: "Error opening f:\valve\steam\steamapps\SourceMods\Willows\models/perftest\PineTreeInd_01.mdl! (Check for write enable)"

    Now i've seen on various forums that you need to add a -nop4 command when you launch the sdk, so I added a shortcut with the line "F:\Valve\Steam\Steam.exe -applaunch 211 -nop4 -beta srcsdk0122" however it doesnt seem to fix the problem for me.

    Anyone know what im doing wrong?

  • m8nkey
    • February 18, 2008 at 12:21 PM
    • #2

    I haven't touched the Orange Box SDK but I did read a thread on a forum where someone had this error and simply compiled the model for -ep1 instead and it worked fine in TF2. I can't verify if this is true or not but it may be worth trying as a temporary work around.

  • Bluestrike
    • February 18, 2008 at 4:56 PM
    • #3

    The nop4 is not nessesary with the beta sdk, you also put it in the wrong place, you had to make a shortcut to studiomdl.exe and use it at the command line there.

    I haven't compiled a model with the orangebox sdk since the beta is availeble, before I just used EP1 for a portal model as M8nkey mentioned.

  • Mr. Happy
    • February 25, 2008 at 1:38 PM
    • #4

    Your not using the beta source sdk. Adding -beta srcsdk0122 to the Start in: line of your steam shortcut does nothing, it needs to go in the Target: field.

    You need to make a new shortcut from scratch (as the default shortcut doesn't let you edit the Target: field)

    • 1. Close Steam
      2, Right click on your desktop and choose New>Shortcut
      3. Click Browse and navigate to your steam installation directory (typically C:\Program Files\Steam)
      4. Choose the second, capitalized, Steam listing. (You will see steam and Steam. steam is an icon, Steam is the exe)
      5. Click Ok, Next, and Finish
      6. Right click on the new shortcut and choose "properties"
      7. In the "Target" field type -beta srcsdk0122 AFTER the quotes.
      8. Restart Steam and the Source SDK will update.

    Also, don't add the app launch 211. The shortcut needs you be for steam, rather than the SDK. Once you've restarted steam and the SDK updates the standard Source sDK shortcut without any extra switches will launch the beta.

  • skdr
    • February 26, 2008 at 11:55 AM
    • #5

    This beta can be enabled from Steam settings too. No need to fiddle around with command lines.

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. How to Use a Free Kundali Maker for Accurate Future Predictions

    astr09
    July 23, 2026 at 6:35 AM
  2. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  3. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  4. About our archived forums

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

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

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

    Eric Matyas
    June 18, 2026 at 12:32 PM
  8. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  9. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  10. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™