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)

Comments

No matter what I do, I keep getting "No module names 'earcut'".

I tried on the git version.
Ah, that issue is just git usage. It's a submodule in git, and they don't get checked out automatically. Just run:


git submodule init
git submodule update

(See https://git-scm.com/book/en/v2/Git-Tools-Submodules)

Oh, no. Now I just get:
0:2(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

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.

I tried replacing the 130 with 120 - there were 4 over 2 files.king But that leads to a different error.

I tried checking out the no-fbo, but it just leads to the:
0:2(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
Error again.

I'm sorry to be a pain - this game had better be the best game ever with all this effort ;)
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.

Now I get:

Traceback (most recent call last):
  File "run_game.py", line 95, in <module>
    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

(╯°□°)╯︵ ┻━┻


Sorry, I'll have to port it if you need GLSL 1.20 support. 

What is your GPU?

It's fine. I used a different computer and got it working!
Wonderful!
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


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?
Oh, you said your card is an ATI...
my graphics card is up to date.