L0laapk3 / FactorioMaps

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

Odd error on linux #98

Closed BuyMyMojo closed 9 months ago

BuyMyMojo commented 3 years ago

when trying to run the python with linux I get this popup?

image

then I have to interrupt it in the terminal, here is the terminal output;

[buymymojo@buymymojo-GamingPC L0laapk3_FactorioMaps_4.2.0]$ python ./auto.py --factorio='/home/buymymojo/Drives/data3-ext/Factorio/Factorio/bin/x64/factorio' --verbose --verbosegame Vanilla Van*
Namespace(night=True, day=True, hd=False, altmode=True, tags=True, default_timestamp=None, build_range=5.2, connect_range=1.2, tag_range=5.2, surface=[], factorio=PosixPath('/home/buymymojo/Drives/data3-ext/Factorio/Factorio/bin/x64/factorio'), basepath=PosixPath('/home/buymymojo/.factorio/script-output/FactorioMaps'), mod_path=PosixPath('/home/buymymojo/.factorio/mods'), config_path=PosixPath('/home/buymymojo/.factorio/config'), date='29/04/21', steam=0, standalone=0, verbose=1, verbosegame=1, update=True, reverseupdatetest=False, maxthreads=16, cropthreads=None, refthreads=None, zoomthreads=None, screenshotthreads=None, delete=False, dry=False, targetname='Vanilla', savename=['Van*'], force_lib_update=False)
checking for updates
Will generate snapshots for : ['Vanilla', 'Vanilla 2', 'Vanilla 3', 'Vanilla 4', 'Vanilla 5']
factorio path: /home/buymymojo/Drives/data3-ext/Factorio/Factorio/bin/x64/factorio
output folder: script-output/FactorioMaps/Vanilla
Enabling FactorioMaps mod
cleaning up                                                                                                                                                                                                       
Building autorun.lua                                                                                                                                                                                              
fm.autorun = {
            HD = false,
            daytime = "day",
            alt_mode = true,
            tags = true,
            around_tag_range = 5.2,
            around_build_range = 5.2,
            around_connect_range = 1.2,
            connect_types = {"lamp", "electric-pole", "radar", "straight-rail", "curved-rail", "rail-signal", "rail-chain-signal", "locomotive", "cargo-wagon", "fluid-wagon", "car"},
            date = "29/04/21",
            surfaces = nil,
            name = "Vanilla/",
            mapInfo = {},
            chunkCache = {}
            }                                                                                                                                                                                      
Building config.ini                                                                                                                                                                                               
['/home/buymymojo/Drives/data3-ext/Factorio/Factorio/bin/x64/factorio', '--load-game', '/home/buymymojo/.factorio/saves/Vanilla', '--disable-audio', '--config', '/tmp/FactorioMaps-3nrwyyo2/config/config.ini', '--mod-directory', '/home/buymymojo/.factorio/mods', '--disable-migration-window']                                                                                                                                                                                                         
starting factorio                                                                                                                                                                                                 
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/buymymojo/.factorio/mods/L0laapk3_FactorioMaps_4.2.0/./auto.py", line 164, in startGameAndReadGameLogs
    printingStackTraceback = handleGameLine(line, isFirstLine)
  File "/home/buymymojo/.factorio/mods/L0laapk3_FactorioMaps_4.2.0/./auto.py", line 82, in handleGameLine
    raise Exception("Unrecognised output from factorio (maybe your version is outdated or too new?)\n\nOutput from factorio:\n" + line)
Exception: Unrecognised output from factorio (maybe your version is outdated or too new?)

Output from factorio:
   0.000 Error Util.cpp:83: Error configuring paths: There is no package core in /usr/share/factorio. Deduced executable directory: /home/buymymojo/Drives/data3-ext/Factorio/Factorio/bin/x64, read data: __PATH__system-read-data__, write data: /tmp/FactorioMaps-3nrwyyo2
^Ckeyboardinterrupt
Disabling FactorioMaps mod
Traceback (most recent call last):
  File "/home/buymymojo/.factorio/mods/L0laapk3_FactorioMaps_4.2.0/./auto.py", line 880, in <module>
    auto(*sys.argv[1:])
  File "/home/buymymojo/.factorio/mods/L0laapk3_FactorioMaps_4.2.0/./auto.py", line 628, in auto
    time.sleep(0.4)
KeyboardInterrupt

I'm using no mods and trying to run it with a standalone copy of factorio

L0laapk3 commented 2 years ago

Sorry for getting to you so late.

I'm not sure what to make of this, it seems like it couldn't find the factorio 'core' mod, but there is nothing special going on with the mod folder in your case. It shouldn't make a difference, but maybe explicitely specifying -modpath= could help. If someone else on linux has this problem let me know.

DarkShadow44 commented 1 year ago

I have the same issue, it doesn't seem to like the config.ini it gets passed. EDIT: Seems to work now, no idea what went wrong.