Author Topic: [Request] Data files linked to multiple images  (Read 298 times)

ffomega

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Solarus Resource & Tutorial Site
[Request] Data files linked to multiple images
« on: December 08, 2016, 08:40:42 am »
Will future builds of Solarus have a feature to allow multiple images to share a single data file? For example: When creating multiple tilesets, each tileset must have its own data file.  But what if a single data file could be called with different images linked to it? Within the data file itself, a line could be added for each image it references, similar to how the project.db file handles the directory tree of the quest from within Solarus, where it lays out an absolute path to everything contained within the quest.  This could save disk space and clean up the folders that use graphics.  A GUI option could be added like a button that would say something like "Link tileset to data file", and an open dialogue box would appear allowing you to choose the data file the image referred to.  Also if any changes needed to be made to the data file, you only have to edit a single file rather than 10 (in the case of tilesets that used the same exact data within different data files whose only differences were a different colored image.
My tilesets page can be found here:
http://absolute-hyrule-tutorials.solarus-games.org/

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
Re: [Request] Data files linked to multiple images
« Reply #1 on: December 08, 2016, 08:51:08 am »
Yes there is already an issue for that: https://github.com/solarus-games/solarus/issues/662

ffomega

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Solarus Resource & Tutorial Site
Re: [Request] Data files linked to multiple images
« Reply #2 on: December 08, 2016, 11:25:26 am »
That's wonderful :) I hope this one gets resolved in time ^^
My tilesets page can be found here:
http://absolute-hyrule-tutorials.solarus-games.org/