You have a problem with not thinking highly enough of yourself if you stick around taking the crumbs from a guy that doesn't want you the way you want him.
My advice is for you to go no contact with him, let him get on with his life with the woman(women) he chooses and you leave him out of your life while you work on yourself and your confidence so that you'll immediately distance yourself both physically and emotionally from anyone who doesn't want what you want. Settling only gets you to the place where you're hurting the way you do now. He's not a bad guy, he told you outright that he couldn't give you what you crave... that is when you should have told him that you'll not be hanging out with him anymore because you need to neutralize your feelings for him so that you'll be open to meeting someone that DOES want a relationship with you. Even if you didn't outright tell him all that, you should tell the most important person that very thing. That most important person is You. Look after your own emotional health from here on in and don't trust to give your heart to anyone who has outright told you they don't want it.
Sorry you're hurting, with zero contact, you will feel better much sooner.
“The willingness to accept responsibility for one’s own life is the source from which self-respect springs.” ~Joan Didion