Driver issue bugfix
Some people have reported getting a plain brown screen in What The Frog?!
I couldn't reproduce the problem, because it is driver related and it works fine with my drivers.
Many thanks to rdb who spent an hour working through the problem with me. Ultimately we think it is this one-line fix - but to make it easier I've re-packed the release and uploaded it to GitHub (which includes another commit that may or may not do nothing).
Apologies, and good frogging!
(log in to comment)
mauve on
2019/04/02 14:29:
Ah, that issue is just git usage. It's a submodule in git, and they don't get checked out automatically. Just run:(See https://git-scm.com/book/en/v2/Git-Tools-Submodules)
mauve on
2019/04/02 14:53:
Try replacing #version 130 with #version 120 (in a couple of places, I think).If that doesn't work I created a no-fbo branch that doesn't have the fancy water effects.
mauve on
2019/04/02 17:45:
Oh, might need the same thing (#version 120) in the no-fbo branch.The underlying issue is that your graphics drivers or hardware is not very up-to-date. I thought GLSL 1.30 was being pretty conservative but your drivers only support 1.20. The latest is version 4.60.
import wtf.main
File "/home/paul/pyweek27/unzip/git/what-the-frog/wtf/main.py", line 219, in <module>
water_batch = WaterBatch(mgl)
File "/home/paul/pyweek27/unzip/git/what-the-frog/wtf/water.py", line 84, in __init__
''',
File "/home/paul/.local/lib/python3.6/site-packages/moderngl/context.py", line 777, in program
varyings
mgl.Error: GLSL Compiler failed
vertex_shader
=============
0:4(2): error: `in' qualifier in declaration of `vert' only valid for function parameters in GLSL 1.20
mauve on
2019/04/02 18:14:
(╯°□°)╯︵ ┻━┻Sorry, I'll have to port it if you need GLSL 1.20 support.
What is your GPU?
capturts on
2019/04/02 18:32:
It's fine. I used a different computer and got it working!
mauve on
2019/04/02 18:34:
Wonderful!
Phantasma on
2019/04/05 04:35:
I am getting This error when i try to run the game.My computer runs an ATI Radeon HD 5570 Graphics card. If that is the issue I cant play it.
Traceback (most recent call last):
File "C:/Users/Phantasma/PycharmProjects/what-the-frog-1.0.1/run_game.py", line 95, in <module>
import wtf.main
File "C:\Users\Phantasma\PycharmProjects\what-the-frog-1.0.1\wtf\main.py", line 42, in <module>
height=round(HEIGHT * PIXEL_SCALE)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\window\win32\__init__.py", line 134, in __init__
super(Win32Window, self).__init__(*args, **kwargs)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\window\__init__.py", line 571, in __init__
self._create()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\window\win32\__init__.py", line 266, in _create
self.context.attach(self.canvas)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\gl\win32.py", line 267, in attach
super(Win32ARBContext, self).attach(canvas)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pyglet\gl\win32.py", line 212, in attach
raise gl.ContextException('Unable to share contexts')
pyglet.gl.ContextException: Unable to share contexts
mauve on
2019/04/05 07:31:
I have not seen that issue before, but there are a few results on Google that suggest it is specific to some Intel graphics drivers. Have you tried updating your graphics drivers?
mauve on
2019/04/05 07:31:
Oh, you said your card is an ATI...
Phantasma on
2019/04/05 18:29:
my graphics card is up to date.