linuxpeter.de
  Batch, Scripts, Tools & Tips > Linux scripts and tools  
 
Linux scripts and tools
<< Aktueller Firefox für Ubuntu Index WinBaaN Client an SLES Server >>
UT2003 install snippets Gesammelte Hinweise zur Installation von UT2003 unter linux (bei mir Ubuntu 9.02 Jaunty)

Gute Tips habe ich hier gefunden:

Spielen-unter-Linux.de

 

Und hier meine gesammelten Dinge, über die ich gestolpert bin


CRC error:

Copy the linux installer script to a warm and dry place and find these lines (should be on top :-) ):

#!/bin/sh
# This script was generated using Makeself 2.0.1
CRCsum=2686653111
MD5=041697cc81b0e550b04f22441b607011
TMPROOT=${TMPDIR:=/tmp}
 

Take the checksum in the error-message

Error in checksums: 2228477674 is different from 3043856338

and type it in the CRCsum variable field.

 

Error: Verifying archive integrity...tail: cannot open `+266' for reading: No

Then find every tail and add a "-n" to it as the tail command slightly changed:

Example: "sum1=`tail +266 $1 ...blabla"  changed to "sum1=`tail -n +266 $1 ..blabla"

Do it for every tail command (three or four places in the script).


 

*************************************************
*************************************************
*************************************************
*************************************************
  YOUR CD KEY IS NOT CHECKED FOR VALIDITY HERE!
        MAKE SURE YOU TYPE IT IN CORRECTLY!
IF YOU CTRL-C OUT OF THIS, THE GAME WILL NOT RUN!
*************************************************
*************************************************
*************************************************
*************************************************



Please enter your CD key: XXXXX-XXXXX-XXXXX-XXXXX
Please reenter your CD key: XXXXX-XXXXX-XXXXX-XXXXX

 

Das brachte mir den Fehler:
Your CDkey entries don't match. Try again!

Lösung:

Also da kann man probieren bis man schwarz wird. Also entgegen der Anweisung mit CRTL-C abbrechen.
Terminal auf und in das /usr/local/games/ut2003/System Verzeichnis wechseln.
Dort dann mit folgendem Befehl den CD-Key eintragen:

echo "XXXXX-XXXXX-XXXXX-XXXXX" | sudo tee cdkey 

Wobei das xxxx natürlich durch den echten Key ersetzt werden muss.


Die CD-ROM Wechselei:

Da man die Installation ja eh vom Terminal aus durchführt, sollte man gleich UT2003 mitteilen, wo sich die SETUP_CDROM befindet, damit der Installer auch nach einem CD-Wechsel klarkommt.
Einfach auf der Kommandozeile folgendes eingeben:

export SETUP_CDROM=/media/cdrom

Jetzt stört sich der Installer auch nicht mehr am CD-Wechsel.


 

Kein Sound beim Original-Spiel (ohne Patch):

 


Q: I don't get any sound, and/or audio output is very messed up.
  A: We use OpenAL for sound output. The included OpenAL is compiled
     with support for direct writes to /dev/dsp using the Open Sound
     System API provided by the kernel, and support for playback through
     SDL. Some systems may have buggy drivers or perhaps have the audio
     device captured by the esound or arts daemons. SDL is very good at
     handling the whole range of audio solutions and workarounds, and
     since we ship with SDL anyhow, it makes sense to use it as a
     fallback.

        The short answer is this:

            echo "(define devices '(sdl))" > ~/.openalrc

        That will coerce OpenAL to use SDL for audio output, which will
        solve 99% of the problems you might be having. SDL can be
        directed to use various audio targets with an environment
        variable, if it doesn't magically pick the right one.

     Alternately, you might need to put a custom SDL or OpenAL with
     support for your setup into UT2003, replacing the versions we
     supplied. Doing so is beyond the scope of this document, but please
     be sure to pull the latest versions of these libraries from CVS, as
     both have UT2003-specific fixes applied to them.

     If everything is utterly broken, and you can do without sound, run
     the game with -nosound on the command line (and submit a bug
     report!). If you don't want to type that every time, look for
     "UseSound" in your UT2003.ini file.


 Kein Sound mit Pulseaudio nach Einspielen des letzten Patches (2225-3beta):

Hier muss man so vorgehen, wie bei einer UT2004 Installation:
Die OpenAL Softlib in den Systemordner zaubern.
Ist halb so wild (zumindest unter Ubuntu).

So hab ich es gemacht:

Erst habe ich geprüft, ob das Paket "libopenal1" installiert ist. Danach dann einfach die "libopenal.so.1" in den System-Ordner von UT2003 kopiert und nach "openal.so" umbenannt.

cp /usr/lib/libopenal.so.1 /usr/local/games/ut2003/System/openal.so


UT2003 rennt zu schnell !!!

Es scheint ein Problem mit moderneren CPUs zu sein. Bei meinem Opteron 180 lief das Spiel zeitweise in normaler Geschwindigkeit. Doch wenn ich es einmal geschlossen und danach wieder gestartet habe, lief das Ganze vieeel zu schnell. Ist zwar mal ganz witzig, aber Spielspaß kommt da keiner auf
Also habe ich einen Hinweis gefunden, dass man den CPU-Speed fixen soll.

Mit cpufreq-info (muss ggfs. nachinstalliert werden) habe ich mir erst einmal angeschaut, welchen Spielraum meine CPU hat:

mögliche Taktfrequenzen: 2.40 GHz, 2.20 GHz, 2.00 GHz, 1.80 GHz, 1000 MHz
  mögliche Regler: conservative, ondemand, userspace, powersave, performance
  momentane Taktik: die Frequenz soll innerhalb 1000 MHz und 2.40 GHz.
                    liegen. Der Regler "ondemand" kann frei entscheiden,
                    welche Taktfrequenz innerhalb dieser Grenze verwendet wird.
  momentane Taktfrequenz ist 1000 MHz  (verifiziert durch Nachfrage bei der Hardware).

Aha! Ich schätze mal, dass das Spiel nicht damit klar kommt, dass eine CPU mal eben von 1000 MHz auf 2.40 GHz umschaltet. Unterste Kante ist also 1000 MHz. Der nächste Step wäre dann 1.80 GHz.
Darum habe ich mir ein startscript gebaut:

-------------------------------Script start-UT2003.sh Anfang --------------------------------------------

#!/bin/sh
# This script was generated to slow down UT2003

sudo cpufreq-set --min 1.8GHz --max 1.8GHz -c 0
sudo cpufreq-set --min 1.8GHz --max 1.8GHz -c 1

ut2003
-------------------------------Script Ende ------------------------------------------------

Damit lege ich die Geschwindigkeit für beide CPU-Kerne (CPU 0 und CPU1) auf 1.80GHz fest.
Und jetzt läuft das Spiel stabil in normaler Geschwindigkeit.
Nach dem Spiel lasse ich folgendes Script laufen:

 

-------------------------------Script Cleanup-UT2003.sh Anfang --------------------------------------------

#!/bin/sh
# This script was generated to speed system up after UT2003

sudo cpufreq-set --min 1000MHz --max 2.40GHz -c 0
sudo cpufreq-set --min 1000MHz --max 2.40GHz -c 1
sudo cpufreq-set -g ondemand
 

-------------------------------Script Ende ------------------------------------------------

Damit kann die CPU jetzt wieder bedarfsgerecht zwischen 1000MHz und 2.40GHZ hin- und herschalten.



 

 



Last updated by Bikerpete (admin)  on Aug 21 2009  at 12:46 AM
<< Aktueller Firefox für Ubuntu Index WinBaaN Client an SLES Server >>


Info

Buy me a coffee ...


 
Top! Top!