How many times have you tried to stick to your dieting regimen? How many times have you tried to lose the weight? How many times have you lost the weight but not kept the weight off? How many times have you tried to change yourself to make all of this happen?
Lots of tries and not succeeding are to be expected. Changing a habit means trying and not succeeding, at least not at first.
But it's not "tries" alone that make the difference, just like it isn't time passing that makes us grow up. It's our experiences. It's what we do with our time. And the same is true of weight loss.
What are you doing with your "time"? How are you working on overeating and staying overweight? If losing the weight and keeping it off for good is a struggle you are having, then time spent on correcting these problems must include re-learning experiences which will do the most for you.
In any form of habit change, weight loss included, your work is mostly mental. This means you'll have to find ways of changing your old habits so they don't interfere with such mental activities as your persistence, motivation, impulse control, self-confidence, etc.
Make time and your efforts work for you. Don't make the mistake of thinking you can solve things by yet another diet, or by doing again what didn't work for you before. Remember, dieting, losing the weight, and keeping it off are mostly mental, and that's what you have to change over time--your mindset.