Current time: 28.11.2024, 07:45 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Archer30 Offline
Moderators

Posts: 1175
Post: #1741

Berserker, daemon_n, from ERM help - UN:J6

random - -1
no class - 1
treasure - 2
minor - 4
major - 8
relic - 16


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 16.08.2021 11:58 by Archer30.)
16.08.2021 11:58
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4343
Post: #1742

Archer30, i see, so that is supposed to be used that for its being random generated?


Image: widget.png?style=banner2

Новейший Heroes Launcher
16.08.2021 12:03
Visit this user's website Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #1743

daemon_n, any.


Latest ERA mods and scripts in development - My GitHub
16.08.2021 13:05
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #1744

Berserker, is there a trigger for OnAfterOpenTownScreen - trigger after finishing showing the townscreen (including both enter from adv map and swithcing town screens)?

Tried both OnPreTownScreen and OnOpenTownScreen, they are both too early than my need. Tried to manage the coordinate of a custom button, crashed before seeing the town screen 105



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

Posts: 16657
Post: #1745

No, there is no such trigger currently.


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

Posts: 1175
Post: #1746

Hmm, looks like there is a ready made one. Allow me to share some classic Hawaiing hooks here.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 16.08.2021 19:49 by Archer30.)
16.08.2021 19:46
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #1747

I don't know anything about fonts, then how to change them, playing with switching them in the json file gives no result at all.

I also noticed IF:G messages don't display entirely even in highest resolution (1920x1080) - they broke exactly same, so I have no idea why such important modification was necessary, this basically screws up every txt, because such txt were already reduced to minimum words. And now they don't make any sense.

Second thing: WHO modified avlpntr6.def/avlpntr7.def (big pine trees) for Era3? That was not tested, both defs are broken.
(This post was last modified: 16.08.2021 23:23 by Valery.)
16.08.2021 22:38
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1748

Valery, I sent your complaints to igrik. He'll try to do something with it.

Quote:Second thing: WHO modified avlpntr6.def/avlpntr7.def (big pine trees) for Era3? That was not tested, both defs are broken.
What is broken? I don't remember, from which fix I took them )

Archer30, thanks.


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

Posts: 16657
Post: #1749

Valery, please. show the json file with other font names, that you tried to use. Igrik will improve the dialog in the future.


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

Posts: 2819
Post: #1750

Valery, change the font name (HoMM3 ERA III\Mods\WoG\Lang\wnd.json)

Image: image.png


game bug fixes extended.dll || My Plugins || My GitHub
17.08.2021 00:31
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #1751

Thanks, I tested all fonts and none matches what we had in Era 2, is this possible or I am blind?

Finally tiny.fnt is the one displaying all text, but is damnt tiny as well, I think there was something intermediate before.
I will distribute my maps with the Lang folder (and only the wnd.json inside) then.
17.08.2021 01:13
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #1752

(17.08.2021 00:19)Berserker Wrote:  What is broken? I don't remember, from which fix I took them )


Image: 3tqDuK.jpg

The last two pines, try them. And as they are massively used in mapmaking, imagine the loneliness
17.08.2021 01:20
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4343
Post: #1753

Valery, a lot of mods change fonts. like:
WoG Graphic fix, Era Scripts, Advanced Classed Mod, Game Enhancement Mod. Even Wog mod could add new fonts since transfer to ERA 3 Yes


Image: widget.png?style=banner2

Новейший Heroes Launcher
17.08.2021 02:54
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4343
Post: #1754

Итак: Установка размеров кнопок и их положение

ERM Help Wrote:61 – установить ширину (без перерисовки) (число/числовая переменная)

(14.01.2017 00:22)igrik Wrote:  
; параметры любого элемента диалога
; текст, картинки, кнопки и т.д. (Click to View)

Что я выяснил -
!!FU(H3Dlg_GetCurrentDlg):P?(currentDlgId:y);
    !!SN:E6288816/2/(currentDlgId)/(buttonId); !!VR(btnStructure:y):Sv1;
    !!VR(btnAction:y):S(btnStructure) +30;
    !!UN:C(btnAction)/4/24; set 24 px height - работает

    !!VR(btnAction:y):S(btnStructure) +28;
    !!UN:C(btnAction)/4/332; set 332 px width - НЕ работает

    ; Но работает
    !!FU(H3Dlg_SendCmdToItem):P(currentDlg)/(buttonId)/61/332/(DLG_CMD_TYPE_DEFAULT); set 332 px width - работает


UPD: я указал не то число байтов (везде поставил "4") - сейчас всё править буду)

Я просто обязан попросить объединить это в одно, чтобы у нас была возможность любую кнопку двигать через EEF )


А ещё и с этим бы объединить - но только не на уровне EEF, а чтобы сама игра давала возможность получить/установить эти значения Yes (Click to View)


Image: widget.png?style=banner2

Новейший Heroes Launcher
17.08.2021 03:48
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1755

Valery, igrik will try to autosize the dialog, so that any text with any font could fit the line.

I'm just tired to think of those two pines. Should I simply remove those defs?

daemon_n, какая-то каша в посте, конкретизируй, пожалуйста )


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
17.08.2021 04:43
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