Rrrrrrr, need help on this one.

Seems I have spark now. The middle blue wire on the alternator was getting hot, smoking a little. I have no damn clue what’s going on.