The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Volka on July 21, 2005, 08:40:54 pm



Title: Problems with new characters
Post by: Volka on July 21, 2005, 08:40:54 pm
I'm in the middle of the process of translating the game to spanish and it is needed to add some new characters to the fonts.

I've read the threads about how to do this, however it doesn't seem to work for me, maybe I'm doing something wrong.

These are the steps I did to add a character,for example the begining exclamation mark  (¡)

1. Took a copy of the 33.png file (the exclamation mark !) and rotated it so that it looks like ¡
2. Then, looked up into to the Unicode charts inside Latin-1 (U0080.pdf)  and found that the character hexadecimal code is 00A1.
3. Made the conversion to decimal number (http://www.statman.info/conversions/hexadecimal.html) and got the number 161.
4. Renamed the new character file as161.pgn and place it in the comandr.fon folder.
5. Added some exclamation marks in the conversation text file and saved it in UTF-8  encoding (just by using Notepad, but also I tried a program called "Unifer" and got the same results)
6. When I run the addon and go the the Starbase, the game screws up and Commander Haydes asks me" Did you find any radioactive elements for our energy cores?". The answers are also screwed and the text and the sound files don't match correctly.

What's wrong then?


Title: Re: Problems with new characters
Post by: Novus on July 21, 2005, 09:32:04 pm
Sounds like your text file is messed up. Probably a blank line in the wrong place or some other extraneous garbage. If Notepad is placing a byte order marker (BOM) at the beginning of the file, remove it. Lopping the first three bytes off with a hex editor should do the trick. See also here (http://blogs.msdn.com/oldnewthing/archive/2004/03/24/95235.aspx).


Title: Re: Problems with new characters
Post by: Volka on July 21, 2005, 09:55:34 pm
Ah, evil Notepad!
I tried with TextPad and now it works.

Thanks dude :)