L0laapk3 / FactorioMaps

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

Error: unrecognized option '--disable-audio' #8

Closed utoxin closed 5 years ago

utoxin commented 5 years ago
Microsoft Windows [Version 10.0.17763.1]
(c) 2018 Microsoft Corporation. All rights reserved.

H:\Factorio\Game\0.16.51\mods\L0laapk3_FactorioMaps_1.2.1>python auto.py
C:\Program Files\Factorio\bin\x64\factorio.exe
Checking for updates
enabling FactorioMaps mod
..\..\script-output\FactorioMaps\0.16 Series
cleaning up
creating autorun.lua from autorun.template.lua
starting factorio
unrecognised option '--disable-audio'

General options:
  -h [ --help ]                      display help
  --version                          show version information
  -v [ --verbose ]                   enable verbose logging
  -c [ --config ] PATH               config file to use
  --no-log-rotation                  don't rotate log file
  --mod-directory PATH               Mod directory to use

Running options:
  -s [ --map2scenario ] arg          map to scenario conversion
  -m [ --scenario2map ] arg          scenario to map conversion
  --apply-update arg                 immediately apply update package
  --create FILE                      create a new map
  --map-gen-settings FILE            Map generation settings for use with
                                     --create. See data/map-gen-settings.exampl
                                     e.json
  --start-server FILE                start a multiplayer server
  --start-server-load-scenario FILE  start a multiplayer server and load the
                                     specified scenario
  --start-server-load-latest         start a multiplayer server and load the
                                     latest available save
  --until-tick TICK                  run a save until given map tick
  --mp-connect ADDRESS               start factorio and connect to address
  --load-game FILE                   start Factorio and load a game in
                                     singleplayer
  --benchmark FILE                   load save and run benchmark
  --benchmark-ticks N (=1,000)       number of ticks for benchmarking. Default
                                     is 1000
  --force-opengl                     use OpenGL for rendering
  --force-d3d                        use Direct3D for rendering

Server options:
  --port N                           network port to use
  --bind ADDRESS[:PORT]              IP address (and optionally port) to bind
                                     to
  --rcon-port N                      Port to use for RCON
  --rcon-password PASSWORD           Password for RCON
  --server-settings FILE             Path to file with server settings. See
                                     data/server-settings.example.json

killing factorio
ERROR: The process "factorio.exe" not found.
disabling FactorioMaps mod
reverting autorun.lua
Traceback (most recent call last):
  File "auto.py", line 155, in <module>
    time.sleep(1)
KeyboardInterrupt

H:\Factorio\Game\0.16.51\mods\L0laapk3_FactorioMaps_1.2.1>
utoxin commented 5 years ago

If it matters, I use ModMyFactory to launch my game normally. I ran it from the correct path for the mods folder inside my managed instance, but it looks like maybe it tried to run Factorio from a default location?

L0laapk3 commented 5 years ago

It must have somehow found an older version of factorio. I gave it a set of default locations:

    "C:\\Program Files\\Factorio\\bin\\x64\\factorio.exe",
    "D:\\Program Files\\Factorio\\bin\\x64\\factorio.exe",
    "C:\\Games\\Factorio\\bin\\x64\\factorio.exe",
    "D:\\Games\\Factorio\\bin\\x64\\factorio.exe",
    "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Factorio\\bin\\x64\\factorio.exe",
    "D:\\Program Files (x86)\\Steam\\steamapps\\common\\Factorio\\bin\\x64\\factorio.exe"

It traverses these in order. What im guessing has happened is that the first working path that it encountered is an outdated factorio executable. You can start auto.py with --factorio=PATH, or you can edit these in the auto.py script.

utoxin commented 5 years ago

Ahhh. Okay. I can work with that. I'll freely admit my setup is non-standard, so that makes sense. (But man, when you play multiple different sets of mods, ModMyFactorio is SOOOO nice. :)

L0laapk3 commented 5 years ago

I dont know, you can just create a shortcut to a factorio.exe with a separate mod folder. image By the way, you might want to also add that into the auto.py code if you find that you need to redownload/reenable all the mods because the launcher might store the mods in a non standard folder.

utoxin commented 5 years ago

It's working well for me now. :) Thanks for the help. Looking forward to playing with this.