We’ve all seen it, the spinning icon when you try to expand a node in the FarCry Site Tree. Not only is it damn annoying, it’s also hard to debug!
This problem doesn’t occur in FarCry 3 and greater, as much as it does in earlier versions, however, the Tree Inspector will help you resolve these issue.
It’s really simple to use. Grab the file, add it to the www folder of your FarCry project, and access it from your browser.
There’s one column per depth in the site tree, with the depths going from left to right. Problematic nodes are highlighted in red, so you can quickly and easily see the problems. There is a key at the bottom of the file, but it aims to highlight the following problems:
- Orphaned nodes. Those nodes that exist in the tree (dmNavigation table), but don’t have a refObjects table entry.
- Missing siblings. A common problem occurs when you delete an entire branch within the Site Tree. For whatever reason, all changes to the database aren’t always made and you have the problem where FarCry things there are still some siblings when there shouldn’t be.
Tree Inspector will also help you to directly fix problems. Next to each node, there is a checkbox; check it to see hidden fields in which you can provide new nleft and nright values. It’s a pretty handy tool which highlights problems immediately and allows you to fix them on the spot.
I must issue a warning however, you can do some real damage to your FarCry tree if you start mucking around with it before understanding how it works. So make sure you read up on the tree, the algorithm and make sure you understand it before playing with your nleft and nright values.