Arch666Angel / mods

Angelsmods Repository
https://forums.factorio.com/viewforum.php?f=185
85 stars 61 forks source link

[BUG] can't load angelsaddons-crawlertrain as standalone #260

Closed Cyril12740 closed 4 years ago

Cyril12740 commented 4 years ago

Describe the bug The mod/addon can't be loadded in version 0.1.3

To Reproduce Information to reproduce the behavior:

  1. Game Version : 0.18.28 with angelsaddons-crawlertrain 0.1.3
  2. Modlist :

    "base", "angelsaddons-crawlertrain", "angelsaddons-petrotrain", "angelsaddons-smeltingtrain", "Better-Power-Armor-Grid", "flib", "LogisticTrainNetwork", "LtnManager", "more-fusion-reactors", "OpteraLib", "Personal-Roboport-Mk3", "RaiLuaLib", "VoidChestPlus", "WaterWell"

Screenshots 20200529174226_1

Additional context If I install the mod "angelsrefining", the mod crawlertrain can be load. There is an unexpected reference in : C:\Users\cyril\source\repos\mods\angelsaddons-crawlertrain\prototypes\technology\crawler-technology-components-updates.lua

Drelnoch commented 4 years ago

Hi, it looks like the issue is "local OV = angelsmods.functions.OV" is declared on line 1 in addition to line 5 (in crawler-technology-components-updates.lua), outside of the if check for the other mods. Removing the additional declaration on line 1 resolved this for me.