mapeditor/tiled








Do you want to work on this issue?
You can request for a bounty in order to promote it!
tiled.activeAsset returns null when providing a tmx file as argument #3530
AnotherPillow posted onGitHub
Describe the bug
When running a .js script from the CLI with --evaluate
and a path to a .tmx file as arguments, values like tiled.activeAsset
(and others that should return a map object).
To Reproduce Steps to reproduce the behavior:
- Create a script referencing
tiled.activeAsset
with aconsole.log()
(or something similar). - Run it, when I was making my script I used
"C:\Program Files\Tiled\Tiled.exe" --evaluate formatConv.js ../CP/assets/gv_diner_interior.tmx
in the folder I had the script. - Will return
qml: null
or similar.
Expected behavior Would return something that isn't null.
Media
Specifications:
- OS: Windows 10
- Tiled Version: 1.92
I did ask about this in the Discord server, and nobody seemed to know and bjorn suggested I make an issue here.