Bob's Modules


Expansion to the Modules system.

Content
4 months ago
0.13 - 1.1
216K
Manufacturing

b [Not a bug] Tier 3 speed and productivity modules are missing

8 months ago
(updated 8 months ago)

Hi there,

I started a new game with a few mods ( mainly bob's ) and for some reason a bug is occuring
In bob's modules, tier 3 of speed and productivity modules are missing and im unable to build them and the next ones even tho techno are researched succesfuly and unlocked. I even tried to use admin commands to see if I was missing something and I unresearched everything and researched everything again, modules are still missing

see the pic : https://snipboard.io/h6TpDO.jpg

If needed here is a drive with the save ( modules bug is the save of the map) and the mods list and setings files.
https://drive.google.com/drive/folders/1BcLLwtGcW1wXEtNrrZvVjos130HzOdWc?usp=sharing

Thanks for ur help

KiwiHawk β˜†
8 months ago
(updated 8 months ago)

Strange! All looks fine to me πŸ€”
https://imgur.com/a/2VHmEdk

You could try run this script:

/c
  for _, force in pairs(game.forces) do
    force.reset_technologies()
    force.reset_recipes()
    for tech_name, tech in pairs(force.technologies) do
      if tech.researched then
        for tech_name, effect in pairs(tech.effects) do
          if effect.type == "unlock-recipe" then
            force.recipes[effect.recipe].enabled = true
          end
        end
      end
      if game.technology_prototypes[tech_name].enabled then
        force.technologies[tech_name].enabled = true
      end
    end
  end
8 months ago

Hi!
So, first of all, thanks a lot, ur script is working and fixes the issue, at least temporary .
Indeed, every single time I research a technology, the tier 3 speed and productivity are gone again ( technologies that have no relation to module ones btw )
So I can re-run the script every time and it's back but yeah, kinda annoying.
Any idea what could cause that ?

Thanks again

KiwiHawk β˜†
8 months ago
(updated 8 months ago)

I've been able to reproduce it, thanks. I removed every mod except for Oarc Multiplayer Spawn and could still reproduce it. I read through that mod's code. It seems it's a deliberate "feature" of the mod to disable some goodies until after you launch a rocket.

New response