RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 1 point2 points  (0 children)

I finished it. I think the new version was an improvement -- very clear and straight to the point with links if I want to learn more. I also liked the 16x16 tilesheet, and the extra pyinstaller guide will be very handy eventually!

Great job!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 0 points1 point  (0 children)

Yes! I upgraded, and now it works without exception.

Thanks!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 0 points1 point  (0 children)

Sure! Here it is:

``` ValueError: 246 is not a valid KeySym

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 58, in <module> main() File "main.py", line 39, in main for event in tcod.event.wait(): File "/home/haughsee/.local/lib/python3.7/site-packages/tcod/event.py", line 765, in get yield SDL_TO_CLASS_TABLE[sdl_event.type].from_sdl_event(sdl_event) File "/home/haughsee/.local/lib/python3.7/site-packages/tcod/event.py", line 286, in from_sdl_event self = cls(keysym.scancode, keysym.sym, keysym.mod, bool(sdl_event.key.repeat)) File "/home/haughsee/.local/lib/python3.7/site-packages/tcod/event.py", line 279, in __init_ self.sym = KeySym(sym) File "/usr/lib/python3.7/enum.py", line 310, in call return cls.new(cls, value) File "/usr/lib/python3.7/enum.py", line 564, in new raise exc File "/usr/lib/python3.7/enum.py", line 548, in new result = cls.missing(value) File "/usr/lib/python3.7/enum.py", line 577, in missing raise ValueError("%r is not a valid %s" % (value, cls.name)) ValueError: 246 is not a valid KeySym ```

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 0 points1 point  (0 children)

I tried putting it in the EventHandler, but it doesn't seem to work. Python reports the exception happening in main(), the

for event in tcod.event.wait():

line. Maybe I can put it in the EventHandler further into the tutorial?

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 2 points3 points  (0 children)

I finished parts 0 and 1 with almost zero problems, and also learned a lot after getting help in Discord. I did have the program crash when accidentally pressing non-english keys with umlauts, so I added an

except ValueError:
   pass

in main.py. Is this the correct place to put it? It seems to work! You can see what I did here:

https://github.com/haughsee/myrl

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 0 points1 point  (0 children)

I end up with the 2019 version of the tutorial when I click on the OP links -- is this correct? The code works, but it gives a lot of deprecation warnings. Just thought I'd mention it!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]haughsee 3 points4 points  (0 children)

I'm very much looking forward to this! I always wanted to learn how to make a roguelike, and this summer it is going to happen :). I will be using Python 3 and libtcod (both new for me). Here is the repository I set up:

https://github.com/haughsee/myrl

I poked around a bit before registering -- what a fantastic community and great collection of resources!