I did it! It's working! It's fucking working!
I'm not entirely sure what the problem even was, now that I come to think of it. I had spent some time poring over it, but I didn't actually change anything. One minute it wasn't working, and the next minute it was. Maybe I secured some loose connections or something? Oh, well. The important thing is that I got it working.