What a Week!

It's been a great week.  The game turned out pretty well, I just wish it could have been more original.  I think I'm more creative in the software department than the game department.  I can live with that. :)

And then there's the fact the game has only two identical levels that barely contain anything!  The time I had set aside for content creation was eaten up by the desire to create a complete game and bug fixing.  I had a whole set of issues when it came time to load the next level.

But overall it's been a pretty amazing week!  I learned soooooooooooooooo much!!!

I look forward to playing all the games that were created for the competition.  They look pretty far out!

(log in to comment)


Thanks for the setup instructions! I had an error on Ubuntu that looks like a bug in the arcade library:

(env) christopher@paracosm:~/Downloads/pyweek/29/badwing-src$ time python3 run_game.py 
SoLoud dynamic link library /home/christopher/Downloads/pyweek/29/badwing-src/env/lib/python3.6/site-packages/arcade/soloud/libsoloud.so not found. /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/christopher/Downloads/pyweek/29/badwing-src/env/lib/python3.6/site-packages/arcade/soloud/libsoloud.so)
Warning, can't initialize soloud name 'soloud_dll' is not defined. Sound support will be limited.
Loading chipmunk for Linux (64bit) [/home/christopher/Downloads/pyweek/29/badwing-src/env/lib/python3.6/site-packages/pymunk/libchipmunk.so]
Traceback (most recent call last):
  File "run_game.py", line 6, in 
  File "/home/christopher/Downloads/pyweek/29/badwing-src/env/lib/python3.6/site-packages/arcade/sound.py", line 67, in stop
    if not soloud:
NameError: name 'soloud' is not defined

There's a simple fix if anyone else runs into this same error and you're okay running the game without sound. I added a line (line 18) to env/lib/python3.6/site-packages/arcade/sound.py so it looks like this:

except Exception as e:
    print(f"Warning, can't initialize soloud {e}. Sound support will be limited.")
    soloud = None
I owe you one bud!!!

That's a good fix.  You should submit it as a pull request to Arcade

I'm just going to comment out the play sound call.  I'm bummed but whatever ...

I decided to let the final version stand as it is and cross my fingers it doesn't affect a lot of people.

I also uploaded a nosound version with all the sound calls commented out.  I hope I got all of them.

Thanks again!!!

I get a different error: in arcade/PIL/munmap_chunk. Here's a traceback with faulthandler enabled:

$ python -X faulthandler run_game.py 
Loading chipmunk for Linux (64bit) [/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pymunk/libchipmunk.so]
munmap_chunk(): invalid pointer
Fatal Python error: Aborted

Current thread 0x00007f20331bb6c0 (most recent call first):
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/PIL/ImageFont.py", line 262 in getsize
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/PIL/ImageDraw.py", line 428 in textsize
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/PIL/ImageDraw.py", line 443 in multiline_textsize
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/arcade/text.py", line 191 in draw_text
File "/home/terka/pyweek/29/29/badwing/badwing-src/badwing/levels/start.py", line 158 in draw
File "/home/terka/pyweek/29/29/badwing/badwing-src/badwing/main.py", line 63 in on_draw
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/event.py", line 415 in dispatch_event
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/window/__init__.py", line 1327 in dispatch_event
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/app/base.py", line 324 in _redraw_window
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/app/base.py", line 306 in idle
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/app/base.py", line 183 in _run
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/app/base.py", line 171 in run
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pyglet/app/__init__.py", line 107 in run
File "/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/arcade/window_commands.py", line 250 in run
File "/home/terka/pyweek/29/29/badwing/badwing-src/badwing/main.py", line 89 in main
File "run_game.py", line 6 in <module>
Aborted (core dumped)




Seems like a PIL problem, mainly on Fedora.  Is that what your using?

Fonts need to be cached.  I thought Arcade was handling it but apparently they thought PIL was.  Lol.

I'll see if I can come up with a workaround.  Thanks!

Yes, I'm using Fedora.