mapeditor/tiled


Do you want to work on this issue?
You can request for a bounty in order to promote it!
tiled.registerMapFormat - source map missing value of fileName #4172
justgook posted onGitHub
Describe the bug When i create new map format i need access to source map file name (to find word where map belongs, as example)
To Reproduce register new map format:
tiled.registerMapFormat("world-lut", {
name: "LUT World(s) image",
extension: "png *.bin",
write: function(p_map, p_fileName) {
console.log(`the fileName: "${p_map.fileName}"`, typeof (p_map.fileName))
}
})
export, use it to export map - and look at console output:
qml: the fileName: "" string
Expected behavior in console you see
qml: the fileName: "path_to_map_file.tmj" string
Specifications:
- OS: MacOs
- Tiled Version: 1.11.2