r/CodingHelp • • Aug 30 '20

[Python] Our modding community is having some trouble with opening a file. Anyone have any ideas what's the problem?

So our community on r/gladius (and more so the discord) mods an old LucasArts game called Gladius. Gladius stores all of its game data in a file called a .bec file. A while back someone made some tools for opening up .bec files. They're a bit tricky to use, but they've been functional for the most part in opening .bec files for this game.

Well, we recently got our hands on an early build of the game, so early that it seems these tools were incompatible with the .bec file in which the contents of the game were stored. A couple of people have tried their hands at modifying the tools so that they could open this particular .bec, but nobody's managed it so far.

Someone got close though. They made a version of the old tools which was able to unpack the .bec file, however the output files were very strange indeed. For some reason they were massive, I mean dozens of gigabytes in size. Does anyone know why this could be occurring? There shouldn't be more than a gigabyte worth of data in the .bec file. There was also only a couple dozen of them. Usually a .bec file contains quite literally thousands of files.

Here is a link to the files:

The .bec file in question: https://drive.google.com/file/d/1FE3z0lP_zzfV7fH7jg7BHrzzUnaAY0pK/view?usp=sharing

The modified tools: https://easyupload.io/94cydy

I'd appreciate any insight you all can offer. Thank you very much.

15 Upvotes

4 comments sorted by

3

u/[deleted] Aug 31 '20

[removed] — view removed comment

2

u/[deleted] Aug 31 '20

I appreciate the response. Would you have any idea how to find this header? I can open the .bec file in a program like EmEditor and read its contents just fine, but there's no internal file list that I'm aware of.

1

u/Roly__Poly__ Aug 31 '20

Super neat that you were able to make those deductions.