Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cycle in technology tree when Krastorio 2 is installed and technology overhaul is enabled in Angels Industries #995

Open
fractalis opened this issue Jul 8, 2024 · 0 comments
Labels
Angels Industries (Technology mode) industries related with the technology overhaul Impact: Bug Something could be wrong Impact: Mod compatibility Mainly involves 3rd party mods

Comments

@fractalis
Copy link

Describe the bug
There is a cycle in the technology tree when Krastorio 2 is installed and the technology overhaul is enabled in Angel's Industries.

To Reproduce
Information to reproduce the behavior:

  1. 1.109
  2. mod-list.json

Screenshots
image

Additional context
I believe the root of the problem lies here, https://github.com/Arch666Angel/mods/blob/master/angelsindustries/prototypes/overrides/industries-override-functions.lua#L132-L143, because "kr-automation-core" matches the condition here it has datacore-processing-1 injected as a data core requirement, which causes a cascade of problems due to other prereqs.

Not sure if an appropriate fix, but I was able to solve the issue locally by adding this to global-tech-data.lua

  if mods["Krastorio2"] then
    for _, ignore in pairs({
      "kr-automation-core"
    }) do
      angelsmods.functions.add_exception(ignore)
    end
  end
@KiwiHawk KiwiHawk added Impact: Bug Something could be wrong Impact: Mod compatibility Mainly involves 3rd party mods Angels Industries (Technology mode) industries related with the technology overhaul labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Angels Industries (Technology mode) industries related with the technology overhaul Impact: Bug Something could be wrong Impact: Mod compatibility Mainly involves 3rd party mods
Projects
None yet
Development

No branches or pull requests

2 participants