Maybe adding something at the beginning of the script to set a default
$STEAM value would be the best solution. The value could be replaced
later when the arguments are parsed, in case one was specified by a
command-line option.
Something like this:
... <set variables> ...
if test -f ./steam ; then
STEAM="./steam"
elif test -f ../steam ; then
STEAM="../steam"
else
STEAM=""
fi
... <parse command-line arguments> ...
- Dave
Milton Ngan wrote:
> I'll change the default location to be ../steam in the L4D and TF/OB
> srcds_run, since this seems to be what everyone expects it to be. I'll see if
> I can make locating the steam binary a little smarter. The change I made to
> allow you to specify the steam binary location didn't make it into this
> release.
>
> ./steam definitely doesn't make sense. ../steam makes more sense, but it
> isn't perfect because if someone runs the install like this:
>
> ./steam <...> -dir valvegames
>
> Or something else, then steam isn't ../steam. It is ../../steam or something
> completely different.
>
> M.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of David Parker
> Sent: Friday, October 30, 2009 7:58 PM
> To: Half-Life dedicated Linux server mailing list
> Subject: Re: [hlds_linux] Left 4 Dead 2 Demo Update Available
>
> Hello,
>
> It looks like the autoupdate on startup is still broken. I am using
> -autoupdate and -steamverify but I still get the message "Could not locate
> steam binary" and then startup moves on without checking for updates.
>
> It looks like the culprit is this section of updatesingle() in srcds_run:
>
> if test -f "$STEAM"; then
> echo "Updating server using Steam."
> DEPOT_ROOT=".."
> DEPOT_NAME=$GAME
>
> When this is reached, the value of $STEAM is "./steam" and since the steam
> binary does not exist in the current directory (left4dead2_demo), the test
> fails. I think that changing the initial value of $STEAM to "../steam" would
> work, but I can't test it right now because I don't want to kick all the
> players off my server.
>
> - Dave
>
> ----- Original Message -----
> From: Jason Ruymen <[email protected]>
> Date: Friday, October 30, 2009 8:55 pm
> Subject: [hlds_linux] Left 4 Dead 2 Demo Update Available
> To: "'[email protected]'" <[email protected]>, 'Half-Life
> dedicated Linux server mailing list' <[email protected]>,
> "'[email protected]'"
> <[email protected]>
>
>> A required update is now available to the Left 4 Dead 2
>> Demo. Please run hldsupdatetool to receive it. The
>> specific changes include:
>>
>> Left 4 Dead 2:
>> - Fixed bug that caused dedicated servers to become unjoinable
>> over time without a restart or heartbeat update
>> - Fixed exploit that allowed players to end a campaign and
>> return to the lobby without a vote
>> - Public players are no longer matched to lobbies that are idle
>> for a prolonged period of time. These lobbies become "Friends-
>> only" lobbies
>> - LAN servers list will now show listen server single player
>> games as not joinable and will show game type as "single player" too
>>
>> Linux changes:
>> - srcds_run now supports two new options -nodefaultmap and -
>> steamverify -nodefaultmap will suppress this behavior in case
>> you have specified a map in a config file
>> -steamverify will add -verify_all to the steam command line
>> option when using -autoupdate
>> - srcds_run will now automatically add the +map option to the
>> command line unless +map is specified
>>
>> Jason
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list
>> archives, please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
--
Dave Parker
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux