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

Shorten binarysearch tag and add link to tool #168

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tags/guide/binarysearch.ytag
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ type: text

---

A binary search can be used to quickly find a specific mod causing trouble, which can be especially useful when logs don't give a conclusive answer to your issue.
A binary search helps find a single mod causing trouble.

Start by removing or disabling half of your mods, then test if the problem still occurs. If it does, remove half of the remaining mods and test again. If it doesn't, add back half of the mods you just removed.
Remove or disable half of your mods. If the problem is gone, remove half of what's left and try again. If it's not, or it's a different problem, add back half of the mods you just removed.

Keep in mind you don't have to stick strictly to halves each time, and may have to enable some library mods like Fabric API out of order.
You don't have to do only halves each time, and may have to enable some dependency mods out of order.

By repeating this on an increasingly smaller set of mods, you'll find the problematic mod within a few iterations.
There's also a [tool](<https://github.com/skycatminepokie/FabricBinarySearchTool>) made by the community for doing this automatically. Keep in mind that this is *not* developed by the Fabric team, so please use caution.