redruin1 / factorio-draftsman

A complete, well-tested, and up-to-date module to manipulate Factorio blueprint strings. Compatible with mods.
MIT License
92 stars 17 forks source link

Unable to load value in data.lua for a mod #103

Closed Chewybanana closed 11 months ago

Chewybanana commented 11 months ago

Describe the bug I am trying to use draftsman with mods. The mod I am having an issue with when calling update() is ArmouredBiters_1.1.9.zip.

Current Behavior

from draftsman.env import update
update(verbose=True, path="/home/xxx/.factorio/mods")
Reading mods from: /home/xxx/.factorio/mods

Discovering mods...

(zip) flib 0.9.2
(zip) better-train-system 0.1.5
(zip) aai-industry 0.5.20
(zip) mining-patch-planner 1.5.6
(zip) artillery-bombardment-remote 1.1.1
(zip) bullet-trails 0.6.2
(zip) recursive-blueprints 1.2.7
(zip) RampantEvolution 1.3.0
(zip) factoryplanner 1.1.72
(zip) space-exploration 0.6.108
(zip) cybersyn 1.2.16
(zip) Moon_Logic 0.0.83
(zip) BottleneckLite 1.2.8
(zip) LogisticTrainNetwork 1.18.4
(zip) cargo-ships 0.2.4
(zip) LogisticTrainNetwork 1.18.5
WARNING: Duplicate of mod 'LogisticTrainNetwork' found (current: 1.18.4 -> new: 1.18.5)
    Overwriting older version (1.18.4) with newer version (1.18.5)
(zip) space-exploration 0.6.112
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.108 -> new: 0.6.112)
    Overwriting older version (0.6.108) with newer version (0.6.112)
(zip) dana 0.3.1
(zip) LTN_Combinator_Modernized 2.1.1
(zip) qol_research 3.3.3
(zip) rocket-log 1.1.11
(zip) Deadlock-SE-bridge 0.6.6
(zip) pushbutton 1.1.1
(zip) space-exploration 0.5.87
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.87)
    Skipping older version (0.5.87) in favor of newer version (0.6.112)
(zip) LTN_Combinator_Modernized 1.0.10
WARNING: Duplicate of mod 'LTN_Combinator_Modernized' found (current: 2.1.1 -> new: 1.0.10)
    Skipping older version (1.0.10) in favor of newer version (2.1.1)
(zip) aai-signal-transmission 0.4.8
(zip) RateCalculator 2.4.3
(zip) textplates 0.6.10
(zip) Rampant 2.2.0
(zip) ArmouredBiters 1.1.9
(zip) space-exploration-graphics 0.5.15
(zip) Dectorio 0.12.6
(zip) shield-projector 0.1.6
(zip) cargo-ships 0.2.2
WARNING: Duplicate of mod 'cargo-ships' found (current: 0.2.4 -> new: 0.2.2)
    Skipping older version (0.2.2) in favor of newer version (0.2.4)
(zip) cargo-ships 0.1.18
WARNING: Duplicate of mod 'cargo-ships' found (current: 0.2.4 -> new: 0.1.18)
    Skipping older version (0.1.18) in favor of newer version (0.2.4)
(zip) aai-signal-transmission 0.4.7
WARNING: Duplicate of mod 'aai-signal-transmission' found (current: 0.4.8 -> new: 0.4.7)
    Skipping older version (0.4.7) in favor of newer version (0.4.8)
(zip) SchallBeltConfiguration 1.1.1
(zip) equipment-gantry 0.1.5
(zip) Krastorio2 1.3.22
(zip) qol_research 3.3.0
WARNING: Duplicate of mod 'qol_research' found (current: 3.3.3 -> new: 3.3.0)
    Skipping older version (3.3.0) in favor of newer version (3.3.3)
(zip) LogisticTrainNetwork 1.16.7
WARNING: Duplicate of mod 'LogisticTrainNetwork' found (current: 1.18.5 -> new: 1.16.7)
    Skipping older version (1.16.7) in favor of newer version (1.18.5)
(zip) Fastforward-Start-2 1.3.0
(zip) LtnManager 0.4.12
(zip) LTN_Content_Reader 1.0.2
(zip) space-exploration-menu-simulations 0.6.8
(zip) grappling-gun 0.3.2
(zip) RecipeBook 3.5.6
(zip) jetpack 0.3.2
(zip) space-exploration-postprocess 0.5.30
(zip) ArmouredBiters 1.1.8
WARNING: Duplicate of mod 'ArmouredBiters' found (current: 1.1.9 -> new: 1.1.8)
    Skipping older version (1.1.8) in favor of newer version (1.1.9)
(zip) SpidertronEnhancements 1.8.17
(zip) space-exploration-graphics-4 0.1.1
(zip) space-exploration 0.5.114
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.114)
    Skipping older version (0.5.114) in favor of newer version (0.6.112)
(zip) informatron 0.3.4
(zip) space-exploration 0.5.103
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.103)
    Skipping older version (0.5.103) in favor of newer version (0.6.112)
(zip) space-exploration-graphics-2 0.6.1
(zip) alien-biomes 0.6.7
(zip) Todo-List 19.2.0
(zip) LTN_Content_Reader 1.0.3
WARNING: Duplicate of mod 'LTN_Content_Reader' found (current: 1.0.2 -> new: 1.0.3)
    Overwriting older version (1.0.2) with newer version (1.0.3)
(zip) equipment-gantry 0.1.4
WARNING: Duplicate of mod 'equipment-gantry' found (current: 0.1.5 -> new: 0.1.4)
    Skipping older version (0.1.4) in favor of newer version (0.1.5)
(zip) SqueakThrough 1.8.2
(zip) EvoGUI 0.4.601
(zip) FactorySearch 1.10.14
(zip) LSlib 2023.03.24
(zip) spidertron-logistics 2.1.7
(zip) Waterfill_Fork 1.0.0
(zip) ModuleInserter 5.2.4
(zip) combat-mechanics-overhaul 0.6.20
(zip) simhelper 1.1.4
(zip) RunSpeedToggle 0.3.0
(zip) LtnManager 0.4.23
WARNING: Duplicate of mod 'LtnManager' found (current: 0.4.12 -> new: 0.4.23)
    Overwriting older version (0.4.12) with newer version (0.4.23)
(zip) ArmouredBiters 1.1.5
WARNING: Duplicate of mod 'ArmouredBiters' found (current: 1.1.9 -> new: 1.1.5)
    Skipping older version (1.1.5) in favor of newer version (1.1.9)
(zip) aai-signal-transmission 0.4.4
WARNING: Duplicate of mod 'aai-signal-transmission' found (current: 0.4.8 -> new: 0.4.4)
    Skipping older version (0.4.4) in favor of newer version (0.4.8)
(zip) space-exploration 0.5.107
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.107)
    Skipping older version (0.5.107) in favor of newer version (0.6.112)
(zip) actual-craft-times-remade 1.0.6
(zip) WideChests 4.2.0
(zip) flib 0.8.4
WARNING: Duplicate of mod 'flib' found (current: 0.9.2 -> new: 0.8.4)
    Skipping older version (0.8.4) in favor of newer version (0.9.2)
(zip) CompressedFluids 0.1.23
(zip) robot_attrition 0.5.15
(zip) cargo-ships 0.2.3
WARNING: Duplicate of mod 'cargo-ships' found (current: 0.2.4 -> new: 0.2.3)
    Skipping older version (0.2.3) in favor of newer version (0.2.4)
(zip) extended-descriptions 1.2.1
(zip) space-exploration-graphics-4 0.6.2
WARNING: Duplicate of mod 'space-exploration-graphics-4' found (current: 0.1.1 -> new: 0.6.2)
    Overwriting older version (0.1.1) with newer version (0.6.2)
(zip) shield-projector 0.1.3
WARNING: Duplicate of mod 'shield-projector' found (current: 0.1.6 -> new: 0.1.3)
    Skipping older version (0.1.3) in favor of newer version (0.1.6)
(zip) Portals 0.7.1
(zip) aai-containers 0.2.11
(zip) flib 0.10.1
WARNING: Duplicate of mod 'flib' found (current: 0.9.2 -> new: 0.10.1)
    Overwriting older version (0.9.2) with newer version (0.10.1)
(zip) Tapeline 2.0.9
(zip) LogisticTrainNetwork 1.18.3
WARNING: Duplicate of mod 'LogisticTrainNetwork' found (current: 1.18.5 -> new: 1.18.3)
    Skipping older version (1.18.3) in favor of newer version (1.18.5)
(zip) Todo-List 19.3.0
WARNING: Duplicate of mod 'Todo-List' found (current: 19.2.0 -> new: 19.3.0)
    Overwriting older version (19.2.0) with newer version (19.3.0)
(zip) aai-industry 0.5.16
WARNING: Duplicate of mod 'aai-industry' found (current: 0.5.20 -> new: 0.5.16)
    Skipping older version (0.5.16) in favor of newer version (0.5.20)
(zip) space-exploration-graphics-5 0.1.2
(zip) space-exploration-graphics-3 0.6.2
(zip) cargo-ships-graphics 0.2.1
(zip) miniloader 1.15.7
(zip) space-exploration 0.5.100
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.100)
    Skipping older version (0.5.100) in favor of newer version (0.6.112)
(zip) space-exploration-graphics-2 0.1.2
WARNING: Duplicate of mod 'space-exploration-graphics-2' found (current: 0.6.1 -> new: 0.1.2)
    Skipping older version (0.1.2) in favor of newer version (0.6.1)
(zip) deadlock-beltboxes-loaders 2.4.2
(zip) even-distribution 1.0.10
(zip) Adjustable-Inventory-Size 1.1.0
(zip) space-exploration-graphics 0.6.15
WARNING: Duplicate of mod 'space-exploration-graphics' found (current: 0.5.15 -> new: 0.6.15)
    Overwriting older version (0.5.15) with newer version (0.6.15)
(zip) faster-robots 0.0.3
(zip) space-exploration 0.5.88
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.88)
    Skipping older version (0.5.88) in favor of newer version (0.6.112)
(zip) space-exploration 0.5.77
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.77)
    Skipping older version (0.5.77) in favor of newer version (0.6.112)
(zip) RateCalculator 3.1.2
WARNING: Duplicate of mod 'RateCalculator' found (current: 2.4.3 -> new: 3.1.2)
    Overwriting older version (2.4.3) with newer version (3.1.2)
