Infinite map can have dimensions that are less than the coordinates of tiles in chunks
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
TMX file of infinite map can have dimensions in header that less then real tile positions in chunks.
How to reproduce:
1. Create finite map, add some tiles and save it
1. Open map properties and set "Infinite" property (white map border size will change)
1. If the border has increased vertically or horizontally - add tile in this area (this will generate new chunk with size 16*16. And tiles in it are beyond map width and height declared in header of saved file)
If you change map type to finite, save it and set infinite again, map dimensions will be recalculated and file will be fixed on save.
Map size must be calculated from chunk positions and sizes or it's content minimal bounds.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with an infinite TMX map whose tiles extend beyond the header dimensions, then trace the infinite-map save path and its map-dimension calculation. Confirm that the saved dimensions cover the chunk positions and sizes or the content's minimal bounds, and verify the corrected TMX file by reopening it in the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100