[OT] Sam is quoted in the Unreal Tournament 2004 script!

Hi,

I just installed Unreal Tournament 2004 for Linux,
inside the directory the game installer created there is
a script whose first lines follows:

#!/bin/sh#

ut2004demo startup script

Function to find the real directory a program resides in.

Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software

FindPath()
{
fullpath="echo $1 | grep /
if [ “$fullpath” = “” ]; then
oIFS=”$IFS"
IFS=:
for path in $PATH
do if [ -x “$path/$1” ]; then
if [ “$path” = “” ]; then
path=".“
fi
fullpath=”$path/$1"
break

ecc ecc


Giuseppe Torelli

ut2003/2004 linux uses sdl afaik.
i wonder why they don’t use sdl for the windows version also (hmmm… d3d
support… but that could be added even with sdl i think … ah
forget it :slight_smile: )

torelli at szn.it wrote:>Hi,

I just installed Unreal Tournament 2004 for Linux,
inside the directory the game installer created there is
a script whose first lines follows:

#!/bin/sh

ut2004demo startup script

Function to find the real directory a program resides in.

Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software

FindPath()
{
fullpath="echo $1 | grep /
if [ “$fullpath” = “” ]; then
oIFS=”$IFS"
IFS=:
for path in $PATH
do if [ -x “$path/$1” ]; then
if [ “$path” = “” ]; then
path=".“
fi
fullpath=”$path/$1"
break

ecc ecc

The startup script was written by Sam for some Loki game or another, and
has just been canabalized for years now. :slight_smile: You’ll find that script in
just about everything I’ve released (with minor patches to support newer
versions of “ls” and silly things like that).

Unreal doesn’t use SDL on Windows because the WinDrv module (as opposed
to the SDLDrv module) has a few extra features, such as hooks for speech
recognition, etc, since that code is tied tightly to the Windows API.

Plus, UnrealEd needs multiple windows, which SDL doesn’t provide at this
time, and the game is primarily targetted at Direct3D on Windows, which
SDL obviously doesn’t provide.

–ryan.On Mon, 2004-02-16 at 10:33, Florian Hufsky wrote:

ut2003/2004 linux uses sdl afaik.
i wonder why they don’t use sdl for the windows version also (hmmm… d3d
support… but that could be added even with sdl i think … ah
forget it :slight_smile: )

Also there’s a nice “typo” in the script…
If you look at the end of the file you can find this:
echo “Couldn’t run Postal2 Demo (ut2004-bin). Is UT2004DEMO_DATA_PATH set?”

But this is ofcourse way off topic ;)On Wednesday 18 February 2004 23.06, Ryan C. Gordon wrote:

On Mon, 2004-02-16 at 10:33, Florian Hufsky wrote:

ut2003/2004 linux uses sdl afaik.
i wonder why they don’t use sdl for the windows version also (hmmm… d3d
support… but that could be added even with sdl i think … ah
forget it :slight_smile: )

The startup script was written by Sam for some Loki game or another, and
has just been canabalized for years now. :slight_smile: You’ll find that script in
just about everything I’ve released (with minor patches to support newer
versions of “ls” and silly things like that).

Unreal doesn’t use SDL on Windows because the WinDrv module (as opposed
to the SDLDrv module) has a few extra features, such as hooks for speech
recognition, etc, since that code is tied tightly to the Windows API.

Plus, UnrealEd needs multiple windows, which SDL doesn’t provide at this
time, and the game is primarily targetted at Direct3D on Windows, which
SDL obviously doesn’t provide.

–ryan.