(zip) combat-mechanics-overhaul 0.6.24
WARNING: Duplicate of mod 'combat-mechanics-overhaul' found (current: 0.6.20 -> new: 0.6.24)
    Overwriting older version (0.6.20) with newer version (0.6.24)
(zip) space-exploration 0.5.94
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.5.94)
    Skipping older version (0.5.94) in favor of newer version (0.6.112)
(zip) AutoDeconstruct 0.3.8
(zip) Noxys_StackSizeMultiplier 0.4.6
(zip) LTN_Combinator_Modernized 2.0.6
WARNING: Duplicate of mod 'LTN_Combinator_Modernized' found (current: 2.1.1 -> new: 2.0.6)
    Skipping older version (2.0.6) in favor of newer version (2.1.1)
(zip) Krastorio2Assets 1.2.1
(zip) space-exploration-graphics-3 0.1.1
WARNING: Duplicate of mod 'space-exploration-graphics-3' found (current: 0.6.2 -> new: 0.1.1)
    Skipping older version (0.1.1) in favor of newer version (0.6.2)
(zip) jetpack 0.3.13
WARNING: Duplicate of mod 'jetpack' found (current: 0.3.2 -> new: 0.3.13)
    Overwriting older version (0.3.2) with newer version (0.3.13)
(zip) aai-containers 0.2.10
WARNING: Duplicate of mod 'aai-containers' found (current: 0.2.11 -> new: 0.2.10)
    Skipping older version (0.2.10) in favor of newer version (0.2.11)
(zip) YARM 0.10.13
(zip) DeadlockCrating 1.7.0
(zip) robot_attrition 0.5.12
WARNING: Duplicate of mod 'robot_attrition' found (current: 0.5.15 -> new: 0.5.12)
    Skipping older version (0.5.12) in favor of newer version (0.5.15)
(zip) space-exploration-graphics-5 0.6.1
WARNING: Duplicate of mod 'space-exploration-graphics-5' found (current: 0.1.2 -> new: 0.6.1)
    Overwriting older version (0.1.2) with newer version (0.6.1)
(zip) alien-biomes 0.6.8
WARNING: Duplicate of mod 'alien-biomes' found (current: 0.6.7 -> new: 0.6.8)
    Overwriting older version (0.6.7) with newer version (0.6.8)
(zip) grappling-gun 0.3.3
WARNING: Duplicate of mod 'grappling-gun' found (current: 0.3.2 -> new: 0.3.3)
    Overwriting older version (0.3.2) with newer version (0.3.3)
(zip) space-exploration 0.6.113
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.112 -> new: 0.6.113)
    Overwriting older version (0.6.112) with newer version (0.6.113)
(zip) lightorio 1.1.6
(zip) RateCalculator 3.2.2
WARNING: Duplicate of mod 'RateCalculator' found (current: 3.1.2 -> new: 3.2.2)
    Overwriting older version (3.1.2) with newer version (3.2.2)
(zip) Rampant 3.3.3
WARNING: Duplicate of mod 'Rampant' found (current: 2.2.0 -> new: 3.3.3)
    Overwriting older version (2.2.0) with newer version (3.3.3)
(zip) RampantEvolution 1.6.4
WARNING: Duplicate of mod 'RampantEvolution' found (current: 1.3.0 -> new: 1.6.4)
    Overwriting older version (1.3.0) with newer version (1.6.4)
(zip) Robot_Battery_Research 0.2.1
(zip) UPSFriendlyNixieTubeDisplay 0.1.16
(zip) SpidertronPatrols 2.4.9
(zip) flib 0.12.9
WARNING: Duplicate of mod 'flib' found (current: 0.10.1 -> new: 0.12.9)
    Overwriting older version (0.10.1) with newer version (0.12.9)
(zip) RateCalculator 3.2.3
WARNING: Duplicate of mod 'RateCalculator' found (current: 3.2.2 -> new: 3.2.3)
    Overwriting older version (3.2.2) with newer version (3.2.3)
(zip) informatron 0.2.2
WARNING: Duplicate of mod 'informatron' found (current: 0.3.4 -> new: 0.2.2)
    Skipping older version (0.2.2) in favor of newer version (0.3.4)
(zip) space-exploration-postprocess 0.6.26
WARNING: Duplicate of mod 'space-exploration-postprocess' found (current: 0.5.30 -> new: 0.6.26)
    Overwriting older version (0.5.30) with newer version (0.6.26)
(zip) bobinserters 1.1.7
(zip) space-exploration 0.5.112
WARNING: Duplicate of mod 'space-exploration' found (current: 0.6.113 -> new: 0.5.112)
    Skipping older version (0.5.112) in favor of newer version (0.6.113)
(zip) flib 0.7.0
WARNING: Duplicate of mod 'flib' found (current: 0.12.9 -> new: 0.7.0)
    Skipping older version (0.7.0) in favor of newer version (0.12.9)

Determining dependency tree...

flib 0.12.9
archive? True
dependencies:
       base >= 1.1.80
better-train-system 0.1.5
archive? True
dependencies:
       base >= 1.1
