yann-papouin / bga

BGA (Battlefield Game Archive Tool)
6 stars 0 forks source link

Save (Defrag) generates broken files #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
please have a look at this file here:
http://public.valkyrie-clan.com/jero/test.rfa

It has been created with the defrag function of BGA. Opening and editing the 
file back in BGA works fine, but it seems something else in the file structure 
is broken, since the game/gameserver crashes immediately when it is used.

Also, opening this file in winRFA will show you that the .con filenames are ok 
(only one there), but their content cannot be previewed and also not extracted 
(=>error).

I needed to reduce the file size of my archive, which had grown up to 7.5 MB 
for a few con files only, when I stumbled over this defrag function. Except of 
the described little bug, it seems to do the job, since the file size was only 
a few KB after it, which seems realistic.

ty

Original issue reported on code.google.com by testerl...@yahoo.de on 22 Feb 2011 at 11:40

GoogleCodeExporter commented 9 years ago
Ok, here's a file with the exact same content but saved with winRFA instead:
http://public.valkyrie-clan.com/jero/test_repaired.rfa

A quick look over the two files in a hex editor shows a difference only in the 
last 16 bytes of these files. Hope this helps.

Original comment by testerl...@yahoo.de on 22 Feb 2011 at 12:01

GoogleCodeExporter commented 9 years ago
Please test rev184, you helped me to discover a new thing about the rfa archive 
format :) the Fifth byte is a tag to know if the archive contains compressed 
data.

Original comment by yann.papouin on 22 Feb 2011 at 7:57

GoogleCodeExporter commented 9 years ago
Did a short test with a fragmented file by drefraging and opening in winRFA 
afterwards => works like a charm!

Thx for the quick fix - you're awesome dude! :)

Original comment by testerl...@yahoo.de on 24 Feb 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by yann.papouin on 28 May 2011 at 11:19