Avanatiker / Compendium

Compendium is a command-line application, written in Kotlin, designed to reallocate unique map IDs for each distinct map image in a Minecraft save file.
GNU General Public License v3.0
3 stars 0 forks source link

Feature Request: Enhanced World Management and Map ID Handling #2

Open terbin opened 1 month ago

terbin commented 1 month ago

Feature 1: --world flag (no --input or --output needed, no copying of .mca files)

Implement a mode that uses only a --world flag for the world to be operated on, eliminating the need for --input and --output flags. This will be my primary mode of operation.

data/map_<ID>.dat file handling:

  1. Rename the data folder to data-original (fail and stop if the operation does not succeed due to a locked or already existing data-original directory).
  2. Create a new data folder (fail and stop the operation if data already exists).
  3. Move and rename data-original/map_<original-ID>.dat files to data/map_<hashmap-ID>.dat in one step.
  4. Leave data-original/map_<ID>.dat files that are not in the region/entities .mca files.
  5. Rename the folder data-original to data-notin.

Feature 2: read-only map ID extraction from region/entities .mca files into two lists

Create a mode that extracts map IDs from region/entities .mca files in a read-only manner and generates two lists as txt files.

Example for map with ID 1234: 1234 at 825946 70 438855 in chunk 5, 4 in region r.1613.857.mca in the overworld inside minecraft:chest

Feature 3: mode to generate .png files of original data/map_<id>.dat files

Add a mode to generate .png files of the original data/map_<id>.dat files, not the renamed ones. This is a low priority feature but would be a nice addition.

terbin commented 1 month ago

for Feature 2 please also keep the existing ids-not-found.txt