aai-industry 0.5.20
archive? True
dependencies:
       base >= 1.1.0
     ? aai-containers >= 0.1.1
     ? InserterFuelLeech >= 0.2.6
     ? angelsrefining  
     ? IndustrialRevolution >= 2.2.3
mining-patch-planner 1.5.6
archive? True
dependencies:
       base >= 1.1.75
artillery-bombardment-remote 1.1.1
archive? True
dependencies:
       base >= 1.1
bullet-trails 0.6.2
archive? True
dependencies:
       base >= 1.1.0
recursive-blueprints 1.2.7
archive? True
dependencies:
       base  
RampantEvolution 1.6.4
archive? True
dependencies:
       base >= 1.1.0
     ? Rampant  
factoryplanner 1.1.72
archive? True
dependencies:
       base >= 1.1.82
       flib >= 0.12.0
     ? RecipeBook  
space-exploration 0.6.113
archive? True
dependencies:
       base >= 1.1.79
       aai-containers >= 0.2.7
       aai-industry >= 0.5.19
       alien-biomes >= 0.6.5
       jetpack >= 0.2.6
       robot_attrition >= 0.5.9
       shield-projector >= 0.1.3
       space-exploration-graphics >= 0.6.15
       space-exploration-graphics-2 >= 0.6.1
       space-exploration-graphics-3 >= 0.6.2
       space-exploration-graphics-4 >= 0.6.1
       space-exploration-graphics-5 >= 0.6.1
     ~ space-exploration-menu-simulations >= 0.6.7
     ~ space-exploration-postprocess >= 0.6.26
       informatron >= 0.2.1
       aai-signal-transmission >= 0.4.1
       simhelper >= 1.1.1
     ? bullet-trails >= 0.6.1
     ? grappling-gun >= 0.3.1
     ? combat-mechanics-overhaul >= 0.6.15
     ? equipment-gantry >= 0.1.1
     ? Krastorio2 >= 1.3.11
     ! angelsindustries  
     ! angelspetrochem  
     ! angelsrefining  
     ! angelssmelting  
     ! bobelectronics  
     ! bobores  
     ! bobplates  
     ! bobpower  
     ! bobrevamp  
     ! bobtech  
     ! bobvehicleequipment  
     ! bobwarfare  
     ! Yuoki  
     ! pycoalprocessing  
     ! pyindustry  
     ! pyhightech  
     ! PyBlock  
     ! angelsinfiniteores  
     ! BiggerStacksPlus  
     ! BitersBegoneUpdated  
     ! bobmodules  
     ! bulkteleport  
     ! Clockwork  
     ! dangOreus  
     ! Darkstar_utilities  
     ! DeepMine  
     ! ExplosiveExcavation  
     ! FactorioExtended-Core  
     ! FactorioExtended-Plus-Core  
     ! IndustrialRevolution  
     ! infinite-resources-depletion  
     ! LandfillPainting  
     ! Li-Quarry  
     ! modmash  
     ! MoreScience  
     ! omnimatter  
     ! PersonalTeleporter  
     ! quarry-edit  
     ! rso-mod  
     ! SeaBlock  
     ! SchallMachineScaling  
     ! SchallOreConversion  
     ! sonaxaton-infinite-resources  
     ! Space-Exploration-Modpack  
     ! SpaceMod  
     ! TagToTeleport  
     ! TeamCoop  
     ! Teleportation_Redux  
     ! traintunnels  
     ! Unlimited-Resources  
     ! UnlimitedProductivity  
     ! vtk-deep-core-mining  
cybersyn 1.2.16
archive? True
dependencies:
       base  
       flib >= 0.12.0
     ? space-exploration >= 0.6.94
     ? miniloader  
     ? nullius  
     ? pypostprocessing  
Moon_Logic 0.0.83
archive? True
dependencies:
       base >= 1.0
     ? SchallCircuitGroup  
BottleneckLite 1.2.8
archive? True
dependencies:
       base >= 1.1.85
       flib >= 0.12.9
     ? space-exploration-postprocess  
LogisticTrainNetwork 1.18.5
archive? True
dependencies:
       base >= 1.1.87
       flib >= 0.6.0
     ? cargo-ships  
cargo-ships 0.2.4
archive? True
dependencies:
       base >= 1.1
       cargo-ships-graphics >= 0.2.1
     ? factorio-world >= 1.0.2
     ? NewIslands >= 0.1.0
     ? islands_world >= 1.1.0
     ? SeaBlock >= 0.5.5
     ? Hovercraft >= 0.0.1
     ? Hovercrafts >= 1.1.0
     ? angelspetrochem >= 0.9.17
     ? ctg >= 0.4.3
     ? Krastorio2 >= 1.0.18
     ! cargo-ships-seraph  
     ? rso-mod  
dana 0.3.1
archive? True
dependencies:
       base >= 1.1
LTN_Combinator_Modernized 2.1.1
archive? True
dependencies:
       base >= 1.1.74
       flib >= 0.12.6
       LogisticTrainNetwork >= 1.15.0
     ! LTN_Combinator_Fix  
qol_research 3.3.3
archive? True
dependencies:
       base >= 1.1.0
     ? space-exploration >= 0.2.0
     ? nullius >= 1.5.0
     ? Krastorio2 >= 1.3.0
rocket-log 1.1.11
archive? True
dependencies:
       flib >= 0.8.2
       space-exploration >= 0.6.79
