Skip to content

Resource archive files do not respect the encode_flag #3

@joncloud

Description

@joncloud

Expected Behavior

When passing 1 as the encode_flag to the following functions, the data should be compressed using LZSS:

  • res_add_file
  • res_replace_file
  • res_write

Various files are saved with compression including level data and actor sprites. The RES.EXE program also allows raw access to compress any file in a resource archive.

src/utility/lvlbuild.c should be updated to set encode_flag=1 when saving screen data after this is fixed.

Actual Behavior

No data is included in the archive, because the function is not implemented.

Steps to Reproduce the Problem

  1. Mount some file to add to the archive in C:\TEST.TXT
  2. Mount RES.EXE in C:\
  3. Run RES.EXE TMP.DAT C
  4. Run RES.EXE TMP.DAT A TEST.TXT TEST 1
  5. Run RES.EXE TMP.DAT L
  6. Run RES.EXE TMP.DAT E TEST TEST2.TXT

The report should show that the data is compressed appropriately, and extracting the file should have the same contents as the input file.

Specifications

  • Version:
  • Platform:
  • Subsystem:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglvlbuild.exeRelated to lvlbuild.exeqsprite.exeRelated to qsprite.exeres.exeRelated to res.exexsprite.exeRelated to xsprite.exe

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions