Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Uppercase Polish characters for WoG/ERA
Thread: Uppercase Polish characters for WoG/ERA
Globtroger
Globtroger

Tavern Dweller
posted July 06, 2024 05:50 PM
Edited by Globtroger at 17:52, 06 Jul 2024.

Uppercase Polish characters for WoG/ERA

Hello everybody,

I'm working on a mod for ERA with the intention of supplying a polish translation for my custom scenarios and scripts. I've been trying to figure out how to get polish fonts to display in the game and so far I figured out the following:

1) You need to replace default Cyrillic fonts with the European ones, which I've done.

2) You need to input the polish characters in the following way: ¹ æ ê ³ ñ ó œ Ÿ ¿

...and they will appear correctly in the game

So that's all fine and well except I have no clue how to display the uppercase version of all of these. Figuring out the small case was easy because I could just look at how they were typed in the standard homm3 maps, but uppercase are less common and would need to be in a sentence starter.

I found this link from years ago:
https://www.forumweb.pl/poczatkujacy-webmaster/polskie-znaki,198

Which suggested that the uppercase will be something like: ¥ Æ Ê £ Ñ Ó Œ ¯ but I've been getting no luck. Just a bunch of nonsense is coming out.

I've tried asking on the discord server but not a lot of people were able to help me with font related trouble. Thought there might still be some old heads out here who would know.

Please help!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Globtroger
Globtroger

Tavern Dweller
posted July 06, 2024 06:31 PM
Edited by Globtroger at 18:39, 06 Jul 2024.

Edit: I'm very close to figuring it out. The solution is you have to place the text with special characters in json and get with SN:T with ERM. Just using IF:M by itself will not produce the desired outcome.

And so it turns out these chars: ¥ Æ Ê £ Ñ Ó Œ � ¯

Do actually work to produce polish special letters but I'm missing one as the question sign character didn't work. I don't think it's visible here on this forum as it's prob not supported but you can see it if you follow my previous link.

This leaves me with the quest to find the last missing letter...

Edit: Damn it, that question mark character is a replacement block for unknown chars. The poster on that forum posted the right chars but the forum didn't recognise one of them and so it's lost...

I guess it's just trial and error now...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Globtroger
Globtroger

Tavern Dweller
posted July 06, 2024 07:31 PM

By dumb luck, the guy that posted on that forum happens to be the admin and is still active. I wrote to him in hopes that he'll write back...

The quest for the missing letter will go on hold for the time being, maybe he'll write back. Big hopes.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
baronus
baronus


Legendary Hero
posted July 07, 2024 10:37 AM

What you produce? We have all fonts inside lod file? Only problem was too big size. Use Hota Polish fonts becouse was corrected.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Globtroger
Globtroger

Tavern Dweller
posted July 07, 2024 10:44 AM
Edited by Globtroger at 11:16, 07 Jul 2024.

They weren't corrected. I downloaded the polish translation for 1.7 hota from here:

https://www.hota.acidcave.net/newsitem1929.html#1929

And the fonts were the same ones that were used in older wog versions. Standard hota fonts were no good as well as they contained Cyrillic chars instead of European ones.  Anyway, fonts aren't my problem now. I've got all the fonts that I need. I just need to know how to get the game to display the characters...

It's not so simple. You have to feed them in a specific way. I figured out all of them with the exception of this one:

https://en.wikipedia.org/wiki/%C5%B9

I'm still waiting for reply from the other guy on the forum but it's not a big deal either way. Luckily, it's a very uncommon character in practical use.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Globtroger
Globtroger

Tavern Dweller
posted July 07, 2024 12:12 PM

Okay, I found the answer. It's to do with character encoding. Polish special characters are in UTF-8, homm3 uses ANSII win-1251 encoding. So you need the chars in ansii.

The ansii for the missing character is <0x8f>

So full polish char map is:

¹ æ ê ³ ñ ó œ Ÿ ¿ ¥ Æ Ê £ Ñ Ó Œ <0x8f> ¯

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
baronus
baronus


Legendary Hero
posted July 07, 2024 08:20 PM
Edited by baronus at 13:03, 08 Jul 2024.

baronus

Its imposible. They told that font was reduced because our version was too big since 1999... It was repaired...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Bersy
Bersy


Honorable
Supreme Hero
posted July 08, 2024 06:14 PM

The game uses the encoding (code page) set in windows settings for non-unicode programs. For Russian it's Windows-1251. Maybe Windows-1250 is used for Polish.

https://en.wikipedia.org/wiki/Windows-1250

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0390 seconds