modded-factorio / bobsmods

Factorio mods by Bobingabout
https://mods.factorio.com/user/Bobingabout
Other
49 stars 26 forks source link

IR2 bobmining compatibility #56

Open fctrusr opened 2 years ago

fctrusr commented 2 years ago

while trying IR2 the following problem occured by loading the game

Error ModManager.cpp:1558: Failed to load mod "bobmining": __bobmining__/prototypes/steam-drills.lua:82: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
        [C]: in function 'pairs'
        __bobmining__/prototypes/steam-drills.lua:84: in main chunk
        [C]: in function 'require'
        __bobmining__/data.lua:22: in main chunk

i modified my local copy to just skip/ignore the problem:

if data.raw["mining-drill"] then
  if data.raw["mining-drill"]["steam-mining-drill"] then
    if data.raw["mining-drill"]["steam-mining-drill"].animations then
      for i, direction in pairs (data.raw["mining-drill"]["steam-mining-drill"].animations) do
        for j, layer in pairs (direction.layers) do
          layer.animation_speed = 4
          layer.hr_version.animation_speed = 4
        end
      end
    end
  end
end
fctrusr commented 2 years ago

The combination IR2 and bobmining still does not load, throwing the following:

Error ModManager.cpp:1558: Error while loading entity prototype "steam-mining-drill" (mining-drill): Invalid pipe connections specification for offset {1.5000000000, 0.5000000000}. The offset must be outside of the entity bounding-box
Modifications: Bob's Mining mod › Squeak Through › Bob's Mining mod › Industrial Revolution 2 › AAI Industry › Attach Notes