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

Post Reply 
Threaded Mode | Linear Mode
Ошибки, баги и недочёты ERA
» crash logs / errors / bugs of era
Author Message
Elmore Offline

Posts: 598
Post: #781

1.03 версия лаунчера, версия сборки 2.965


Image: widget.png?style=banner2
29.04.2024 13:17
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1139
Post: #782

About this post

Berserker, do I understand correctly that the calculation is:
25 * MA:P / BM:H * level?

I would try to implement the change in plugin
The formula isn't very straightforward though, change in .txt is expected


Latest ERA mods and scripts in development - My GitHub
30.05.2024 20:27
Find all posts by this user Quote this message in a reply
Berserker Online
Administrators

Posts: 16529
Post: #783

How about this variant: regeneration is equal to Max(Archangel basic HP (MA:P(MON_ARCHANGEL)/?(value:y), 20% of BM:H).

Advantages:

1) The artifact mostly fully heals any normal 1..6 level creature and even 7 level creature without experience or life bonuses. It's even not bad for commanders and henchmen.
2) If script multiples all creature health by some value, like 2, it will be accounted. For instance, basic archangel health will become 500.
3) The artifact is not overpowered. It does not fully restore azure dragons health, commander health or henchman health.
4) It still scales for super HP creatures like commanders and henchman. If commander or henchman has 3000 HP, he will regenerate 3000 * 0.2 = 600 HP, which is strong enough.


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

Posts: 1139
Post: #784

Hotkey triggers aren't ready immediately after entering the game

If you press L after entering the game (map), the first pressing won't execute the following lines for some reason.
It gets normal from the second press. And the problem is live again after restarting ERA.



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

Posts: 1139
Post: #785

Messing up wog immunity checks

0x75B4CA is the function for casting Sorceresses' spells and stack exp spells.
There are issues here:
- Spell immunity checks aren't universal

As we see from the screenshot (0x75C01B), it uses creature IDs for spell immunity checks. This means the native spell immunity mechanism is ignored, which brings different problems:
Image: M1wkoEW.png

For Age set with Stack Exp Ability after attack
a. Setting immunity to Age with MR:F100 under !?MR2 doesn't work
b. level 1-5 Spell immunity granted from stack exp ability doesn't give immunity to Age
c. Setting a non-living flag on a creature doesn't grant it immunity to Age
d. Dwarf-type spell immunity (from the creature itself or secondary skills) doesn't help reduce the chance of Age, while it should (See 0x44029B)

Suggestion: I think it should use the same way after-hit spells are implemented in the original H3 (0x440220) for spell immunity checks.

- Duplicated spell casts
Many creatures with after-hit spells in the original H3 grant the same spell cast from stack exp, for example, War Unicorns (Blind) and Ghost Dragons (Age).
There isn't a check for the existing debuff of the attacked stack, thus this can happen:
After Unicorns attack their enemy, they cast Blind twice (one from their ability, one from stack exp), which is visually unpleasant and sometimes makes things worse (if the new spell is worse than the existing one)

Suggestion: There should be an existing spell check inside 0075B4CA before applying a new spell.
Say, if the attacked creature has possessed a Level 0, 3 turns Blind Spell (can be cast by a unicorn with no exp), when the new spell is the same type (Blind) and both level and power are no greater than the existing spell, it should not be cast.
More specifically:
Existing spell on the hostile stack: level 0, duration 3 Blind, if the new spell to be cast is
Level 2, duration 1 Blind - can be cast, overrides the current spell
Level 0, duration 6 Blind - can be cast, extends the duration of the current spell
Level 0, duration 1 Blind - can't be cast as it is no better than the current possessed spell in any aspect


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 15.06.2024 23:33 by Archer30.)
15.06.2024 21:58
Find all posts by this user Quote this message in a reply
XEPOMAHT Offline
Moderators

Posts: 2292
Post: #786

(15.06.2024 21:58)Archer30 Wrote:  - Spell immunity checks aren't universal

Там вместо содовской проверки на возможность наложения заклинания - чудовищные костыли:

В рамках проекта ERA+ этот воговский код выключается полностью, т.к. делать его универсальным и совместимым с новыми заклинаниями, артефактами и монстрами не имеет смысла.

(15.06.2024 21:58)Archer30 Wrote:  - Duplicated spell casts

Такие вещи не отконтролировать, т.к. часто заклинание накладывается ради увеличения его продолжительности в бою.
16.06.2024 00:44
Find all posts by this user Quote this message in a reply
XEPOMAHT Offline
Moderators

Posts: 2292
Post: #787

Обновление ЭРЫ от 20.06.2024 работать не хочет. Не запускает ни одну карту, падает на попытке исполнить ERM, хотя на предыдущей версии era.dll всё работало как часы.

Лог HD-мода:

Лог ЭРЫ:

16.06.2024 02:14
Find all posts by this user Quote this message in a reply
FallenAngel Offline

Posts: 836
Post: #788

XEPOMAHT, в дискорде тоже написал. Там debug mode включить надо в .ini-файле корневом
16.06.2024 04:02
Find all posts by this user Quote this message in a reply
Berserker Online
Administrators

Posts: 16529
Post: #789

XEPOMAHT, спасибо, да, получил. Исправил. Временно включи Debug=1 или вот обновление библиотеки:
https://cdn.discordapp.com/attachments/1...1d662a789&


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