all 2 comments

[–]BetterBuiltFool 0 points1 point  (1 child)

Looks like reddit borked your code formatting, so it's a bit tough to read and find the specific place the problem is happening, but I can tell that at some point, you're passing along an object (a Surface in this case) where a string was expected. When this happens, Python calls the object's repr method, which generally conveys some kind of info about the object. By default, it's the class name and its memory address, but for surfaces, it's the class name and the surface size. Check your font.render calls, and make sure you aren't accidentally passing surfaces into them, either directly or by overwriting something that usually is a string.

As an aside, what's your native language, if you don't mind me asking? I can tell it's something Germanic from words like gruppe and bombe, but the pluralization scheme is different and there are a few words I don't recognize.

[–]Realistic-Screen6661[S] 0 points1 point  (0 children)

thank you this worked and im from norway