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

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Bes Offline

Posts: 5422
Post: #1966

хм, на ERA3.8 та же фигня - обрезает
на 2.9.14 всё норм

запустил без плагинов вообще (кроме buttons.era), только чисто WoG
проблема осталась
выводы делайте сами


Image: team-supermod.gif
14.02.2022 22:35
Visit this user's website Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4343
Post: #1967

Дело в том числе и в шрифтах.


Image: widget.png?style=banner2

Новейший Heroes Launcher
15.02.2022 01:49
Visit this user's website Find all posts by this user Quote this message in a reply
wessonsm Offline

Posts: 792
Post: #1968

И описание сценария в окне новой кампании тоже:

А с полосой прокрутки нормально:

Мне кажется, я догадываюсь, дело в этой полосе прокрутки. Она невидимая, но место под нее все равно выделяется!
15.02.2022 15:37
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1969

Quote:Мне кажется, я догадываюсь, дело в этой полосе прокрутки. Она невидимая, но место под нее все равно выделяется!
Очень может быть, пометил себе, спасибо.


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

Posts: 1175
Post: #1970

Suggesting a new hook for ERA/Era Erm Framework

OnLeaveTroopsOnAdvMap
Author: Hawaiing

This trigger is at the timing after leaving a stack on the map by Ctrl + Right-clicking (with the hard-coded wog option). The purpose is to get the coordinates of the left stack by a hero.

This is essential for many events. For example. in Mixed Neutral Mod, we have an option to prevent neutrals from escaping.

As we see from the code, the absence of checking whether a stack was left by a hero makes it possible to fight a left stack to achieve unfair advantages (farming exp/commander arts, etc.). Another example is stack growth. Leaving a stack on the map on Sunday will grant you more troops on Monday, which is not what we wish to see. As I can tell, checking whether a stack was left by a hero is so important whenever manipulating a stack, thus my proposal is to add the function/hook in Era instead of another mod.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 21.02.2022 15:28 by Archer30.)
21.02.2022 07:52
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1971

Archer30, thanks for suggestion and code.


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

Posts: 16657
Post: #1972

Quote:Is it possible to improve the algorithm of auto ending to supoort Asian characters somehow? I appreciate for your help
Write me if it's crucial for your script.


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

Posts: 1175
Post: #1973

Berserker, thanks! The issue was resolved. The function works perfectly only I used the wrong value.


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

Posts: 1175
Post: #1974

Berserker, hi! I wonder if it is possible to raise the limit of items in a single section of wog options menu. It can have a max of 20 items at the moment.
As you see from the picture. If I add in more options to the red area, the new options won't appear. Instead the options from the blue box would be placed.


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

Posts: 16657
Post: #1975

As far as I remember, there is no way to raise the limit. We wanted to make custom options dialog, but there is none currently.


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

Posts: 1175
Post: #1976

I see, thanks!

Is there a quick way to change the selection type of each section?

For example, for the picture above, the right bottom section is a single selection field while the others allow several options to be selected at once.

At the moment we only need the top left section of the 1st page to become a multi-selection type.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 28.02.2022 08:39 by Archer30.)
28.02.2022 08:37
Find all posts by this user Quote this message in a reply
wessonsm Offline

Posts: 792
Post: #1977

Archer30, можно бинарным патчем заменить радиобуттоны обычным включением/отключением опций:
Code:
007786C0 01
007786CA 01
007786D4 01
Какой-то из этих трех отвечает за левую верхнюю секцию на первой странице, скорее всего первый.
28.02.2022 10:43
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1175
Post: #1978

wessonsm, thanks for helping!
Code:
007786C0 01
Works perfectly for changing the type of upper left section


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

Posts: 1175
Post: #1979

I find it a little bit weird to have these two:

i^key_ctrl^: variable to check whether Ctrl is pressed
(KEY_CONTROL): The key code of ctrl

They are having different spellings for some reason 102
I suggest just use (KEY_CTRL) instead to avoid confusion. I did qucik search in my mods folder. There is currently no mod using (KEY_CONTROL) in the scripts.


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

Posts: 16657
Post: #1980

https://docs.microsoft.com/en-us/windows...-key-codes

VK_CONTROL 0x11 CTRL key

Variables have abbreviations sometimes, constants tend to be longer and more descriptive. I transformed constants from original documentation.


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