The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2024, 08:31:29 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Problem: /comm font doesn't recognize non-English characters
« previous next »
Pages: [1] Print
Author Topic: Problem: /comm font doesn't recognize non-English characters  (Read 2458 times)
Arael
Zebranky food
*
Offline Offline

Posts: 39


Utwig wearing a mask of Spiky Featherness


View Profile
Problem: /comm font doesn't recognize non-English characters
« 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?


« Last Edit: March 28, 2007, 11:13:57 pm by Arael » Logged

. . .
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problem: /comm font doesn't recognize non-English characters
« Reply #1 on: March 29, 2007, 12:05:14 am »

Send me something which triggers the crash, and I'll take a look.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Arael
Zebranky food
*
Offline Offline

Posts: 39


Utwig wearing a mask of Spiky Featherness


View Profile
Re: Problem: /comm font doesn't recognize non-English characters
« Reply #2 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.
Logged

. . .
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problem: /comm font doesn't recognize non-English characters
« Reply #3 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Arael
Zebranky food
*
Offline Offline

Posts: 39


Utwig wearing a mask of Spiky Featherness


View Profile
Re: Problem: /comm font doesn't recognize non-English characters
« Reply #4 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.
Logged

. . .
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problem: /comm font doesn't recognize non-English characters
« Reply #5 on: March 29, 2007, 01:20:36 am »

That's still not good. Could you send me a file that triggers this?
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Arael
Zebranky food
*
Offline Offline

Posts: 39


Utwig wearing a mask of Spiky Featherness


View Profile
Re: Problem: /comm font doesn't recognize non-English characters
« Reply #6 on: March 29, 2007, 03:46:39 am »

I'll try to recreate the problem and send you the files tomorrow.
Logged

. . .
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!