Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

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.

Comments

Sign up to access this!
  • Syntox avatar
    Syntox username pic Joined 9y ago
    Offline
    8,601 points Ranked 686th
    14 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
    access_time 4y
    Hammer not saving/updating the postion. maybe because of the 2013 update? i start hammer in bin folder (CS:S)
    SourceSDK
    URL to post:
  • The Fool avatar
    The Fool Joined 11y ago
    Offline
    510 points Ranked 45221st
    11 medals 1 legendary 1 rare
    • 10 years a member Medal icon
    • 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
    access_time 8y
    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
    URL to post:
  • Urser avatar
    Urser Joined 11y ago
    Offline
    access_time 10y
    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.
    Snoogums
    URL to post:
  • ExtraOrdinary avatar
    ExtraOrdinary Joined 12y ago
    Offline
    8,446 points Ranked 713rd
    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
    access_time 10y
    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
    Proud GTX285 User (02 June 200 avatar
    Mantra
    Proud GTX285 User (02 June 200
    URL to post:
  • Mastergun avatar
    Mastergun Joined 12y ago
    Offline
    3,431 points Ranked 2351st
    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
    access_time 10y
    Ah ok i gotcha now
    run, gun, reload avatar
    Mantra
    run, gun, reload
    URL to post:
  • Logan Dougall avatar
    Logan Dougall username pic Joined 13y ago
    Admin
    Offline
    Half Life Storm Flag Affiliation: Half Life Storm
    20,211 points Ranked 254th
    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
    access_time 10y
    > **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.
    Structural Designer / Dad :)
    URL to post:
  • Mastergun avatar
    Mastergun Joined 12y ago
    Offline
    3,431 points Ranked 2351st
    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
    access_time 10y
    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 ?
    run, gun, reload avatar
    Mantra
    run, gun, reload
    URL to post:
  • Anonymous
    access_time 10y
    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!
    URL to post:
  • Seroliser avatar
    Seroliser Joined 11y ago
    Offline
    545 points Ranked 44679th
    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
    access_time 10y
    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!
    Title goes here. avatar
    Mantra
    Title goes here.
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Studio

Sign up to access this!

Credits

Key Authors
Logan Dougall avatar Half Life Storm Flag
Affiliation
Half Life Storm
Logan Dougall username pic Joined 13y ago
Admin
Offline
Half Life Storm Flag Affiliation: Half Life Storm
20,211 points Ranked 254th
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 username pic Joined 13y ago
Admin
Offline
Half Life Storm Flag Affiliation: Half Life Storm
20,211 points Ranked 254th
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!

Game

Sign up to access this!

Category

Details

Difficulty Level
Beginner

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 5
  • remove_red_eye 9.5k
  • mode_comment 9
  • access_time 10y
  • access_time 4y

More from Submitter

menu

WiPs by Submitter

menu

More from Studio

WiPs by Studio

More Mapping Tutorials

bcp.crwdcntrl.net tracking pixel