Csabo
Moderator
Posts: 541
Registered: 02-02 |
I'm sorry you ran into this problem. It may sound weird, but this behavior is by design.
Here's what happens: You open a WAD and delete some lumps. There is no BAK file at this point! It's a final change written straight to the WAD. Give it a try and check it - no BAK file. (Note: there is an undo file however, in the temp folder, so at this point, your delete is easily undoable.)
When you close XWE, there's an option which is turned on by default called "Perform Clean Up on exit". The Clean Up function rewrites whole WAD file to reclaim wasted space. Wasted space is produced for a lot of operations, this is normal for most WAD editing programs (it's not feasible to keep rewriting the whole WAD all the time - especially for very large files). Before clean up occurs, a BAK is created. But that BAK - as you pointed out - already has your files deleted (again, as you pointed out - deleted from the lump list, but not from the actual file). Then the new cleaned up file is written.
Technically it's possible to recreate those lumps, but it's manual work, hacking around with HEX editors. If I recall correctly, DeepSea had some tools for this, you could look into that if getting the lost data is vital.
|