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)
Comments
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 also uploaded a nosound version with all the sound calls commented out. I hope I got all of them.
Thanks again!!!
$ python -X faulthandler run_game.py
Loading chipmunk for Linux (64bit) [/home/terka/pyweek/29/venv/lib64/python3.7/site-packages/pymunk/libchipmunk.so]
show_scene
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)
Read
https://github.com/pvcraven/arcade/issues/517
https://github.com/python-pillow/Pillow/issues/4225
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!
Cosmologicon on 2020/03/29 21:14:
Thanks for the setup instructions! I had an error on Ubuntu that looks like a bug in the arcade library:
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: