Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map tag crash on steam version #26

Closed
daniel-tp opened this issue Feb 24, 2019 · 2 comments
Closed

map tag crash on steam version #26

daniel-tp opened this issue Feb 24, 2019 · 2 comments
Labels
backend issue for map generation bug Something isn't working

Comments

@daniel-tp
Copy link

daniel-tp commented Feb 24, 2019

Trying to run auto.py on this map in Factorio 16.5.1 via Steam causes the following error to occur:

Traceback (most recent call last):  
  File "auto.py", line 559, in <module>  
    auto(*sys.argv[1:])  
  File "auto.py", line 464, in auto  
    rawPath = rawTags[tag["iconType"] + tag["iconName"][0].upper() + tag["iconName"][1:]]  
KeyError: 'itemIron-plate'

The map only had QoL mods and nothing that added new items, still tried disabling all mods and trying again, no change.

Full run log:

python auto.py --dayonly --hd
No save name passed. Using most recent save: trunklunk
factorio path: C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\factorio.exe
output folder: script-output\FactorioMaps\trunklunk
checking for updates
enabling FactorioMaps mod
cleaning up
building autorun.lua
starting factorio
WARNING: running in limited support mode trough steam. Consider using standalone factorio instead.
         Please open steam and confirm the steam 'start game with arguments' popup.
Processing trunklunk/45/nauvis/day (1 of 1)
crop 100.0% [=========================================================================================================]
killed factorio
zoom 100.0% [=========================================================================================================]
generating mapInfo.json
updating labels
disabling FactorioMaps mod
cleaning up
Traceback (most recent call last):
  File "auto.py", line 559, in <module>
    auto(*sys.argv[1:])
  File "auto.py", line 464, in auto
    rawPath = rawTags[tag["iconType"] + tag["iconName"][0].upper() + tag["iconName"][1:]]
KeyError: 'itemIron-plate'
@L0laapk3
Copy link
Owner

This is a bug in the code I have right now, you can avoid it by using the standalone factorio from https://factorio.com/ , or by waiting one version until I fix it. Thanks for reporting!

@L0laapk3 L0laapk3 added bug Something isn't working backend issue for map generation labels Feb 25, 2019
@L0laapk3 L0laapk3 changed the title KeyError: 'itemIron-plate' map tag crash on steam version Feb 25, 2019
@L0laapk3
Copy link
Owner

Fixed as of v3.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend issue for map generation bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants