The Game Modding Community - Since 2001

Physics Props Fix

A Tutorial for Day of Defeat: Source

A short tutorial to fix physics props placement and spawn lag.

Physics Props Fix Anyone who has made a map has at some point used the prop_physics entities, so you're familiar with the effect you see upon map spawn where everything lags for a few seconds as all the physics entities drop and 'settle' in the map. Crates, barrels and other odd items fall to the ground all at once and so on. There is a simple way to fix that and it takes only a few minutes to do. I've uploaded a .vmf for you to play with, its a small enough testing map so that you won't be straining your computer. BOTH hammer and Day of Defeat Source (or any source game for that matter) must be open at the same time, hence the small example map. There are hud hints to help you remember commands etc In-Game so you don't have to toggle in/out of it while reading this tutorial - However, I still suggest reading this tutorial heh, so you know why your doing the things the map tells you to. Prep Work
Before I show you how to fix this problem there is a setting we have to turn off in hammer so that this will work properly. Hammers Autosave: Normally this is a mappers saving grace for preventing lost work due to a crash; however, to fix the physics props issue we need to turn this off. The copy of the map within hammer must match EXACTLY that of the compiled map, even just hitting the save button makes them different versions and breaks the process as there will be no communication between your game and hammer. To turn off the autosave feature go to the top menu bar, select Tools > Options, Then within that dialogue box switch to the General Tab and halfway down you will see the autosave settings, Just un-check the box if it isn't already and your good to go. Now you will be fine to compile the map again - for the sake of just fixing props don't bother running either VVIS or VRAD. The How-To:
  1. Open Hammer
  2. Load your map (or the provided Test map)
  3. Press F9 or the compile button
    • Compile only BSP, leave VVIS and VRAD as "No"
  4. Leave Hammer OPEN and DO NOT SAVE
  5. Open applicable Source game
  6. Open the Command Console, type "map\_edit MAPNAME"
    • Do not load the map via a Create Server button, you must use the map\_edit command
  7. When the map has loaded use the "host\_timescale 10" console command to speed up the process a bit so things are perfectly settled and doesn't take a few minutes but rather seconds.
    • Once things are settled you can put the "host\_timescale" value back to 1.
  8. Type "hammer\_update\_entity prop\_physics" and/or "hammer_update_entity prop_physics_multiplayer"
  9. Exit the Game and Switch to Hammer, you may now save the map with its new changes.
*Note that for any Orange box games you should be using "hammer\_update\_entity", for EP1 games you would be using "wc\_update\_entity"; however, this feature in EP1 Games seems to have been removed/broken upon the OB release as there is no communication between the editor and the game anymore, currently the orangebox command is the only one that will work. I only tested it on a few EP1 Games, if you find one that works please tell me. A green Border outline of the props in-game means that the changes were successfully transferred to Hammer, red border means they were not. Double check your steps if you got all red borders on your entities. Now that the props positions have changed in hammer remember to save - also turn on your autosaves again - and lastly go through your prop\_physics entities and check on their "Start Asleep" flags. The start of round/map spawn lag will be gone and the props will only perform their physics calculations when something touches them.

