Skip to content

Documentation for common errors #3411

Closed
Closed
@LittleBread69

Description

@LittleBread69

Pygame to Pygame-CE

I noticed that there isn't any documentation for people who are transitioning from Pygame to Pygame-CE. I know that the vast majority of Pygame code runs perfectly with Pygame-CE, but the point would be to have a section that can help some developers, especially the less experienced ones, to use the optimised functions of Pygame-CE, or simply to get them away from deprecated features. As mentioned for example in #3239 .

Documentation for common errors

Oftentimes, when an error popped up, a quick search would give back no results. And, even though this might not be of everyone's interest, making a section in the documentation for common errors and how to fix them would be a great way to remove hassles.

As an example, after a lot of trial and error, I found that modernGL doesn't work on MacOS unless you specify in Pygame-CE certain attributes:
pygame.display.gl_set_attribute(pygame.GL_CONTEXT_MAJOR_VERSION, 4)
pygame.display.gl_set_attribute(pygame.GL_CONTEXT_MINOR_VERSION, 1)
pygame.display.gl_set_attribute(pygame.GL_CONTEXT_PROFILE_MASK, pygame.GL_CONTEXT_PROFILE_CORE) #this one is not necessary, but it fixes some other issues.

Again, this is just one case but it could help a lot of devs struggling with errors that are already solved by many others.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions