This is a classic nerd's reductionist view of interpersonal interaction. You are not either a nice guy or a bad boy. Your personality has many more degrees of freedom than this. If it doesn't, then that may in fact be your problem.
Because there's an interesting effect in play here (this applies to both men/women): if you think other people don't like you, then the way you act towards will possibly cause that to be reality. On the other hand if you actually take an interest in others and try to get to know them, even the ones who were initially repulsed by you will have change of mind.
And, as the old saying goes (maybe it's not old, but I've seen it many times), the best way to be loved by people is to love people.
If you are doing it because you are living out a "covert contract", then people can smell that and it's not attractive.
Have a look-see at this: http://evolutionmale.wordpress.com/2011/03/06/nice-guys-aren...
(Not pointed at lukifer in particular, I'm sure he knows this already).
Without writing a novel on the subject, it helps to take a perspective lifted from evolutionary biology, and embrace your inner beast. It's possible to be too much of a nice guy.