Deadlock-SE-bridge 0.6.6
archive? True
dependencies:
       space-exploration >= 0.5.12
       space-exploration-graphics >= 0.5.3
     ? deadlock-beltboxes-loaders >= 2.4.0
     ? DeadlockCrating >= 1.5.0
     ? deadlock-integrations  
     ? bobplates  
     ? pycoalprocessing  
     ? DeadlocksStackingForPyanadon  
     ? deadlock-stacking-crating-bobs  
pushbutton 1.1.1
archive? True
dependencies:
       base  
aai-signal-transmission 0.4.8
archive? True
dependencies:
       base >= 1.1.0
RateCalculator 3.2.3
archive? True
dependencies:
       base >= 1.1.80
       flib >= 0.12.9
textplates 0.6.10
archive? True
dependencies:
       base >= 1.1.0
Rampant 3.3.3
archive? True
dependencies:
       base >= 1.1.81
     ? bobenemies  
     ? Natural_Evolution_Enemies >= 0.17.0
     ? Clockwork  
     ? Kux-OrbitalIonCannon  
     ? OrbitalIonCannon  
     ? ArmouredBiters  
     ? Krastorio2  
     ? SchallAlienLoot >= 0.17.6
     ! zhcnremake  
ArmouredBiters 1.1.9
archive? True
dependencies:
       base >= 1.1.80
     ? alien-biomes  
space-exploration-graphics 0.6.15
archive? True
dependencies:
       base >= 1.1.0
Dectorio 0.12.6
archive? True
dependencies:
       base >= 1.1
     ? alien-biomes >= 0.6.2
     ? aai-industry >= 0.4.20
     ? FactorioExtended-Plus-Weaponry >= 0.4.0
     ? H2O >= 0.3.2
     ! Thaumaturgic-Machinations  
shield-projector 0.1.6
archive? True
dependencies:
       base >= 1.1.0
SchallBeltConfiguration 1.1.1
archive? True
dependencies:
       base >= 1.1.28
     ? deadlock-beltboxes-loaders  
     ? DeadlockCrating  
     ? space-exploration  
     ? Krastorio  
equipment-gantry 0.1.5
archive? True
dependencies:
       base >= 1.1.0
     ? informatron >= 0.2.1
Krastorio2 1.3.22
archive? True
dependencies:
       base >= 1.1.74
       Krastorio2Assets >= 1.2.1
       flib >= 0.12.0
     ? aai-industry >= 0.3.17
     ? aai-vehicles-chaingunner >= 0.5.2
     ? Aircraft >= 1.6.6
     ? angelsindustries >= 0.4.3
     ? angelspetrochem >= 0.9.11
     ? bobenemies >= 0.17.6
     ? bullet-trails >= 0.4.1
     ? ElectricTrain  
     ? deadlock-beltboxes-loaders >= 2.1.13
     ? DeadlockLargerLamp >= 1.3.1
     ? Dectorio >= 0.10.5
     ? DiscoScience >= 1.0.0
     ? FlowControl >= 3.0.5
     ? rso-mod >= 6.0.6
     ? SqueakThrough >= 1.3.0
     ? Tral_robot_tree_farm >= 1.2.5
     ? vtk-armor-plating >= 0.8.0
     ? WaterAsAResource >= 0.7.8
     ! Annotorio >= 0.3.0
     ! brave-new-world >= 3.2.1
     ! Clowns-Nuclear >= 1.3.7
     ! HdProcessedMetal >= 0.0.1
     ! KS_Power >= 0.3.0
     ! Krastorio >= 0.2.1
     ! Krastorio-graphics >= 0.0.1
     ! KS_Combat >= 0.1.11
     ! ModularLife >= 0.2.11
     ! PowerArmorMK3 >= 0.0.1
     ! PowerAndArmor >= 1.18.41
     ! SimpleSilicon >= 1.0.0
     ! bobequipment >= 0.17.0
     ! bobvehicleequipment >= 0.17.0
     ! custom_power_armor_fix >= 0.10.0
     ! laborat >= 0.1.0
Fastforward-Start-2 1.3.0
archive? True
dependencies:
       base  
LtnManager 0.4.23
archive? True
dependencies:
       base >= 1.1.42
       LogisticTrainNetwork >= 1.16.3
       flib >= 0.9.2
     ? LTN_Combinator_Modernized  
     ? space-exploration  
LTN_Content_Reader 1.0.3
archive? True
dependencies:
       base >= 1.1.35
       flib >= 0.6.0
       LogisticTrainNetwork >= 1.16.0
space-exploration-menu-simulations 0.6.8
archive? True
dependencies:
       base >= 1.1.0
grappling-gun 0.3.3
archive? True
dependencies:
       base >= 1.1.0
RecipeBook 3.5.6
archive? True
dependencies:
       base >= 1.1.80
       flib >= 0.12.9
jetpack 0.3.13
archive? True
dependencies:
       base >= 1.1.77
     ? PickerTweaks  
