从Perforce生成的存储库文件中提取数据

huangapple go评论50阅读模式
英文:

Extracting data from depot files generated by Perfroce

问题

很多年前,我曾经有一个托管虚幻引擎4项目的Perforce服务器,但它现在不再活跃,很不幸我也无法访问它。我所剩下的只是一些仓库文件夹。有一个特定的文件夹里面有很多FBX文件,我需要访问它们,但这些文件显示为一个名为file.uasset,d和file.fbx,d的文件夹,其中包含zip文件。

是否有任何方法可以将这些文件夹转换成实际的FBX文件?是否有任何工具或其他方式可以做到这一点?或者我需要一个服务器将它们上传到Perforce的仓库,以让Perforce了解如何处理它们?任何帮助将不胜感激!

我尝试在Perforce中打开它们,但没有工作区或服务器,我对它们能做的事情有限。

英文:

Many years ago I had a Perforce server hosting an Unreal Engine 4 project, but it's no longer active and I unfortunately don't have access to it. All I have left are some depot folders. There's a specific folder with a bunch of FBX files that I need access to, but the file shows as a folder named something like this: file.uasset,d and file.fbx,d and within them are zip files.

Is there anyway for me to convert these folders into actual FBX files? Any tools or anything out there? Or do I need a server to upload these onto a depot for perfroce to understand what to do with them? Any help would be greatly appreciated!

I've tried opening them in Perforce without a workspace or server and there wasn't much I could do with them.

答案1

得分: 0

如果您拥有服务器根文件夹(其中包含db.*文件),您可以尝试启动P4D并正常访问存储库。如果您有检查点文件,您可以使用它来重建db.*文件。

如果您只有存储库归档文件,您可以解压缩其中的文件(使用普通的gzip或类似工具)以检索原始内容。例如,如果您有file.fbx,d/1.1234.gz,您可以解压缩它,然后您将获得变更1234时file.fbx的内容。每个gzip文件都是一个完整的修订版本;您无需将它们粘合在一起或进行任何其他操作。

请注意,没有数据库(db.*文件)的情况下,您可能无法还原存储库的确切原始结构;后端归档文件与存储库布局并不完全对应,因为归档文件可能会“懒复制”到存储库中的多个位置。

英文:

If you have the server root folder (the one with the db.* files), you may be able to start up P4D and just access the depot normally. If you have a checkpoint file, you can use that to reconstruct the db.* files.

If all you have are the depot archives, you can unzip the files inside them (using regular old gzip or similar) to retrieve the original content. E.g. if you have file.fbx,d/1.1234.gz, you can unzip that and you'll have the content of file.fbx as of change 1234. Each gzip file is a complete revision on its own; you don't need to glue them together or anything like that.

Note that without the database (the db.* files), you may not be able to put together the exact original structure of the depot; the back-end archive files don't exactly correspond to the depot layout since archive files may be "lazy copied" to multiple locations in the depot.

huangapple
  • 本文由 发表于 2023年2月8日 10:44:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/75380929.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定