{BL}Ticklemonster |
|
 |
| Joined: Dec 20, 2005 |
| Posts: 22 |
| Location: Rome, Ga. |
| Status: Offline |
|
 Posted:
Jan 02, 2006 - 02:14 AM |
|
| Post subject: UT/UTGOTY and Linux |
|
|
Okay, actually, Ubuntu Linux, but I'm sure if you know linux, you can work around this:
Assuming you used one of these http://www.liflg.org/?catid=6&gameid=51 or this http://www.princessleia.com/tools//ut/ut-install-436-GOTY.run to install ut in ubuntu....
Here's how to make a cache cleaner for UT. It takes the files that you download from servers from a temporary folder ( /.loki/ut/Cache *note, to see /.loki/ one must press ctrl+h to view hidden files and folders*) and puts them in the proper places where they belong according to extension, i.e. .utx, .uax, etc.
Go to synaptic package manager, download gawk (just a thingy that is used by cache cleaner. I would tell you exactly what gawk is and what it does, but it's so freaking technical it would make your head explode gelatinous material about the place, rendering your keyboard useless for replying "OMGOMGOMG1337" to this thread when you're done).
Open text editor, and copy and paste the following in to it:
| Code:
|
#!/bin/bash
cd ~/.loki/ut/Cache || exit 1 # change this to your UT user dir
if [ -f cache.ini ] ; then
{
export utdir="/home/yourname/ut/" # change this to your main UT folder
gawk -F= '
utdir = "${utdir}"
function moveit(targ)
{
print "mv -v "$1".uxx" " " utdir targ substr($2, 1, length($2)-1) | "sh";
}
{
if(match($2,".unr")) moveit("Maps/");
else if(match($2,".utx")) moveit("Textures/");
else if(match($2,".uax")) moveit("Sounds/");
else if(match($2,".umx")) moveit("Music/");
else if(match($2,".u")) moveit("System/");
}
END { close("sh") }' cache.ini
rm *.uxx cache.ini
}
fi;
if [ -f $utdir"System/De.u" ]; then rm $utdir"System/De.u" ;fi
if [ -f $utdir"System/de.u" ]; then rm $utdir"System/de.u" ;fi
# end script
|
Notice this: /home/yourname/ut/ . Change according to your personal set up. Also, the De.u and de.u things can be #ed out if you don't worry about de version mismatches.
Save in /home/you/ as utcleaner. Notice all the pretty colors that the text changed to? This means something important, but I am a total noob, so it's above my pay grade, therefore there's no telling what it means.
Open terminal, and type this:
The file utcleaner is now executable.
To run it, from terminal, type
Now to make things cooler, how about a desktop launcher?
Right click on the desktop, click create launcher, name it UTCleaner, go down to where it says command: and put ./utcleaner and check where it says run in terminal (I tried it without running in terminal, and for some reason all it does is delete uxx files, so click on run in terminal for sure). If you want an icon, go ahead and use one. You can create custom icons, too, if you want to.. Click OK.
Now you can double click and clean all your .uxx files.
Nifty, huh?
UT2k4:
| Code:
|
#!/bin/bash
cd ~/.ut2004/Cache || exit 1 # change this to your ut2004 user dir
if [ -f cache.ini ] ; then
{
export ut2004dir="/home/yourname/ut2004/" # change this to your main ut2004 folder
gawk -F= '
ut2004dir = "${ut2004dir}"
function moveit(targ)
{
print "mv -v "$1".uxx" " " ut2004dir targ $2 | "sh";
}
{
if(match($2,".ut2")) moveit("/Maps/");
else if(match($2,".utx")) moveit("Textures/");
else if(match($2,".uax")) moveit("Sounds/");
else if(match($2,".ogg")) moveit("Music/");
else if(match($2,".u")) moveit("System/");
else if(match($2,".usx")) moveit("StaticMeshes/");
else if(match($2,".ukx")) moveit("Animations/");
}
END { close("sh") }' cache.ini
#rm *.uxx cache.ini
}
fi;
# end script
|
Name it different, of course, if you have both games on your machine.
And here's the ultimate in being a total nerd:
ubuntu, vmware, XP, UT online.
THANKS TO ~V~ AT UNREALADMINS.ORG (Who's motto is "There's no place like 127.0.0.1" ) FOR THIS.
I'll post more later. Like oglrenderer upgrades and all. |
|
|