space-exploration-postprocess 0.6.26
archive? True
dependencies:
       base >= 1.1.0
     ? space-exploration >= 0.6.94
     ? angelsbioprocessing  
     ? angelsindustries  
     ? angelspetrochem  
     ? angelsrefining  
     ? angelssmelting  
     ? bobassembly  
     ? bobelectronics  
     ? bobenemies  
     ? bobgreenhouse  
     ? bobinserters  
     ? boblogistics  
     ? bobmining  
     ? bobmodules  
     ? bobores  
     ? bobplates  
     ? bobpower  
     ? bobrevamp  
     ? bobtech  
     ? bobvehicleequipment  
     ? bobwarfare  
     ? Darkstar_utilities  
     ? Darkstar_utilities_Low_Spec-0_17-Port  
     ? Decktorio  
     ? k2se-compatibility  
     ? Krastorio2 >= 1.3.1
     ? NPUtils  
     ? qol_research  
     ? reverse-factory >= 6.0.5
     ? SpaceMod  
     ? Yuoki  
SpidertronEnhancements 1.8.17
archive? True
dependencies:
       base >= 1.1.60
       simhelper >= 1.1.2
     ? RemoteConfiguration  
     ? SpidertronWaypoints >= 1.7.2
     ? SpidertronWeaponSwitcher >= 1.2.2
     ? spidertron-grid  
     ? aai-vehicles-ironclad  
space-exploration-graphics-4 0.6.2
archive? True
dependencies:
       base >= 1.1.0
informatron 0.3.4
archive? True
dependencies:
       base >= 1.1.0
space-exploration-graphics-2 0.6.1
archive? True
dependencies:
       base >= 1.1.0
alien-biomes 0.6.8
archive? True
dependencies:
       base >= 1.1.0
     ? alien-biomes-hr-terrain >= 0.3.1
Todo-List 19.3.0
archive? True
dependencies:
       base >= 1.1.0
SqueakThrough 1.8.2
archive? True
dependencies:
       base  
     ? WideChests  
EvoGUI 0.4.601
archive? True
dependencies:
     ? moweather  
FactorySearch 1.10.14
archive? True
dependencies:
       base  
LSlib 2023.03.24
archive? True
dependencies:
       base >= 1.1.5
spidertron-logistics 2.1.7
archive? True
dependencies:
       base  
     ? equipment-gantry  
     ? Insectitron  
     ? spidertrontiers-community-updates  
Waterfill_Fork 1.0.0
archive? True
dependencies:
       base >= 1.1.0
ModuleInserter 5.2.4
archive? True
dependencies:
       flib >= 0.6.0
combat-mechanics-overhaul 0.6.24
archive? True
dependencies:
       base >= 1.1.0
     ? jetpack  
simhelper 1.1.4
archive? True
dependencies:
RunSpeedToggle 0.3.0
archive? True
dependencies:
       base >= 0.17
actual-craft-times-remade 1.0.6
archive? True
dependencies:
       base >= 0.18.00
WideChests 4.2.0
archive? True
dependencies:
     ? boblogistics  
     ? bobplates  
     ? DyWorld-Dynamics  
     ? nullius >= 1.3.4
     ? paperchest  
     ? angelsbioprocessing  
     ? verysmallchests  
     ? WideChestsAllTypes  
     ? WideChestsUnlimited  
     ? WideChestsLogistic >= 1.3.0
CompressedFluids 0.1.23
archive? True
dependencies:
       base >= 1.1.2
       LSlib >= 2020.11.26
     ? angelspetrochem  
     ? angelssmelting  
     ? angelsindustries  
robot_attrition 0.5.15
archive? True
dependencies:
       base >= 1.1.0
extended-descriptions 1.2.1
archive? True
dependencies:
       base >= 1.1.74
     ? pypostprocessing  
     ? deadlock-beltboxes-loaders  
     ? angelsrefining  
     ? angelspetrochem  
     ? pyindustry  
     ? FlareStack  
     ? space-exploration  
     ? nullius  
Portals 0.7.1
archive? True
dependencies:
       base  
aai-containers 0.2.11
archive? True
dependencies:
       base >= 1.1.0
Tapeline 2.0.9
archive? True
dependencies:
       base >= 1.1.0
       flib >= 0.7.0
space-exploration-graphics-5 0.6.1
archive? True
dependencies:
       base >= 1.1.0
space-exploration-graphics-3 0.6.2
archive? True
dependencies:
       base >= 1.1.0
cargo-ships-graphics 0.2.1
archive? True
dependencies:
       base >= 1.1
     ~ cargo-ships >= 0.1.0
miniloader 1.15.7
archive? True
dependencies:
     ? bobinserters >= 0.17.1
     ? boblogistics >= 0.17.1
     ? FactorioExtended-Plus-Transport >= 0.1.5
     ? Krastorio2 >= 0.9.0
     ? omnimatter_energy >= 3.1.0
     ? RandomFactorioThings >= 1.0.0
     ? UltimateBelts >= 0.16.4
     ? UltimateBelts_Owoshima_And_Pankeko-Mod >= 0.16.4
     ? space-exploration >= 0.1.95
     ? SchallBeltConfiguration  
deadlock-beltboxes-loaders 2.4.2
archive? True
dependencies:
       base >= 1.1
     ? ReStack  
even-distribution 1.0.10
archive? True
dependencies:
       base >= 1.1.0
Adjustable-Inventory-Size 1.1.0
archive? True
dependencies:
       base >= 1.1
