I finally caught up with you; not that I have anything useful to say (probably). I would like to commend you on the excellent job you are doing. You are doing what you need to do, getting your own life on track without her. This isn't about you anymore, it's about your wife and her own selfish needs. You could be the perfect guy and you still wouldn't be her choice because she is looking for something else...something more destructive I think (even though she doesn't recognize this). I'm glad you have the kids. I'm a little surprised that you even have her daughter...speaks volumes about your wife's priorities. Just be patient. Keep focusing on the best for yourself and your children. Keep being friendly, but detached. It's possible in time she'll realize what a mess she made of her life, and who knows, maybe you'll even give her another chance....
You cannot be lonely if you like the person you're alone with. Dr. Wayne Dyer