Page 1 of 1

Error when saving the game with Polish alphabet symbol

Posted: Mon Aug 20, 2012 9:01 am
by adin
It's not much, just some small problems. :P
I just wanted to save the game by MENU>Save... and I wanted to use Polish letters (ć in this case). I entered and I was informed about an error, here is a .log file:

Code: Select all

Traceback (most recent call last):
  File "uoc.py", line 151, in <module>
  File "widgets\app.pyo", line 33, in Run
  File "widgets\root.pyo", line 651, in Mainloop
  File "widgets\base.pyo", line 231, in Handle
  File "widgets\controller.pyo", line 157, in handle_event
  File "widgets\controller.pyo", line 147, in _dispatch
  File "widgets\stdz.pyo", line 747, in OnKey_typing
  File "common.pyo", line 471, in ctrl_char
ValueError: chr() arg not in range(256)
Traceback (most recent call last):
  File "uoc.py", line 151, in <module>
  File "widgets\app.pyo", line 33, in Run
  File "widgets\root.pyo", line 651, in Mainloop
  File "widgets\base.pyo", line 231, in Handle
  File "widgets\controller.pyo", line 157, in handle_event
  File "widgets\controller.pyo", line 147, in _dispatch
  File "widgets\stdz.pyo", line 747, in OnKey_typing
  File "common.pyo", line 471, in ctrl_char
ValueError: chr() arg not in range(256)


As I said, don't mind it much, but it is annoying, I lost good progress (I think :twisted: )
So, maybe some warning in Save... menu?

Re: Error when saving the game with Polish alphabet symbol

Posted: Mon Aug 20, 2012 12:58 pm
by Tomislav Uzelac
Aw, sorry about losing progress. :oops:

It's a bug alright, any non-ascii character combined with CTRL will trigger it apparently. I'm wondering why you were pressing CTRL though. Wikipedia suggests that to get ć on a Polish keyboard, you press AltGr+c.

http://en.wikipedia.org/wiki/Keyboard_layout#Polish

AltGr+c does not crash the program on my machine, only CTRL does. Can you please double check which keys you were pressing exactly.

Thanks!

Re: Error when saving the game with Polish alphabet symbol

Posted: Fri Aug 31, 2012 7:20 am
by adin
Thanks for the reply, Tomislav! I checked again the problem, and once again I got a crash :(

I'm wondering why you were pressing CTRL though.

I haven't touched the CTRL key, just AltGr+c and:

Code: Select all

Traceback (most recent call last):
  File "uoc.py", line 151, in <module>
  File "widgets\app.pyo", line 33, in Run
  File "widgets\root.pyo", line 651, in Mainloop
  File "widgets\base.pyo", line 231, in Handle
  File "widgets\controller.pyo", line 157, in handle_event
  File "widgets\controller.pyo", line 147, in _dispatch
  File "widgets\stdz.pyo", line 747, in OnKey_typing
  File "common.pyo", line 471, in ctrl_char
ValueError: chr() arg not in range(256)


Same problem with AltGr+o, AltGr+l etc. Or maybe is it the fault of the keyboard language, Im using Polski (programisty), checked Polski (214) but when pressed AltGr+c nothing happened.

Re: Error when saving the game with Polish alphabet symbol

Posted: Sun Sep 02, 2012 5:51 pm
by Tomislav Uzelac
I fixed this so it doesn't crash regardless (fingers crossed). It will be released with the next version (1.04) when it comes out. Thanks for the report.

Behavior with the "programmer" layout is indeed weird. It generates a CTRL event on our side as can be seen in your crash log - even though you're not pressing CTRL at all. Again, I believe with the next version it won't crash, but I'd be interested to know if ć, ł, ó etc. work correctly for you. If you remember to check this out after we release 1.04 please just post in this thread.

Re: Error when saving the game with Polish alphabet symbol

Posted: Mon Sep 03, 2012 5:45 am
by adin
Thanks for your help Tomislav. Like I said it isn't too disturbing but in a lil' dangerous to the players from my country, you know. ;)

Tomislav Uzelac wrote:If you remember to check this out after we release 1.04 please just post in this thread.

Sure thing, I look forward to the next version and I will check this for sure.

(will edit this post after the 1.04)