Blockland Forums > General Discussion
Can you unpack the cache.db?
Destiny/Zack0Wack0:
Can't get this program to work damnit, python is loving up :(
Destiny/Zack0Wack0:
Bump.
Sorry, it's appears that you can only unpack files that are in your add-ons folder. The rest do not have names stored for them therefore there is no way to detect what the file's format is (PNG, BLB, DTS, etc). You could detect the type by reading the data for the file and going from there but you still wouldn't have any idea what the name of the file is. Therefore you would have to go through 1000s (depending on your cache.db size) of files named like "551a68a20aca41bc0dd97768d389b ad249029983" so in the end you still wouldn't have a clue which one is the file you're looking for.
Ephialtes:
--- Quote from: Destiny/Zack0Wack0 on December 22, 2010, 12:05:05 AM ---Bump.
Sorry, it's appears that you can only unpack files that are in your add-ons folder. The rest do not have names stored for them therefore there is no way to detect what the file's format is (PNG, BLB, DTS, etc). You could detect the type by reading the data for the file and going from there but you still wouldn't have any idea what the name of the file is. Therefore you would have to go through 1000s (depending on your cache.db size) of files named like "551a68a20aca41bc0dd97768d389b ad249029983" so in the end you still wouldn't have a clue which one is the file you're looking for.
--- End quote ---
You have to do a table join on blobs.hash = names.hash
Destiny/Zack0Wack0:
--- Quote from: Ephialtes on December 22, 2010, 02:08:28 AM ---You have to do a table join on blobs.hash = names.hash
--- End quote ---
Yeah I know, I had a script working for it that unpacked it but then it only unpacked my add-ons and I realised that the blob entries from other servers didn't have a name entry.
Kiwi:
Should I contact Badspot himself and turn his attention toward this topic?