Use Dynmap's postupdatecommand to detect tile changes #5

Open
opened 2023-11-29 10:31:08 +00:00 by Dantevg · 0 comments
Dantevg commented 2023-11-29 10:31:08 +00:00 (Migrated from github.com)

According to Dynmap's config file, custom-commands.image-updates.postupdatecommand is a

Command run just after any image file is written or updated: run with single parameter with fully qualified file name

Maybe this can be used to detect when no changes have been made at all.

Possible implementation

  1. Craft a command that appends the filename of the changed tile to some text file, and let the user add it to Dynmap's config.
  2. Whenever DynmapExport starts exporting, read that text file. If none of the tiles correspond with an export, cancel that export.
  3. After exporting, clear the text file.
According to Dynmap's config file, `custom-commands.image-updates.postupdatecommand` is a > Command run just after any image file is written or updated: run with single parameter with fully qualified file name Maybe this can be used to detect when no changes have been made at all. ### Possible implementation 1. Craft a command that appends the filename of the changed tile to some text file, and let the user add it to Dynmap's config. 2. Whenever DynmapExport starts exporting, read that text file. If none of the tiles correspond with an export, cancel that export. 3. After exporting, clear the text file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Dante/DynmapExport#5
No description provided.