Whatever works! IMHO having something to look forward to is the key.
Something the OP didn’t mention is exercise. Getting fit helps a lot. Looking good and feeling stronger are motivating, builds healthy routines and helps to keep the weight off in the long term.