Once I'd figured it out however, it seemed trivial. I must be the world's biggest moron for being stuck on it so long. Real engineers would have it sorted in a few minutes. That's why there was no posting explaining it. I was just in over my head and it was my amateurishness showing. It should have been obvious.
If I write it up, it will just show my ignorance... so goes the pathology.