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

Fix belt (backup) detection #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Laar
Copy link

@Laar Laar commented Jan 10, 2024

Combination of hardening the walk over technologies and fixing the backup case to be more robust against adding slower belts.

I've tested the backup generation by loading a bobs + angles while manually disabling the technology detection. The latter was done by adding a and false in one of the if statements.

Laar added 2 commits January 10, 2024 10:40
Loading with Bobs & Angles caused a crash on a nil at this point.
The previous implementation had several issues:
 * The slowest belt detection was broken
 * It always created a prerequisite on the upgrade of the external
   connections to the previous tier of belt, even if this was the
   slowest belt tier.

This change reworks the creation by creating an ordering of the belts by
speed. The first entry is the slowest and thus does not need an upgrade,
the sencond one does not need a prerequisite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant