You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament > UT Server - Linux Specific

Reply
Thread Tools Display Modes
  #21  
Unread 7th December, 2005, 07:21 AM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

It looks fine to me. Did you run it in a terminal? Usually prints out what its moving to the terminal
Also what do you get if you get if you type gawk into a terminal? A usage and options list?
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.

Last edited by ~V~ : 7th December, 2005 at 07:23 AM.
Reply With Quote
  #22  
Unread 7th December, 2005, 11:46 AM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

Okay, did it from command line that time and watched it work in two windows and in command line. muhahahaha. I had created a launcher to do it from the desktop, and didn't have it run from terminal, but I don't see why that would make any difference... Thanks!!!

Just redid the launcher, and made it run in the terminal, and it works. muahahaha thanks again!!!

Last edited by BLTicklemonster : 7th December, 2005 at 11:49 AM.
Reply With Quote
  #23  
Unread 7th December, 2005, 04:40 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

You don't need to run it in a term, but it's just so you can see if it works
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #24  
Unread 7th December, 2005, 04:59 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: May 2004
Posts: 1,004
Default

Quote:
Originally Posted by ~V~
You don't need to run it in a term, but it's just so you can see if it works
Well, I did it without being in terminal, and it just deleted everything. I did it with it being in the terminal, and it worked fine. I must be holding my teeth wrong or sumpn.
Reply With Quote
  #25  
Unread 7th December, 2005, 05:10 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

ok
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #26  
Unread 10th December, 2005, 04:36 PM
AnthraX's Avatar
AnthraX AnthraX is offline
Administrator
 
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
Default

well it's more than a few lines because I wrote a GUI for it... Anyway, this is the first beta. There's probably a lot of features I could add and there could be a lot of bugs in it so tell me what you think...

utgl.unrealadmin.org/KeshKleenor/
Reply With Quote
  #27  
Unread 10th December, 2005, 07:02 PM
Rush's Avatar
Rush Rush is offline
Holy Shit!!
 
Join Date: Apr 2003
Location: Texas
Posts: 1,157
Default

Nice!!! And now the issues ....

I had a small cache but after trying converting all files it left some of them ...


And I don't know if it is a bug or not but it left quite a mess in the Cache.ini file..
Code:
[Cache]
4FC9EC3C40ED340D314F7DAA13842199=BT-(B)BlitzAce][.unr
84A5878A44102D596C278CBF3204B973=
85F8BB1D4521186457C72DAB98DC92A8=
63D87CEE11D2F0D8A0000A8AB2FBA0C9=Watcher.umx
F50F337545D6B5FC4D797FB3D8B28E67=
BDF334454BC3FBF32B3B4EAD52CB1175=
7254A827428A39B9A5360AADCEB24F96=
3DE7F1694A77513C194FC3B2F84F7B7D=
1869B000440C14695C13EBB8C0ED1123=BT-(GH)EgyptianTheBeginning_dbl2.unr
A8A5D1F44734CFCDCAF441A36216C62D=
D45D1A124CE6C77160AF468584418BB0=
FB87B9594A3F2D13801F269B1716BE0D=
2032294A4A7B2C11C0F348843D4780F9=
DC8C33E8413A1A3B5568E49BE13D664C=
BB336CBB4D89F333036792AF4F5899C6=
47DEDBB749047913C38E1A84C62A3CB8=
9DD2A904438C8CA729588EBFBA3F8501=
0A70CDFE450B0F69F359D39F9898C99E=
65C91A1E4474D7CF6935F39B99695E44=
912EC5F043390B9230ACDE9C0F471E00=
677A2E0A4F67D7A5DECDBBA74DFE7D0B=
39624D2F11D3E3AC00001F83AEA64621=CTF-andAction.unr
3A53DA9744D98F9D7353C1B201CA51AB=
01167D4B487F322047C0C4947E6584B1=
9D70B22D4B804888065BDFBC229B1D9E=
4416FCF14683B7DEAF9C3FA4BF3EE605=
1AD2C0E640FE635C23C236AB3A320AAE=
B74E29244A17E4FD7A75858E79D6E380=
C3235D4F47E65D9905D92794E98EC329=BT-Insecure-v2.unr
__________________
[email address]
Reply With Quote
  #28  
Unread 10th December, 2005, 01:09 PM
AnthraX's Avatar
AnthraX AnthraX is offline
Administrator
 
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
Default

yea, it does kinda fuck up the cache.ini . Epic should've fixed it a long time ago because it's one of their functions that does it. It's no disaster tho, this won't break anything.

If it leaves files unmoved then some external thing removed the files without removing the entries. You probably cleared your cache folder once
Reply With Quote
  #29  
Unread 10th December, 2005, 02:10 PM
Rush's Avatar
Rush Rush is offline
Holy Shit!!
 
Join Date: Apr 2003
Location: Texas
Posts: 1,157
Default

Quote:
Originally Posted by AnthraX
You probably cleared your cache folder once
Erm, no.
Code:
rush@unimatrix ~/.loki/ut/Cache $ ls -al
total 17216
drwx------  2 rush users     360 Dec 10 19:51 .
drwxr-xr-x  7 rush users     232 Nov 20 01:07 ..
-rw-r--r--  1 rush users 8090090 Nov  7 21:55 1869B000440C14695C13EBB8C0ED1123.uxx
-rw-r--r--  1 rush users   55013 Nov 18 22:53 39624D2F11D3E3AC00001F83AEA64621.uxx
-rw-r--r--  1 rush users 4021526 Nov  2 00:15 4FC9EC3C40ED340D314F7DAA13842199.uxx
-rw-r--r--  1 rush users  460852 Nov  2 00:18 63D87CEE11D2F0D8A0000A8AB2FBA0C9.uxx
-rw-r--r--  1 rush users 4971340 Nov 20 01:07 C3235D4F47E65D9905D92794E98EC329.uxx
-rw-r--r--  1 rush users    1128 Dec 10 19:51 cache.ini
But I've found what's the problem, I just didn't have Music and Maps folders in my home/.loki/ut ... when I created them manually, the cache files converted smoothly.
__________________
[email address]
Reply With Quote
  #30  
Unread 10th December, 2005, 02:11 PM
(A.S.S)Agoura_Steve's Avatar
(A.S.S)Agoura_Steve (A.S.S)Agoura_Steve is offline
Forum Newcomer
 
Join Date: Oct 2005
Location: Agoura Hills, CA (Los Angeles County) USA
Posts: 3
Default I need a Linux Cache Cleaner for 2K4

I am looking for a Linux Cache Cleaner for 2004.
In fact, I have been looking for one for 6 months.

Can you write a tiny script for 2004 for this?

There is not one out there. You will be the favorite person of the Linux
UT2004 Community.


www.assclansniper.com

Reply With Quote
  #31  
Unread 10th December, 2005, 02:14 PM
AnthraX's Avatar
AnthraX AnthraX is offline
Administrator
 
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
Default

Porting it to UT2004 is possible but I've never ever coded anything with a GUI in UT2004.
Reply With Quote
  #32  
Unread 10th December, 2005, 05:34 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

Quote:
Originally Posted by (A.S.S)Agoura_Steve
I am looking for a Linux Cache Cleaner for 2004.
In fact, I have been looking for one for 6 months.

Can you write a tiny script for 2004 for this?

There is not one out there. You will be the favorite person of the Linux
UT2004 Community.
You could adapt the script I made to work wit 2k4 quite easy. You would need to change just a few details I think.
I don't have 2k4 installed in linux so I can't really do it myself
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #33  
Unread 12th December, 2005, 02:48 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: Apr 2004
Posts: 1,004
Default

I'll install 2k4 on my machine tonight and make sure it works and post here.
Reply With Quote
  #34  
Unread 12th December, 2005, 09:36 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: Apr 2004
Posts: 1,004
Default

Okay, so unrealadmin was down, so I posted in ubuntu's forum the following:

Quote:
Originally Posted by BLTicklemonster
Okay, I'm a total noob, so be easy on me.

I play UT, and couldn't find a cache cleaner for UT so that files downloaded from a server in the /Cache folder as *.uxx could be referenced against a cache.ini file with the correct names and extensions listed so that they could be correctly named and moved to their respective folders, so I asked at UnrealAdmin.org for help, and ~V~ gave me this nice tidbit:

Code:
#!/bin/bash
cd ~/.loki/ut/Cache || exit 1 # change this to your UT user dir
if [ -f cache.ini ] ; then
{
export utdir="/home/bill/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
#if [ -f $utdir"System/den_p1p0-Hack.u" ]; then rm $utdir"System/den_p1p0-Hack.u" ;fi
# end script
which when chmod +x filename from the terminal works great.

So I thought I'd try it with 2k4. Slightly different setup, but I edited the file to this:

Code:
#!/bin/bash
cd ~/.ut2004/Cache || exit 1 # change this to your ut2004 user dir
if [ -f cache.ini ] ; then
{
export ut2004dir="/home/bill/ut2004/" # change this to your main ut2004 folder
gawk -F= ' 
ut2004dir = "${ut2004dir}"
function moveit(targ)
{
print "mv -v "$1".uxx" " " ut2004dir targ substr($2, 1, length($2)-1) | "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;
#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
#if [ -f $utdir"System/den_p1p0-Hack.u" ]; then rm $utdir"System/den_p1p0-Hack.u" ;fi
# end script
I have put everything the way it is, there's no .loki folder, it's .ut2004, and I'm sure it's okay pathwise, because when I run it, sure enough, it takes everything and puts it in it's respective folders, except that it does this:

Code:
bill@ubuntu:~$ ./2k4cleaner
[Cache]
75E688FF467F6B5B98DDBA9AF0BDAE77-1=ONSNewTank-A.ukx
737B4F0A4A301A836D3EED875526052A-7=OnslaughtBP.u
AD99272845FD0FF995A8E7ACDB5550E6-1=ONSBPTextures.utx
5DA978E541043C5A7AEE378D8FAD8DC8-1=AW-2k4XP.utx
5C383E264A56472FCA40569AA3C83194-1=ONSBP_DestroyedVehicles.utx
93B8BE7744133BBBDD06FD99F5947439-1=ONSBPSounds.uax
A08F92FB4D7CD27EB15634BB0FDBB026-1=CicadaTex.utx
1161EFC840336F04BE6022B7B5D26B4B-1=ONS-BPJW1.usx
438364044447D49F85EBF19C09F9EE8F-1=BonusParticles.utx
60ACA38C4F1918C535075C9060742C6C-1=ONSBPAnimations.ukx
79B289B84758C0F5E4A65EB3DCDDDA5B-1=CicadaSnds.uax
0EF69B434315EA66ECB7739013E67A50-1=DistantBooms.uax

`75E688FF467F6B5B98DDBA9AF0BDAE77-1.uxx' -> `/home/bill/ut2004//System/ONSNewTank-A.uk'
`737B4F0A4A301A836D3EED875526052A-7.uxx' -> `/home/bill/ut2004//System/OnslaughtBP.'
`AD99272845FD0FF995A8E7ACDB5550E6-1.uxx' -> `/home/bill/ut2004//Textures/ONSBPTextures.ut'
`5DA978E541043C5A7AEE378D8FAD8DC8-1.uxx' -> `/home/bill/ut2004//Textures/AW-2k4XP.ut'
`5C383E264A56472FCA40569AA3C83194-1.uxx' -> `/home/bill/ut2004//Textures/ONSBP_DestroyedVehicles.ut'
`93B8BE7744133BBBDD06FD99F5947439-1.uxx' -> `/home/bill/ut2004//Sounds/ONSBPSounds.ua'
`A08F92FB4D7CD27EB15634BB0FDBB026-1.uxx' -> `/home/bill/ut2004//Textures/CicadaTex.ut'
`1161EFC840336F04BE6022B7B5D26B4B-1.uxx' -> `/home/bill/ut2004//System/ONS-BPJW1.us'
`438364044447D49F85EBF19C09F9EE8F-1.uxx' -> `/home/bill/ut2004//Textures/BonusParticles.ut'
`60ACA38C4F1918C535075C9060742C6C-1.uxx' -> `/home/bill/ut2004//System/ONSBPAnimations.uk'
`79B289B84758C0F5E4A65EB3DCDDDA5B-1.uxx' -> `/home/bill/ut2004//Sounds/CicadaSnds.ua'
`0EF69B434315EA66ECB7739013E67A50-1.uxx' -> `/home/bill/ut2004//Sounds/DistantBooms.ua'
bill@ubuntu:~$
Reference the top portion with what it says it put in the directories. It leaves stuff off. UTX files are now UT files, UAX files are now UA, etc. Can anyone see anything wrong with the code that would make it lose the final letter off the extension? It works okay in ut, and the extensions in it are 3 letter extensions. I don't get it.

Ideas?


So ah.... wtf, eh?
Reply With Quote
  #35  
Unread 13th December, 2005, 01:11 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

Strange. Try changing:
print "mv -v "$1".uxx" " " ut2004dir targ substr($2, 1, length($2)-1) | "sh";
to
print "mv -v "$1".uxx" " " ut2004dir targ substr($2, 1, length($2)) | "sh";

maybe because all the cache files end in -1 or -7 etc
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #36  
Unread 13th December, 2005, 02:37 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: Apr 2004
Posts: 1,004
Default

Thanks, I'll give it a try tonight.
Reply With Quote
  #37  
Unread 13th December, 2005, 03:17 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

ah I know what the problem is: with UT because its a ported windows game, the file names all end with a newline
symbol that UT2k4 doesnt have because of it's having a native linux installer.
For the UT99 version I had to get rid of that last character, but this isn't needed with 2k4.
So, (hopefully) the fix should work, but also changing the line to:

print "mv -v "$1".uxx" " " ut2004dir targ $2 | "sh";

will do as well
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.

Last edited by ~V~ : 13th December, 2005 at 03:24 PM.
Reply With Quote
  #38  
Unread 13th December, 2005, 03:57 PM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: Apr 2004
Posts: 1,004
Default

Code:
#!/bin/bash
cd ~/.ut2004/Cache || exit 1 # change this to your ut2004 user dir
if [ -f cache.ini ] ; then
{
export ut2004dir="/home/bill/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;
#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
#if [ -f $utdir"System/den_p1p0-Hack.u" ]; then rm $utdir"System/den_p1p0-Hack.u" ;fi
# end script

Bingo, thanks.
Reply With Quote
  #39  
Unread 28th December, 2005, 11:55 AM
BLTicklemonster BLTicklemonster is offline
Holy Shit!!
 
Join Date: Apr 2004
Posts: 1,004
Default

Quote:
Originally Posted by cowbar
fraps -> dumpframes + avidemux
cache cleaner -> rm -f *, or you can write some script for it

Would you please explain this dumpframes? Is it a console command? Is it a program for linux? How would one do it?


NM, that's for 2k4, not UTGOTY

Last edited by BLTicklemonster : 28th December, 2005 at 11:59 AM.
Reply With Quote
  #40  
Unread 28th December, 2005, 05:42 PM
Rush's Avatar
Rush Rush is offline
Holy Shit!!
 
Join Date: Apr 2003
Location: Texas
Posts: 1,157
Default

Try this -> http://forums.gentoo.org/viewtopic-t-350087.html , BLTicklemonster
__________________
[email address]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:39 PM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.