Factorio HD Age: Modpack


This modpack bundles all of the Factorio HD Age mods for the Base Game and the Space Age DLC. It doesn't contain any content itself. It only references to the other Factorio HD Age mods as required dependencies. A total of at least 13 GB of VRAM is recommended.

Mod packs
17 days ago
2.0
10.8K
Factorio: Space Age Icon Space Age Mod
Transportation Logistics Trains Combat Armor Enemies Environment Mining Fluids Logistic network Circuit network Power Storage

b [Fixed] 2 mods cause error

7 months ago

Just in case, I will create a separate message, since I wrote in another ticket.

Is it possible to make changes for "Factorio HD Age: Base Game Logistics", because when you enable it, the game gives 2 more errors with the mods "https://mods.factorio.com/mod/neon_belts" and "https://mods.factorio.com/mod/NoRotationForElectricPoles". I am attaching screenshots.

https://drive.google.com/file/d/1ARobEkFfm0RinlWCUZ-Q0ghiq-6yE22b/view?usp=sharing
https://drive.google.com/file/d/1KaVnMJgRsiYqR4wuiEkwd8mk73wKomyH/view?usp=sharing

7 months ago
(updated 7 months ago)

I'll have a look tomorrow and close the other one.

7 months ago
(updated 7 months ago)

Fix for compatibility issue with the Neon Belts is online.
Regarding the NoRotationForElectricPoles mod, I can't do anything on my end because the textures are swapped in the last stage (data-final-fixes.lua).
In order for it to work with my mod, the following changes would have to be made:
data-final-fixes.lua:

for pole_name, pole_prototype in pairs(data.raw["electric-pole"]) do
  if pole_prototype.pictures then

    if pole_prototype.pictures.direction_count then
      pole_prototype.pictures.direction_count = 1
    end

    if pole_prototype.pictures.layers then
      for _, layer in pairs(pole_prototype.pictures.layers) do
        if layer.direction_count then
          layer.direction_count = 1
        end
      end
    end
  end

  if pole_prototype.connection_points then
    pole_prototype.connection_points = {pole_prototype.connection_points[1]}
  end
end

data.lua or data-updates.lua:

for pole_name, pole_prototype in pairs(data.raw["electric-pole"]) do
    if pole_prototype.pictures.layers then
        for _, layer in pairs(pole_prototype.pictures.layers) do
            for _, filename in pairs({
            "small-electric-pole.png",
            "medium-electric-pole.png",
            }) do
                if string.sub(layer.filename, -string.len(filename)) == filename then
                    layer.filename = "__NoRotationForElectricPoles__/graphics/" .. filename
                end
            end
        end
    end
end
7 months ago

Thank you, sensei! :)
I couldn't run it with the "NoRotationForElectricPoles" mod, after these changes it gives this error, I disabled it for now.

NoRotationForElectricPoles/data-updates.lua:2: attempt to index field 'pictures' (a nil value)
stack traceback:
NoRotationForElectricPoles/data-updates.lua:2: in main chunk

Everything else works! Thanks again for the help and the mods! :)

7 months ago

I have checked the code again, everything works for me. Please replace the complete content in both files with the lines of code I posted here.

7 months ago

So I can't find a bug, can you try to activate only the NoRotationForElectricPoles and the Factorio HD Age: Base Game Logistics mod and no other mod.

7 months ago

How fast the game loads without all the mods :)))
Yes, if you leave only these 2 mods enabled, there are no errors. So some other mod is interfering with loading, although for some reason it is not specified which one.
There seems to be no information about this in the log either.

7.776 Loading mod Load-Furn-2-SpaceAgeFix 0.2.10 (data-updates.lua)
7.814 Loading mod NoRotationForElectricPoles 2.0.1 (data-updates.lua)
7.815 Error ModManager.cpp:1745: Не удалось загрузить мод "NoRotationForElectricPoles": NoRotationForElectricPoles/data-updates.lua:2: attempt to index field 'pictures' (a nil value)
stack traceback:
NoRotationForElectricPoles/data-updates.lua:2: in main chunk
7.845 Loading mod core 0.0.0 (data.lua)
7.990 Checksum for core: 3663106354
8.007 Error ModManager.cpp:1745: Error in assignID: recipe-category with name 'recycling' does not exist.

Source: default (utility-constants).
8.015 Info PlayerData.cpp:68: Local player-data.json unavailable
8.015 Info PlayerData.cpp:71: Cloud player-data.json available, timestamp 1735746834
8.015 Post-data load graphics options: [Light occlusion: YES]
8.159 Initial atlas bitmap size is 16384
8.159 Created an atlas bitmap (size 2048x864) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
8.159 Created virtual atlas pages 4096x4096x0
8.159 Loading 3D bitmaps.
8.166 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
8.166 Parallel sprite loader initialized (threads: 11, bitmaps: 145)
8.195 Sprites loaded
8.206 Generated mipmaps (5) for atlas [0] of size 2048x864
8.206 Custom mipmaps uploaded (116)
8.234 Video memory usage: 8.99 MB (Atlases: 8.99 MB, Textures: 0.00 MB)
8.237 Factorio initialised
8.242 Не удалось загрузить следующие моды: NoRotationForElectricPoles/data-updates.lua:2: attempt to index field 'pictures' (a nil value)
stack traceback:
NoRotationForElectricPoles/data-updates.lua:2: in main chunk

Моды для отключения:
• NoRotationForElectricPoles (2.0.1)

7 months ago

Hmmm... I renamed "data-updates.lua" to "data.lua" and the game launched.
Everything seems to be fine, thanks!

This thread has been locked.