faster-robots 0.0.3
archive? True
dependencies:
       base  
AutoDeconstruct 0.3.8
archive? True
dependencies:
       base  
Noxys_StackSizeMultiplier 0.4.6
archive? True
dependencies:
       base >= 1.1.0
     ? techno  
     ? Krastorio2  
     ? space-exploration-postprocess  
Krastorio2Assets 1.2.1
archive? True
dependencies:
       base >= 1.1.41
YARM 0.10.13
archive? True
dependencies:
     ? aai-programmable-vehicles  
     ? angelsrefining  
     ? omnimatter  
DeadlockCrating 1.7.0
archive? True
dependencies:
       base >= 1.1
     ? ReStack  
lightorio 1.1.6
archive? True
dependencies:
       base >= 1.1
Robot_Battery_Research 0.2.1
archive? True
dependencies:
       base  
UPSFriendlyNixieTubeDisplay 0.1.16
archive? True
dependencies:
       base >= 1.1
     ! SantasNixieTubeDisplay  
     ! nixie-tubes  
SpidertronPatrols 2.4.9
archive? True
dependencies:
       base >= 1.1.72
       SpidertronEnhancements >= 1.8.14
     ? SpidertronWeaponSwitcher >= 1.2.0
     ? nullius  
bobinserters 1.1.7
archive? True
dependencies:
       base >= 1.1.0

Load order:
['EvoGUI', 'WideChests', 'YARM', 'base', 'simhelper', 'Adjustable-Inventory-Size', 'AutoDeconstruct', 'DeadlockCrating', 'FactorySearch', 'Fastforward-Start-2', 'Krastorio2Assets', 'LSlib', 'Moon_Logic', 'Portals', 'Robot_Battery_Research', 'RunSpeedToggle', 'Todo-List', 'UPSFriendlyNixieTubeDisplay', 'Waterfill_Fork', 'aai-containers', 'aai-signal-transmission', 'actual-craft-times-remade', 'alien-biomes', 'artillery-bombardment-remote', 'better-train-system', 'bobinserters', 'bullet-trails', 'cargo-ships-graphics', 'dana', 'deadlock-beltboxes-loaders', 'even-distribution', 'faster-robots', 'flib', 'grappling-gun', 'informatron', 'jetpack', 'lightorio', 'mining-patch-planner', 'pushbutton', 'recursive-blueprints', 'robot_attrition', 'shield-projector', 'space-exploration-graphics', 'space-exploration-graphics-2', 'space-exploration-graphics-3', 'space-exploration-graphics-4', 'space-exploration-graphics-5', 'space-exploration-menu-simulations', 'textplates', 'ModuleInserter', 'SpidertronEnhancements', 'SqueakThrough', 'ArmouredBiters', 'CompressedFluids', 'RateCalculator', 'RecipeBook', 'Tapeline', 'aai-industry', 'combat-mechanics-overhaul', 'equipment-gantry', 'SpidertronPatrols', 'spidertron-logistics', 'Dectorio', 'factoryplanner', 'Krastorio2', 'cargo-ships', 'Rampant', 'LogisticTrainNetwork', 'RampantEvolution', 'LTN_Combinator_Modernized', 'LTN_Content_Reader', 'space-exploration', 'rocket-log', 'extended-descriptions', 'SchallBeltConfiguration', 'Deadlock-SE-bridge', 'qol_research', 'LtnManager', 'miniloader', 'space-exploration-postprocess', 'BottleneckLite', 'Noxys_StackSizeMultiplier', 'cybersyn']

SETTINGS.LUA:
    mod: WideChests
    mod: YARM
    mod: Adjustable-Inventory-Size
    mod: AutoDeconstruct
    mod: FactorySearch
    mod: Moon_Logic
    mod: Portals
    mod: RunSpeedToggle
    mod: Todo-List
    mod: UPSFriendlyNixieTubeDisplay
    mod: aai-containers
    mod: actual-craft-times-remade
    mod: alien-biomes
    mod: bobinserters
    mod: dana
    mod: deadlock-beltboxes-loaders
    mod: even-distribution
    mod: faster-robots
    mod: informatron
    mod: jetpack
    mod: lightorio
    mod: mining-patch-planner
    mod: recursive-blueprints
    mod: robot_attrition
    mod: space-exploration-menu-simulations
    mod: ModuleInserter
    mod: SpidertronEnhancements
    mod: SqueakThrough
    mod: ArmouredBiters
    mod: CompressedFluids
    mod: RateCalculator
    mod: Tapeline
    mod: aai-industry
    mod: combat-mechanics-overhaul
    mod: equipment-gantry
    mod: SpidertronPatrols
    mod: spidertron-logistics
    mod: Dectorio
    mod: factoryplanner
    mod: Krastorio2
    mod: cargo-ships
    mod: Rampant
    mod: LogisticTrainNetwork
    mod: RampantEvolution
    mod: LTN_Combinator_Modernized
    mod: LTN_Content_Reader
    mod: space-exploration
    mod: rocket-log
    mod: extended-descriptions
    mod: SchallBeltConfiguration
    mod: Deadlock-SE-bridge
    mod: qol_research
    mod: LtnManager
    mod: miniloader
    mod: space-exploration-postprocess
    mod: BottleneckLite
    mod: Noxys_StackSizeMultiplier
    mod: cybersyn
