? Cache Maker [File to ID] (offline tool)

Discussions about UT99
Post Reply
ued4sct
Novice
Posts: 6
Joined: Thu Mar 08, 2012 5:15 am

? Cache Maker [File to ID] (offline tool)

Post by ued4sct »

ID = B868673D4ED0ED62DAA88B9B8E7AC9BF //Unique ID of File
File = NoInvisibility.u

for cache extract (indeed rename and move to proper folder) exist tools like:

UT3CacheExtractor3.0.2
UT Cache Organizer v1.3
UT.Cacher.v1.5.english
UTCacheCleaner3
UTCacheConvert1
UTCachedFileManager
UTCacheExtractor210
UTCM165

but how put (indeed rename) to cache? how get cypher of file?

inside cache.ini file

Code: Select all

[Cache]
B868673D4ED0ED62DAA88B9B8E7AC9BF=NoInvisibility.u
first i think is somethin hash-like and try, how u see no...
i need offline tool for make that cyper for file (better batch)

very usefull keep same filename but different size file in cache dont need rename everytime (usefull for watch old demos)

files with same name but differernt size
NoInvisibility.u 1,17 KB (1 203 bytes)
NoInvisibility.u 1,21 KB (1 240 bytes)
NoInvisibility.u 1,27 KB (1 304 bytes)

NoUDamage.u 1,04 KB (1 066 bytes)
NoUDamage.u 1,14 KB (1 168 bytes)
NoUDamage.u 1,24 KB (1 273 bytes)

De.u 70,4 KB (72 169 bytes)
De.u 70,7 KB (72 405 bytes)

i want keep above files in cache.

how put file to cache (get cypher\id)? - wrong subject nam
Attachments
HashCalc.exe HashCalc 0x94CE0044 0x00050310 120312 184854.png
Last edited by ued4sct on Tue May 08, 2012 7:21 pm, edited 7 times in total.
User avatar
Dr.Flay
Godlike
Posts: 3347
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: how put file to cache (get cypher\id)?

Post by Dr.Flay »

So you want to reverse the process, or do whatever the downloader part of UT is doing, to create you own cache files.
User avatar
papercoffee
Godlike
Posts: 10443
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: how put file to cache (get cypher\id)?

Post by papercoffee »

I don't get it ...is this supposed to be some scripting?
And what exactly do I read here?
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: how put file to cache (get cypher\id)?

Post by iloveut99 »

Have you tried look at the uscipt library? Probably it's there the code to generate the cache and its hash.
User avatar
Dr.Flay
Godlike
Posts: 3347
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: how put file to cache (get cypher\id)?

Post by Dr.Flay »

A good question is, does it "Hash" or does it just make random names ? I never made any comparisons with a file DL'ed multiple times.
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: how put file to cache (get cypher\id)?

Post by JackGriffin »

What the OP needs to do is uncache as he is normally doing but don't delete his cache after doing this. That way if he encounters a mismatch he can then delete the uncached file and the one still resident in the cache that was unmatching will kick in and work.

Example: I have three versions of IloveRapMusic.umx in my cache. When I uncache them the newest version is all that will uncache, overwriting the other two. If I save the three cache files and my later map has a version mismatch with ILoveRapMusic.umx I can then just delete it from my music directory and let it find the older version still in the cache.

Got it?
So long, and thanks for all the fish
ued4sct
Novice
Posts: 6
Joined: Thu Mar 08, 2012 5:15 am

Re: how put file to cache (get cypher\id)?

Post by ued4sct »

Dr.Flay wrote:So you want to reverse the process...
reverse
Dr.Flay wrote:A good question is, does it "Hash" or does it just make random names ? I never made any comparisons with a file DL'ed multiple times.
not random! code is unique for each file.
JackGriffin wrote:What the OP needs to do is uncache as he is normally doing but don't delete his cache after doing this. That way if he encounters a mismatch he can then delete the uncached file and the one still resident in the cache that was unmatching will kick in and work.
bingo!
User avatar
Feralidragon
Godlike
Posts: 5489
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: how put file to cache (get cypher\id)?

Post by Feralidragon »

ued4sct wrote:
Dr.Flay wrote:A good question is, does it "Hash" or does it just make random names ? I never made any comparisons with a file DL'ed multiple times.
not random! code is unique for each file.
Personally I never looked into how the cache files are named and all, but I just want to clear out that you can have "random" and "unique" at the same time, it's easy and it's actual practice in many systems relative caching (PHP for instance gives a totally random temporary name for uploaded files, yet it guarantees it's unique, although the probability of conflicts is very very low anyway, as the more characters you have, the lesser the probability of conflicts, just like in hash algorithms).
User avatar
anth
Adept
Posts: 257
Joined: Thu May 13, 2010 2:23 am

Re: how put file to cache (get cypher\id)?

Post by anth »

I reversed that cipher generation system at one point. It should be in my notes somewhere but I have no idea where those ended up... All I can say for sure is that the cipher is not a hash. It is not based on file content. It was at least partially based on file size and the generation count might have had something to do with it as well.
ued4sct
Novice
Posts: 6
Joined: Thu Mar 08, 2012 5:15 am

Re: how put file to cache (get cypher\id)?

Post by ued4sct »

so.. 12 year of UT and not exist offline tool for making ID for file? still need
Post Reply