tinke
tinke copied to clipboard
Not supported map import where several map reference to 1 tileset
For example for solutions, i implement in my Map Editor additional import options:
- use exist tiles
- add tiles to end
- insert tiles to position (by tile index): if (add tiles to end and use exist tiles not checked)
Implementation not hard, but its problem looked in every second game...
Can you give some file path that have that problem or upload an image?
Hi, in Nitro formats i find this problem in Coraline game: http://www.coreline.ru/files/Multimap.zip
Also, in customs or raw formats in several games: Pokemon (Platinum etc), Magical Starsign, Ys I DS (JP). Example on Ys game, there all data in RAW nitro formats without headers:
- Select palette (also there problem from issue #11)
- Select tiles
- First map (also other maps in files from options.chr_5 to options.chr_12)
- Another map
I see the problem now, in fact it's another feature that I implemented in NinoImager. Since Tinke is user-interactive and we don't know how many image will be imported we can't implement the same algorithms as NinoImager (an automatic importer).
The quick algorithm I can think of is: for each tile we would search it in the current image, if it does not exist we add it. And in any case do not remove unused tiles. Maybe some tiles won't be used anymore, but we can't know that since we don't know what map file will use an image file.