Hello, as some of you may know i'm trying to get a rather big set of mods working together (in my name).
The biggest issue so far has been MSP-30, which has made way too many tech cycles in my tree. (tech cycles mean that for example a tech needs a pack which has not been yet unlocked) Basocally softlocking my game.
So I've started to make a solver which would fix the tech cycles. The idea in a nutshell is that:
- It finds a technology which unlocks some MSP-30 pack
2.It deletes said pack from the tech's cost it found the unlock in, and also from each and every one of the prerequisites of the tech. So even the prereqs of the prereqs and so on.
3.Done.
And for whatever reason, my code doesn't work. Hence this thread, code will be below. All code would be in the same file: data-final-fixes, but i've split it up the code in to parts so discord doesn't complain about the size.