The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Arael on March 28, 2007, 11:11:08 pm



Title: Problem: /comm font doesn't recognize non-English characters
Post by: Arael on March 28, 2007, 11:11:08 pm
Recently I've decided to pick up the long-abandoned Polish translation project and finally complete the damn thing.
One of the necessary things I need to do is add the Polish characters (ąćęłńóśźż).

As far as I know, the procedure is as follows:

- find out the codes of the non-English characters
- make necessary modifications to the English characters (e.g. o -> ó) and save them under the appropriate file name (243.png in this case)
- translate or modify the dialogue text to include the newly-made characters, save it in UTF-8, check for BOM
- put the finished characters and dialogue into the appropriate directories of the content.uqm file

This is how I did it back in the 0.5.0 version, and it worked perfectly.

Fast forward fo 0.6.2:
using the above procedure to:
translate slides/intro/intro.txt - OK, does not display new characters (as expected)
slides/slides.fon - OK, tested, displays perfectly
lbm/starcon.fon - OK, displays perfectly - all new characters are displayed in both fonts

The problems start:
added new characters to comm/urquan/urquan.fon:
modified comm/urquan/urquan.txt to include new characters ("Attention ąćęłńóśźż, heed this...")
game crashes at the beginning of this text
restored urquan.txt - works, nothing broken with English characters
changed urquan.txt minimally ("Attention interlóper...")
game works, but the new character isn't recognized ("Attention interl" displayed)
Oh yes, and I have made the character anew, double-checking everything. No change.

So what am I doing wrong? The procedure seems to work (as evidenced by the 2 previous fonts), it used to work in 0.5.0 (on the Kzer-Za font), so what's the problem? Are the fonts handled differently in 0.6.2 or what?




Title: Re: Problem: /comm font doesn't recognize non-English characters
Post by: meep-eep on March 29, 2007, 12:05:14 am
Send me something which triggers the crash, and I'll take a look.


Title: Re: Problem: /comm font doesn't recognize non-English characters
Post by: Arael on March 29, 2007, 12:27:49 am
Never mind, it turned out that I accidentally switched the encoding -_-'

Thanks for making me recreate the file, meep-eep.


Title: Re: Problem: /comm font doesn't recognize non-English characters
Post by: meep-eep on March 29, 2007, 12:49:42 am
When you say "crash", do you mean you got a segmentation fault/general protection fault, or did UQM abort with an error message? The former should never occur, no matter how bad the input file.


Title: Re: Problem: /comm font doesn't recognize non-English characters
Post by: Arael on March 29, 2007, 01:13:41 am
Just quit with a "an error occured within UQM.EXE and it will be shut down" or some such. Not a system-wide crash.


Title: Re: Problem: /comm font doesn't recognize non-English characters
Post by: meep-eep on March 29, 2007, 01:20:36 am
That's still not good. Could you send me a file that triggers this?


Title: Re: Problem: /comm font doesn't recognize non-English characters
Post by: Arael on March 29, 2007, 03:46:39 am
I'll try to recreate the problem and send you the files tomorrow.