Page 1 of 1

PySuite Tech Tree Fix (Request)

Posted: Sun Feb 02, 2020 11:55 pm
by Mecejide
A mod that changes the tech tree of the PySuite by adding prerequisites to techs, moving recipe unlocks, and adding new techs if necessary so that firstly, you cannot start researching a recipe unless you have researched recipes for all the science packs required for it, and secondly, you cannot research a recipe unless you have researched recipes for all its ingredients. For example, it would move the recipes for Salt Water Electrolysis, Fiberboard, Melamine Resin, Formica, and the Printed Circuit Substrate 1 and the automatable recipe for the Circuit Board 1 to Coal Processing 1 because all of them except Salt Water Electrolysis require either Treated Wood or Formaldehyde, both of which are unlocked by Coal Processing 1, and Salt Water Electrolysis is initially required for Fiberboard, and make automation a prerequisite of Coal Processing 1 because the Automated Factory recipe unlocked by it requires assembling machine 1s, which are unlocked by automation.

Re: PySuite Tech Tree Fix (Request)

Posted: Tue Feb 04, 2020 2:17 pm
by darkfrei
For example:

Code: Select all

recipe["automation-science-pack"].enabled_in_technologies = {"basic-mining", "improved-equipment"}
It looks like that this recipe is enabled in this two technologies, what here must be used?
code

Re: PySuite Tech Tree Fix (Request)

Posted: Wed Feb 26, 2020 8:35 pm
by darkfrei
Mecejide wrote:
Sun Feb 02, 2020 11:55 pm
A mod that changes the tech tree of the PySuite by adding prerequisites to techs, moving recipe unlocks, and adding new techs if necessary so that firstly, you cannot start researching a recipe unless you have researched recipes for all the science packs required for it, and secondly, you cannot research a recipe unless you have researched recipes for all its ingredients.
The second try, but it's real difficult to get the right tech tree automatically.