Current time: 22.11.2024, 19:50 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Плагины. Обсуждение
» Plugins. Discussion & Questions
Author Message
Berserker Offline
Administrators

Posts: 16657
Post: #121

Archer30, ok, I see. Without WND zvslib.dll is drawing options window using Win32 API and custom font settings. It uses Windows fonts and do not load Heroes 3 fonts at all.
Igrik rewritten the dialog from scratch using Heroes 3 dialogs system. There each label/text must have H3 font name. "medfont" was small (?), so igrik used bigfont for main window.

igrik, для окна с приветствием medfont был слишком малым?


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
16.09.2020 15:46
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #122

Ah, I see. Thanks Berserker. I believe igrik chose big font for home page as it has the best looking for Rus/Eng. Just for Chinese/Korean it looks a bit funny.
My medfont.fnt and smallfont.fnt come with Chinese plugin are exactly the same, although they have hzk12 and hzk10 for different Chinese character sets.

If I get to choose, the ideal font size in wog menu home page would be

Red -> Shrink to med font (is it the same as blue?)
Yellow -> Stay the same


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 16.09.2020 16:32 by Archer30.)
16.09.2020 16:21
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #123

BigFont
Image: BigFont.jpg

MedFont
Image: MedFont.jpg

Конечно же визуально BigFont смотрится лучше.


game bug fixes extended.dll || My Plugins || My GitHub
16.09.2020 16:27
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #124

Archer30, I think the main issue is that Chinese bigfont is too big. It must be much lower in pixels height as I see.
We need extra fonts/conversion tools to generate smaller fonts.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
16.09.2020 16:52
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #125

I agree with you Berserker, the 28x25 font is generally too big for most situation, although it comes from official Chinese SoD, and fits quite well specifically for places it's been used.

Can I ask if you have any idea how hzk files should be edited/made?

But I probably still need help from igrik. I mentioned that I tried to replace hzk24 with a duplicate of hzk12 in my post yesterday, and it did not end up well.
Support from WoG Native Dialogs seems to be required (or not?


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 16.09.2020 17:31 by Archer30.)
16.09.2020 17:03
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #126

Archer30, to solve the issue we need:
1) Fixed Chinese plugin font size detection.
2) Provide smaller alternative to current font.

As a quick and dirty solution igrik could compile wnd.dll with bigfont2.fnt string replaced with medfont2.fnt.

Quote:official Chinese SoD
I thought, there was no official Chinese SoD and thus no fonts.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
16.09.2020 17:29
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #127

Berserker, hmmm the main concern is not sure whether the source code matches with the plugin we use. If you can kindly compile one from the source I will see if it has some obvious issue.
You mean making a smaller font to replace current big fonts? I will try that if I could figure out how to make hzk files.

28x25 is from official SoD. Have to respect that. It's how Chines H3 looks like. Don't attempt to change what players have been used to for 20 years (especially only just for suiting wog menu)

I mean, I thought this was much easier, and it turns out I was wrong. If it's taking too much effort for all of us, then we just ignore it. What do you think Rolleyes


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 16.09.2020 18:26 by Archer30.)
16.09.2020 17:40
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #128

Archer30, I edited plugin for Era and released WoG Chinese.exe mod. So you use it. I can change/recompile it to allow smaller fonts, probably, but we would need such font in the same format. So I added to TODO as possibile someday feature, but not prioritised task.

Quote:28x25 is from official SoD. Have to respect that. It's how Chines H3 looks like.
It means, that huge characters is not a big deal in other dialogs, where the same English bigfont2.fnt will be used. Thus it should be tolarable.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
17.09.2020 00:00
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #129

(17.09.2020 00:00)Berserker Wrote:  Archer30, I edited plugin for Era and released WoG Chinese.exe mod. So you use it. I can change/recompile it to allow smaller fonts, probably, but we would need such font in the same format. So I added to TODO as possibile someday feature, but not prioritised task.
Berserker, проблема решена?


game bug fixes extended.dll || My Plugins || My GitHub
17.09.2020 10:12
Visit this user's website Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #130

Thanks Berserker. This is not a task with high priority at all. If using medfont.fnt and hzk12 is possible for home page, then new font is not required, am I right?


Latest ERA mods and scripts in development - My GitHub
17.09.2020 11:43
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #131

igrik, нет. Я правил плагин в прошлом. Сейчас исправить вопрос можешь ты:

if (PluginExists('wogcn')) { fontName = 'medfont2.fnt' }
Тогда китайски плагин загрузит hzk12 и установит верные размеры шрифта.

Это такой временный хак.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
17.09.2020 15:30
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #132

Berserker, хорошо. Сделаю сегодня.
А может лучше закинуть название конкретно этого шрифта в мой текстовик? И при необходимости им легко можно будет управлять?
Это как временная, но очень гибкая мера


game bug fixes extended.dll || My Plugins || My GitHub
17.09.2020 15:55
Visit this user's website Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5422
Post: #133

я согласен с igrik'ом, это более гибкий подход.
Я бы даже предложил в heroes3.ini вытащить (если нету) строку, где локализаторы сами будут указывать какой шрифт брать. Кто знает Unsure
17.09.2020 16:15
Visit this user's website Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #134

Thanks Berserker and igrik, your kind help is crucial to the Chinese community.

I agree with igrik. Considering ERA might be spread to more regions and different compatibility issues might appear, writing parameter to text enables more flexibility.
Personally I prefer putting parameter into a file supported VFS, which can be put into a localization mod. This enables more convenience switching between languages as enable/disable localization mod is the only thing matters.


Latest ERA mods and scripts in development - My GitHub
17.09.2020 16:50
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #135

igrik, в json файл нужно. Это самое гибкое API для таких параметров, которые можно точечно перекрывать.
"wnd": {
    "wog_options_dlg": {
    "intro_font": "bigfont2.fnt"
    }
}

Сюда же можно и остальные перенести. RoseKavalier уже json-перевод в плагинах вовсю использует.

Текстовик, ini и отдельный файл для каждого параметра — худшие решения.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
17.09.2020 17:07
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group