L0laapk3 / FactorioMaps

L0laapk3's FactorioMaps mod
https://mods.factorio.com/mod/L0laapk3_FactorioMaps
Other
118 stars 22 forks source link

Having trouble saving into a different directory #97

Closed Nottler02 closed 2 years ago

Nottler02 commented 3 years ago

Greetings everyone,

I have started using the mod recently and realized pretty soon the output-folder size is becoming way to big for my standard output directory. So I wanted to move the whole thing to another drive with more storage available.

However, trying so the mod is throwing me an error I cannot make anything out of. Also I am not entirely sure how to properly work with spaces and \ in a cmd environment (having little to new developer experience). I was trying the "outfolder" "savename" thing.

My command line (note: P: is the drive I intend to store the output on):

python auto.py "P:\Eigener Ordner\script-output\FactorioMaps\MP mit Steffi und Viecher" "MP mit Steffi und Viecher"

in cmd:

checking for updates
factorio path: G:\Steam\steamapps\common\Factorio\bin\x64\factorio.exe
output folder: P:\Eigener Ordner\script-output\FactorioMaps\MP mit Steffi und Viecher
Enabling FactorioMaps mod
cleaning up
Building autorun.lua
Building config.ini
starting factorio
using steam launch hack.

In game main menu, after "loading the map" (basically):

__L0laapk3_FactorioMaps__/control.lua:5: __L0laapk3_FactorioMaps__/autorun.lua:12: invalid escape sequence near '\E'
stack traceback:
    [C]: in function 'require'
    __L0laapk3_FactorioMaps__/control.lua:5: in main chunk``` 

Additional notes:

L0laapk3 commented 2 years ago

Hi. Sorry that I forgot about this. The outfolder is just the name of the output map, it does not support paths. If you want to change the output path, my recommendation is that you create a symlink as replacement for the script-output folder to another drive. This gets around some factorio limitations and lets you use any drive to generate the images