I would like to ask something about the master program. I'm a student from one of the BRICS countries (Brazil, Russia, India, China and South Africa) and I have a bad GPA and an undergraduate history full of fails in the basic subjects like linear algebra and calculus. I have 22 fails on subjects and five of them have grades close to zero. My mean grade, concerning all the subjects that I have done until now, is 5.0 (in a 0-10 scale)
On the other hand, I've completed years of scientific projects in my undergraduate research area (these projects are sponsored by government) and I intend to publish at least two scientific papers in the next few years, before I conclude my undergraduate course. I've participate in various scientific meetings, too. So if you open my CV you will find more things than an average student; despite all of this, as I said, I simply have really bad grades.
Now, I would like to do a Master's degree or a PhD abroad. Obviously, due to my grades I'm in a bad position, but I know that some universities in Germany do not select the candidates by the grades just by the curriculum. I don't know...
I would like to ask: which kind of university does not select the candidates by the grades on undergraduate history? In general, what should I do?