Posts

  • 2y
    Syntox avatar
    Syntox username pic Joined 7y ago
    Offline
    1,587 points Ranked 3097th
    13 medals 2 rare
    • Returned 1000 times Medal icon
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    Hammer not saving/updating the postion.
    maybe because of the 2013 update?
    i start hammer in bin folder
    (CS:S)
    Mapper
  • 6y
    The Fool avatar
    The Fool Joined 10y ago
    Offline
    468 points Ranked 9701st
    10 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • 5 posts awarded Exemplary Feedback Medal icon
    • 10 posts awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    Lost, this is absolutely brilliant. This method isn't something you'd find on a Valve Developer Community tutorial-- it's original and it's intuitive. I really do appreciate the help, this is simply genius. Thank you very much.
    Mapper, Graphic Artist avatar
    Mantra
    Mapper, Graphic Artist
  • 9y
    Urser avatar
    Urser Joined 9y ago
    Offline
    Great tutorial! Very helpful. Oddly, this was exactly what I was looking for and it's the first thing I see when I come on FPSBanana.

    10

    Snoogums
  • 9y
    ExtraOrdinary avatar
    ExtraOrdinary Joined 11y ago
    Offline
    8,446 points Ranked 548th
    13 medals 1 legendary 1 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • Reached 7,500 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    A very good tutorial for the prop_physics, I've nearly always had some problems with the prop_physics. and this describes it very good, it's a clear tutorial

    9.3

    Proud GTX285 User (02 June 200 avatar
    Mantra
    Proud GTX285 User (02 June 200
  • 9y
    Mastergun avatar
    Mastergun Joined 10y ago
    Offline
    3,431 points Ranked 1411th
    10 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    Ah ok i gotcha now

    10

    run, gun, reload avatar
    Mantra
    run, gun, reload
  • 9y
    Logan Dougall avatar
    Logan Dougall username pic Joined 12y ago
    Admin
    Offline
    Half Life Storm Flag Affiliation: Half Life Storm
    16,497 points Ranked 263rd
    40 medals 3 legendary 9 rare
    • Achieved Admin clearance Medal icon
    • 500 posts awarded Exemplary Feedback Medal icon
    • 10 years a member Medal icon
    • 50 posts awarded Exemplary Feedback Medal icon
    • 100 posts awarded Exemplary Feedback Medal icon
    • 200 posts awarded Exemplary Feedback Medal icon
    Logan Dougall avatar
    Logan Dougall
    Half Life Storm Flag
    Affiliation
    Half Life Storm
    Admin
    > **Posted by Mastergun**

    > Great tutorial like usual. one question though, when you hit compile doesnt hammer save the map anyway or is that why you turned off the auto save option ?

    The map is saved before/as it compiles, hence why the versions match at that point. However due to the time between your compiling it and loading the game and then the map itself, hammer may have ran an autosave within that period which makes it a newer version. That's why autosave must be off.

    You need time to get things done.
    ÜberStylers {...} ~/clubs/1947
  • 9y
    Mastergun avatar
    Mastergun Joined 10y ago
    Offline
    3,431 points Ranked 1411th
    10 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    Great tutorial like usual. one question though, when you hit compile doesnt hammer save the map anyway or is that why you turned off the auto save option ?

    10

    run, gun, reload avatar
    Mantra
    run, gun, reload
  • 9y
    Anonymous
    Once again Lost, you have gone above and beyond the expected. This is such a cool trick and, to be honest, I never even would have thought that there was a fix to this problem in the first place.

    The only problem I have with your tut is the introduction. At first I was confused about the tutorial's purpose, so I think you may want to spend a few minutes on the opening paragraph and make it more concise.

    Can't wait for you to finish up your other "WiP" tutorials!
  • 9y
    Seroliser avatar
    Seroliser Joined 10y ago
    Offline
    545 points Ranked 8484th
    6 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    What a superb tutorial! This is something i've always had problems with. And now, with your epic explanation of fixing the problem, i never have to worry about it again. Thank you!

    9.8

    Title goes here. avatar
    Mantra
    Title goes here.

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:
Sign up to access this!

Credits

Key Authors
Logan Dougall avatar Half Life Storm Flag
Affiliation
Half Life Storm
Logan Dougall username pic Joined 12y ago
Admin
Offline
Half Life Storm Flag Affiliation: Half Life Storm
16,497 points Ranked 263rd
40 medals 3 legendary 9 rare
  • Achieved Admin clearance Medal icon
  • 500 posts awarded Exemplary Feedback Medal icon
  • 10 years a member Medal icon
  • 50 posts awarded Exemplary Feedback Medal icon
  • 100 posts awarded Exemplary Feedback Medal icon
  • 200 posts awarded Exemplary Feedback Medal icon
Writer, Mapper, Lover,
Special Thanks
Graceful
Providing Caffeine

Submitter

Logan Dougall avatar
Logan Dougall username pic Joined 12y ago
Admin
Offline
Half Life Storm Flag Affiliation: Half Life Storm
16,497 points Ranked 263rd
40 medals 3 legendary 9 rare
  • Achieved Admin clearance Medal icon
  • 500 posts awarded Exemplary Feedback Medal icon
  • 10 years a member Medal icon
  • 50 posts awarded Exemplary Feedback Medal icon
  • 100 posts awarded Exemplary Feedback Medal icon
  • 200 posts awarded Exemplary Feedback Medal icon

Logan Dougall avatar
Logan Dougall
Half Life Storm Flag
Affiliation
Half Life Storm

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

Scores

88 bScore
9.8 Rating

5 voters

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

Category

Details

Difficulty Level
Beginner Difficulty

Stats

Posts
9
Views
8,685
Date Added
9y
Date Modified
3y

Share

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

SEX! Ok, we got your attention. 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.

Stop Lurking! Sign up now!

Already a Bananite? Login

WiPs by Submitter

More from Studio

WiPs by Studio

bcp.crwdcntrl.net tracking pixel