SnowSzn / rgss-db-cli

rgss-db is a tool for developers to export and/or import the database files of a game made in RPG Maker XP, RPG Maker VX or RPG Maker VX Ace
GNU General Public License v3.0
2 stars 1 forks source link

Map files ending with 1 can't be extracted #1

Closed CIB closed 3 months ago

CIB commented 3 months ago

lib/rgss_db/model/data_file.rb

  # RPG Maker maps data file (glob pattern)
  # @return [String]
  DATA_FILE_MAPS = "Map[0-9][0-9][1-9]"

For example Map010.rvdata2 will never be recognized by the tool since it doesn't match the glob pattern.

SnowSzn commented 3 months ago

lib/rgss_db/model/data_file.rb

  # RPG Maker maps data file (glob pattern)
  # @return [String]
  DATA_FILE_MAPS = "Map[0-9][0-9][1-9]"

For example Map010.rvdata2 will never be recognized by the tool since it doesn't match the glob pattern.

Yeah, you are right, I just pushed a quick update to fix the glob pattern, it should detect all map files now

CIB commented 3 months ago

Thanks! I checked the commit, and it's the same change I did locally to get it to work for me.