SETTINGS-UPDATES.LUA:
    mod: Krastorio2
    mod: cargo-ships
SETTINGS-FINAL-FIXES.LUA:
    mod: AutoDeconstruct
DATA.LUA:
    mod: EvoGUI
    mod: YARM
    mod: base
    mod: Adjustable-Inventory-Size
    mod: DeadlockCrating
    mod: FactorySearch
    mod: Fastforward-Start-2
    mod: Moon_Logic
    mod: Portals
    mod: Robot_Battery_Research
    mod: RunSpeedToggle
    mod: Todo-List
    mod: UPSFriendlyNixieTubeDisplay
    mod: Waterfill_Fork
    mod: aai-containers
    mod: aai-signal-transmission
    mod: actual-craft-times-remade
    mod: alien-biomes
    mod: artillery-bombardment-remote
    mod: better-train-system
    mod: bobinserters
    mod: bullet-trails
    mod: dana
    mod: deadlock-beltboxes-loaders
    mod: even-distribution
    mod: flib
    mod: grappling-gun
    mod: informatron
    mod: jetpack
    mod: lightorio
    mod: mining-patch-planner
    mod: pushbutton
    mod: recursive-blueprints
    mod: robot_attrition
    mod: shield-projector
    mod: space-exploration-menu-simulations
    mod: textplates
    mod: ModuleInserter
    mod: SpidertronEnhancements
    mod: ArmouredBiters
---------------------------------------------------------------------------
LuaError                                  Traceback (most recent call last)
<ipython-input-2-051376627084> in <module>
----> 1 update(verbose=True, path="/home/xxx/.factorio/mods")

~/.local/lib/python3.8/site-packages/draftsman/env.py in update(verbose, path, show_logs, no_mods, report)
   1828                     print("\tmod:", mod_name)
   1829 
-> 1830                 load_stage(lua, mods, mod, stage)
   1831 
   1832                 # Reset the included modules

~/.local/lib/python3.8/site-packages/draftsman/env.py in load_stage(lua, mod_list, mod, stage)
    277     lua.globals().lua_add_path(mod.location + "/?.lua")
    278 
--> 279     lua.execute(mod.data[stage])
    280 
    281 

lupa/lua52.pyx in lupa.lua52.LuaRuntime.execute()

lupa/lua52.pyx in lupa.lua52.run_lua()

lupa/lua52.pyx in lupa.lua52.call_lua()

lupa/lua52.pyx in lupa.lua52.execute_lua_call()

lupa/lua52.pyx in lupa.lua52.raise_lua_error()

LuaError: [string "<python>"]:9: attempt to index field 'ab-small-armoured-biter-color-primary' (a nil value)
stack traceback:
    [string "<python>"]:9: in main chunk

Expected behavior A successful import!

Additional context I noticed that in the docs, the example had ArmouredBiters_1.1.5! I actually have both .zips so I snooped around and I've attached a comparison of the relevant section. In 1.1.5, the values were hard-coded in the data file, whilst in 1.1.9, they are inferred from the settings.startup field.

(1.1.9 on the left, 1.1.5 on the right) Screenshot from 2023-09-18 17-36-12

I tinkered a bit with env.py to try and see what was going on and my guess is that despite a default value being given in settings.lua, it's not loaded into lua.globals().settings['startup'], but it is loaded into user_settings['startup']["ab-small-armoured-biter-color-primary"]. For example:

    # If there is a mod settings file present, we overwrite the defaults we just
    # initialized if they're present
    breakpoint()  # Line 1802 in env.py
    try:
        user_settings = get_mod_settings(factorio_mods)
        # If so, Overwrite the 'value' key for all the settings present
        for setting_type, setting_dict in user_settings.items():
            lua_settings = lua.globals().settings[setting_type]
            for name in setting_dict:
                if lua_settings[name] is not None:
                    lua_settings[name].value = setting_dict[name]["value"]
    except FileNotFoundError:
        pass

gives (with some output truncated):

ipdb> user_settings = get_mod_settings(factorio_mods)
ipdb> user_settings['startup']["ab-small-armoured-biter-color-primary"]
{'value': {'r': 0.9300000071525574, 'g': 0.9399999976158142, 'b': 0.7200000286102295, 'a': 0.6000000238418579}}
ipdb> lua.globals().settings['startup']["ab-small-armoured-biter-color-primary"]
ipdb> lua.globals().settings['startup']["ab-small-armoured-biter-color-primary"].value
*** AttributeError: 'NoneType' object has no attribute 'value'

However, the user setting isn't applied because the default is somehow not present. But I'm not very knowledgeable about factorio modding or lua, so just I hope any of this is helpful.

Please also include the following: Draftsman version: 1.0.6 Python version: 3.8.5

redruin1 commented 11 months ago

Thank you very much for the rigorous and detailed report. Turns out I had omitted a category of setting, color, which seems like it was added in a recent version. Seems like even the wiki is a bit slow to this change:

image

Now settings.lua searches and converts all 5 settings types:

set_settings("bool-setting")
set_settings("int-setting")
set_settings("double-setting")
set_settings("string-setting")
set_settings("color-setting")

This fix will be in 1.1.