Closed GuvBubbs closed 10 months ago
I am able to make this work by specifying just a file in LDtk for the command to run.
The batch file was in the same path as the LDtk project.
I imagine that then, the batch file could try to execute something else that's more complex.
I imagine that this would also work for running an .exe file, but I have not tried that.
And then when I ctrl+r:
Maybe my test was too simple. It's possible some more complex things don't work, but hopefully they just do
I can confirm that running applications also works! And the working directory works also.
Unfortunately, it only supplies the working directory, and there is no ldtk file path as an environment variable or command line arg.
@deepnight This would be a great thing to add to the custom commands: Supply the file name (or whole path) of the LDtk file that's currently open. Because currently my app is unaware of the file context if, for example, there are multiple LDtk files in the same directory.
Confirmed this is working.
Forgive the long delay.
Despite many efforts, I've not been able to run custom commands on PC.
When I run this command in the command prompt.
pdc "C:\Playdate Dev\Comet SDK\Comet\source" "C:\Playdate Dev\Comet SDK\Comet\build\Comet"
It build my game from source and dumps it in the correct folder.
The same command in LDtk gives this error.
Running from an EXE or batch file also doesn't work. If i add cmd to the start I get this, and it looks like its thinking, but shows no progress.
When I raised this on discord, @deepnight said...
I'm looking to speed up my iteration time so I would love for this to be fixed or for me to be told where i'm going wrong.
Regards