Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

did all the steps, got this error #47

Closed
Yell038 opened this issue Mar 11, 2023 · 6 comments
Closed

did all the steps, got this error #47

Yell038 opened this issue Mar 11, 2023 · 6 comments
Assignees

Comments

@Yell038
Copy link

Yell038 commented Mar 11, 2023

Traceback (most recent call last):
File "C:\Users\exampleuser\funnystuff\PydayNightFunkin\run.py", line 38, in
main()
File "C:\Users\exampleuser\funnystuff\PydayNightFunkin\run.py", line 34, in main
Game(2 - result.less_debug).run()
File "C:\Users\exampleuser\funnystuff\PydayNightFunkin\pyday_night_funkin\main_game.py", line 176, in init
cygl.initialize(gl)
File "pyday_night_funkin\core\graphics\cygl\gl.pyx", line 126, in pyday_night_funkin.core.graphics.cygl.gl.initialize
f(<size_t>ctypes.addressof(getattr(module, name)))
TypeError: invalid type

@Square789 Square789 self-assigned this Mar 12, 2023
@Square789
Copy link
Owner

Thanks for reporting!
This error hints at a required OpenGL function missing, and that uncovered a pretty embarassing oversight: I haven't been specifying the needed OpenGL version to pyglet for the past two years. Just been getting a default 3.3 profile with all the required functions in it through sheer luck with extensions.
Run git pull and try again, c261708 hopefully fixes it.
If it doesn't, please post the output of python -m pyglet.info and maybe try updating your GPU drivers. If your GPU is older than around 10 years it is unlikely to support 4.5, sadly.

@Square789
Copy link
Owner

Yeah oops, there was more to it than that, i am not a good developer.
654d6f7 probably is closer to fixing it, i would really love to hear if it does or doesn't work out for you!

@Yell038
Copy link
Author

Yell038 commented Mar 28, 2023

i don't think i'm doing this right, but i pasted the code from the commits (too much of an idiot to learn how git pull works) and i got hit with the same error. and intel hd graphics 510 runs opengl 4.6 so i'm not sure what i'm doing wrong lol

oh wait now it says no module found named "pyglet" i'm so confused rn

@Yell038
Copy link
Author

Yell038 commented Mar 28, 2023

alright just installed pyglet and this is what i got after running python -m pyglet.info
bruh.txt

@Square789
Copy link
Owner

I'm not seeing anything that should fail in there. Remember that since the extension source has changed you'll need to recompile the extensions via the setup.py build_ext -i command.
Follow the steps in the README from 2. or 3., it should by all means work.
Your local repo may be wrong since you manually copypasted commits in; if nothing else works, maybe try deleting the entire directory and redownloading the project.
And thanks for sticking around here, considering the project's puny scope when compared to the mainstream engines it means a lot.

@Yell038
Copy link
Author

Yell038 commented Mar 28, 2023

yeah, it's working now, thanks!!
it's actually really accurate to the base game, minus the menu transitions and the text size and placements n stuff.

btw yeah you're welcome! i felt like trying a new engine absolutely for fun, so i found this on funkin-resources and gave it a go, ig

and the fact that this was made in python was really interesting, i don't usually see actual GAMES made from python, usually just scripts.

thanks for your help! this was fun to compile with your help lol

@Yell038 Yell038 closed this as completed Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants