America´s Army
Inviato: gio 2 dic 2004, 17:46
Ciao a tutti ho scaricato e istallato America´s Army Operations.
<BR>Inutile dire che è una figata....
<BR>Avevo 2 problemi:
<BR>1) Mi dava un errore di opengl non mi ricordo con esattezza, ora non me lo da più. Ho sostituito nella directory System del gioco libSDL.so.0 con quelle del mio sistema /usr/lib/libSDL.so.0
<BR>
<BR>2)Se lo lancio da consolle non mi parte.
<BR>Mentre invece se entro nella directory dove l´ho istallato (/opt/giochi/America´s\ Army/) e poi faccio ./armyops invece si, parte alla grande.
<BR>Vi posto lo script:
<BR>
<BR>
<BR>#!/bin/sh
<BR>#
<BR># America´s Army: Operations startup script
<BR>#
<BR>
<BR># Function to find the real directory a program resides in.
<BR># Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
<BR>FindPath()
<BR>{
<BR> fullpath="`echo $1 | grep /`"
<BR> if [ "$fullpath" = "" ]; then
<BR> oIFS="$IFS"
<BR> IFS=:
<BR> for path in $PATH
<BR> do if [ -x "$path/$1" ]; then
<BR> if [ "$path" = "" ]; then
<BR> path="."
<BR> fi
<BR> fullpath="$path/$1"
<BR> break
<BR> fi
<BR> done
<BR> IFS="$oIFS"
<BR> fi
<BR> if [ "$fullpath" = "" ]; then
<BR> fullpath="$1"
<BR> fi
<BR>
<BR> # Is the sed/ls magic portable?
<BR> if [ -L "$fullpath" ]; then
<BR> #fullpath="`ls -l "$fullpath" | awk ´{print $11}´`"
<BR> fullpath=`ls -l "$fullpath" |sed -e ´s/.* -> //´ |sed -e ´s/\*//´`
<BR> fi
<BR> dirname $fullpath
<BR>}
<BR>
<BR># Set the home if not already set.
<BR>if [ "${ARMYOPS_DATA_PATH}" = "" ]; then
<BR> ARMYOPS_DATA_PATH="`FindPath $0`/System"
<BR>fi
<BR>
<BR>LD_LIBRARY_PATH=.:${ARMYOPS_DATA_PATH}:${LD_LIBRARY_PATH}
<BR>export LD_LIBRARY_PATH
<BR>
<BR># Let´s boogie!
<BR>if [ -x "${ARMYOPS_DATA_PATH}/armyops-bin" ]
<BR>then
<BR> cd "${ARMYOPS_DATA_PATH}/"
<BR> exec "./armyops-bin" $*
<BR>fi
<BR>echo "Couldn´t run America´s Army: Operations (armyops-bin). Is ARMYOPS_DATA_PATH set?"
<BR>exit 1
<BR>
<BR># end of armyops ...
<BR>
<BR>
<BR>praticamente mi da l´errore "Couldn´t run eccecc qui sopra" perchè non va a buon fine il dirname nella funzione FindPath ...
<BR>Qualcuno ha il mio stesso problema? o sa come posso risolvere?
<BR>
<BR>Grazie<br>
<BR>Inutile dire che è una figata....
<BR>Avevo 2 problemi:
<BR>1) Mi dava un errore di opengl non mi ricordo con esattezza, ora non me lo da più. Ho sostituito nella directory System del gioco libSDL.so.0 con quelle del mio sistema /usr/lib/libSDL.so.0
<BR>
<BR>2)Se lo lancio da consolle non mi parte.
<BR>Mentre invece se entro nella directory dove l´ho istallato (/opt/giochi/America´s\ Army/) e poi faccio ./armyops invece si, parte alla grande.
<BR>Vi posto lo script:
<BR>
<BR>
<BR>#!/bin/sh
<BR>#
<BR># America´s Army: Operations startup script
<BR>#
<BR>
<BR># Function to find the real directory a program resides in.
<BR># Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
<BR>FindPath()
<BR>{
<BR> fullpath="`echo $1 | grep /`"
<BR> if [ "$fullpath" = "" ]; then
<BR> oIFS="$IFS"
<BR> IFS=:
<BR> for path in $PATH
<BR> do if [ -x "$path/$1" ]; then
<BR> if [ "$path" = "" ]; then
<BR> path="."
<BR> fi
<BR> fullpath="$path/$1"
<BR> break
<BR> fi
<BR> done
<BR> IFS="$oIFS"
<BR> fi
<BR> if [ "$fullpath" = "" ]; then
<BR> fullpath="$1"
<BR> fi
<BR>
<BR> # Is the sed/ls magic portable?
<BR> if [ -L "$fullpath" ]; then
<BR> #fullpath="`ls -l "$fullpath" | awk ´{print $11}´`"
<BR> fullpath=`ls -l "$fullpath" |sed -e ´s/.* -> //´ |sed -e ´s/\*//´`
<BR> fi
<BR> dirname $fullpath
<BR>}
<BR>
<BR># Set the home if not already set.
<BR>if [ "${ARMYOPS_DATA_PATH}" = "" ]; then
<BR> ARMYOPS_DATA_PATH="`FindPath $0`/System"
<BR>fi
<BR>
<BR>LD_LIBRARY_PATH=.:${ARMYOPS_DATA_PATH}:${LD_LIBRARY_PATH}
<BR>export LD_LIBRARY_PATH
<BR>
<BR># Let´s boogie!
<BR>if [ -x "${ARMYOPS_DATA_PATH}/armyops-bin" ]
<BR>then
<BR> cd "${ARMYOPS_DATA_PATH}/"
<BR> exec "./armyops-bin" $*
<BR>fi
<BR>echo "Couldn´t run America´s Army: Operations (armyops-bin). Is ARMYOPS_DATA_PATH set?"
<BR>exit 1
<BR>
<BR># end of armyops ...
<BR>
<BR>
<BR>praticamente mi da l´errore "Couldn´t run eccecc qui sopra" perchè non va a buon fine il dirname nella funzione FindPath ...
<BR>Qualcuno ha il mio stesso problema? o sa come posso risolvere?
<BR>
<BR>Grazie<br>