Empty path name not legal when running .bat

Jun 4, 2011 at 5:25 PM

So I created my bat file with this text: "TerrariaMapTool.exe -terraria "C:\Program Files (x86)\Steam\steamapps\common\terraria"
-world "C:\Users\Ross\Documents\My Games\Terraria\Worlds\world1.wld" -output
"C:\Program Files (x86)\Steam\steamapps\common\terraria\Content\Map" -blocksize 16,16
-layer

drawwalls,drawbackgroundwater,drawforegroundwater,drawbackgroundtiles,drawforegroundtiles
-zoomlevels 0.03125,0.0625,0.125,0.25,0.5,1 -mapdata"

and when I run the .bat file it immediate closes, so I opened it from within command line and get this error:

"C:\TerrariaMapTool>RunMapGen.bat

C:\TerrariaMapTool>TerrariaMapTool.exe -terraria "C:\Program Files (x86)\Steam\s
teamapps\common\terraria"
Loading world
Failed to parse arguments:

Empty path name is not legal.

C:\TerrariaMapTool>-world "C:\Users\Ross\Documents\My Games\Terraria\Worlds\worl
d1.wld" -output
'-world' is not recognized as an internal or external command,
operable program or batch file.

C:\TerrariaMapTool>"C:\Program Files (x86)\Steam\steamapps\common\terraria\Conte
nt\Map" -blocksize 16,16
'"C:\Program Files (x86)\Steam\steamapps\common\terraria\Content\Map"' is not re
cognized as an internal or external command,
operable program or batch file.

C:\TerrariaMapTool>-layer drawwalls,drawbackgroundwater,drawforegroundwater,draw
backgroundtiles,drawforegroundtiles
'-layer' is not recognized as an internal or external command,
operable program or batch file.

C:\TerrariaMapTool>-zoomlevels 0.03125,0.0625,0.125,0.25,0.5,1 -mapdata
'-zoomlevels' is not recognized as an internal or external command,
operable program or batch file."

Thanks!

Jun 5, 2011 at 10:56 PM

Hi Mate,

I believe the issue your having is new line characters being read as enters and so beginning the command prematurely.

Try editing you .bat and making sure everything is one one line.

Hope I've helped :)

Sacrimantius