
Help with character F7

King Karolus
Posts: 1233
Joined: 01 May 2006, 22:00
Website: http://www.knightsandmerchants.net
Location: Finland
Basically, the 7F character is a non-breaking space, if you are familiar with HTML, it serves the same function as the character. More to the point, putting a non-breaking space between two words makes it impossible for a line break to occur between those two words, which then can be used to bypass the empty lines in messages bug.
I've written into my notes that at 800x600 resolution, there has to be a space of at least 18 pixels between the buttons (go to, delete and close) and the message text. If the space is between 17-15 pixels (I'm not sure if 15 is the exact amount as I haven't written it down), an empty line will appear and the text will then continue on the next line. However if it's less than 15 (again, not completely sure on the amount), the message formatting will work correctly and there won't be an empty line.
These values vary when changing the resolution, making it a real pain to have the messages correctly formatted on all resolutions. For 1024x768, 1280x900 and 1280x1024 the minimum amount of space between the buttons and the text is 8 pixels. Again, I'm not sure about the interval wherein the formatting will mess up.
Usually, I just took a screenshot and then used paint to check how many pixels there were between the buttons. Ideally someone would check how many pixels a line is allowed to have at each resolution without glitching and also check the interval at which the glitching occurs. Then the width of all characters should be set into a database that a tool could read and it could then use this to automatically format the messages.
But the remakes are a lot more user friendly way to bypass this horrible bug.

EDIT: One thing I forgot to mention that might be worth noting is that the 7F character is actually one pixel smaller (7 pixels) than a normal space (8 pixels).

King Karolus
Posts: 1233
Joined: 01 May 2006, 22:00
Website: http://www.knightsandmerchants.net
Location: Finland
Help with character 7F
Thanks.

King Karolus
Posts: 1233
Joined: 01 May 2006, 22:00
Website: http://www.knightsandmerchants.net
Location: Finland
If you're lucky, the message will work fine at all resolutions. If you're not so lucky, there will be an empty line somewhere in the message.
I urge you to not use any 7F bytes yet. Just finish the messages using normal spacing and then test them in-game. If you see an empty line in one of the messages that you didn't plan to have there, take a screenshot of it and post it here.
EDIT: What program are you using to translate? Something you created on your own, Lewin's editor or a hex editor?

Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
http://lewin.namsys.com.au/kam/index.php?go=knights_and_merchants_editor_map2bitmap
Scroll down and choose the latest version to download it.
Thanks.

King Karolus
Posts: 1233
Joined: 01 May 2006, 22:00
Website: http://www.knightsandmerchants.net
Location: Finland
However like I said, first create the messages without any 7F bytes. When you test them in-game, screenshot any message you find with an out of place empty line and upload it so I can see it. This will make it easier for me to explain the function of the 7F byte.

King Karolus
Posts: 1233
Joined: 01 May 2006, 22:00
Website: http://www.knightsandmerchants.net
Location: Finland
Who is online
Users browsing this forum: No registered users and 6 guests