After gaining and losing and gaining and losing (and now stable at a decent weight), what I finally learned was this. You can't hate yourself into motivation. Or do it for anyone else. You will only succeed when you do it out of a commitment to be good to yourself and cherish yourself. Because then food is not nearly as likely to trigger all those dysfunctional "I deserve it, "I need it," etc. responses. Instead it's far easier to make better choices and stick to a plan because you're acting based on what will respect, cherish and nourish you, body and soul.
Nobody's committment to a change is consistent though. This forum is a good way to reach out. There are also on-line tools specifically to help keep up better-eating motivation ( like www motivationtogo.net).
Good luck and wishes for much success - you're worth it