SRCDS Steam group


L4D Autoupdate fix script
#1
When you start left4dead you might notice it say 'Could not locate steam binary:./steam, ignoring.' at the top. That's from the autoupdate process not working because of the game being in a subfolder and ./steam being one folder above. This following script will fix the srcds_run file to autoupdate correctly. If you want further explanation, read the link bellow.

1) Put this code in a file:

vi ./l4dautoupdate-fix.sh

You only need to modify the FILE variable in this script to match your setup.
Code:
#!/bin/bash
PATCH_TEXT="cd ..; updatesingle; cd l4d;"
ORIGINAL_PATTERN="updatesingle$"
# Change this to your l4d srcds_run full path:
FILE="/home/hlds/l4d/srcds_run"

if [ -e $FILE ]
then
  NUMBER_OF_MATCHING_LINES=$(grep -c "$PATCH_TEXT" $FILE)
  NUMBER_OF_PATCHABLE_LINES=$(grep -c -e "$ORIGINAL_PATTERN" $FILE)

  if [ "$NUMBER_OF_MATCHING_LINES" -eq 0 ] && [ "$NUMBER_OF_PATCHABLE_LINES" -eq 1 ]
  then
    echo "File exists and is not patched, will update";
    sed -i.bak -e "s/$ORIGINAL_PATTERN/$PATCH_TEXT/g" $FILE
  fi
fi

2) chmod +x ./l4dautoupdate-fix.sh
3) make it automatically check if the auto update has been re-broken by steam updating srcds_run by putting the script in your crontab:

crontab -e

Code:
15,45 * * * *   /home/hlds/scripts/l4dautoupdate-fix.sh > /dev/null 2>&1
(modify to be whatever your path is)

Credit goes out to oo22 for finding the fix originally and ogre_x for packaging my auto-fix-repeatedly idea into a clean script.

original tf2 auto-update fix discussion: http://forums.srcds.com/viewtopic/6037
Reply
#2
Awesome, that fixed this error for me. Thanks!
Reply
#3
Forms of the CD are arranged on top of the things. The skills are applied with resumespice reviews for all students. Their demand is fulfilled at the behest of the goals for the arrangement for the groups.
Reply
#4
The form of the RCD is held for the club and fans in all forms. The motives are marked for judgment. Nation of the moverspackers.ae is ensured for the engagement for the funds and marvelous use of the techniques for the citizens.
Reply
#5
Can you make a mod where there are swords for melee weapons and a cross bow for long range weapons? That will be interesting Concrete Contractors in Davenport IA
Reply
#6
A measured and controlled tip is put forward for the top of the offers. The surface of the www.huffpost.com/archive/ca/entry/to-pay-or-not-to-pay-someone-to-write-my-essay-for-me_b_14793970 is held for the turns. The change is filed for the partnership in the long range for the goals for the chips by all measures.
Reply
#7
Ladies specifically don't see the value in a web-based profile that shows a man in sweats. They might decipher this as a sign of how serious you are tied in with dating. All things considered, in the event that you didn't mind to the point of hinge profile getting tidied up for the photograph, will you really do any better for a date?
Reply
#8
Request references. An accomplished plate rider ought to have the option to give an adequate rundown of sources to give input and answer questions in regards to previous occasions. Try not to depend just on wedding references either Wedding DJs near Greenville view at other previous occasions too on the off chance that you need your exceptional day to not be only any old ordinary wedding after-party.
Reply
#9
Of all the workplace articles, pens and composing articles possess the main position. Consequently, to gift your significant clients or clients with limited time pens would be the most proper approach to ink pens in bulk further developing your image personality.
Reply
#10
Digital Marketing SEO Expert from India and the organizer behind
Digi Exe, a Computerized Showcasing Organization. He is a Blogger and creator of WordPress Module SchemaNinja. With 5 years of involvement with best digital marketing books field, he has areas of strength for an of Web Promoting terms like Site improvement , Writing for a blog, Virtual Entertainment Streamlining (SMO), Versatile, Web based business and WordPress.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)