Current time: 26.11.2024, 10:53 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: 608
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: 1175
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 Offline
Administrators

Posts: 16657
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: 1175
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: 1175
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: 2356
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: 2356
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: 844
Post: #788

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

Posts: 16657
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
Archer30 Offline
Moderators

Posts: 1175
Post: #790

Crash with Berserk + AI value overflow

2 issues in 1 go 148

Save game + video

In this save game, if you cast Berserk on Gargoyles and either of the mages nearby, it leads to a crash at 004B2CF8 on Gargoyles' turn.
To my understanding, this is a process of determining the destination of the current stack depending on whether an ally can shoot (trying to protect it by moving to the adjacent hex). If my guess is correct, this whole process isn't applicable for Berserked units, as they are bound to attack any stack nearby.

It should be skipped to avoid the crash.

__

In the same save game, if you end your turn, the game would freeze due to AI value overflow - it can be resolved if you remove all the troops on AI.

This has always been a problem since ERA updated the max quantity of a creature stack from int 16 to int 32. Many old maps with already max-out troops + difficulty mod increasing the number of creatures = boom.

More info (previous bug report): https://discord.com/channels/66574215930...8023918603


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

Posts: 1095
Post: #791

В игре если долго играть (месяц-два) накапливается баг (наверное кеш) - вместо стрелочки появляются песочные часы и чуть позже игра вылетает.
Выход в главное меню не помогает (все равно вылетает) - помогает только перезапуск игры.


ERA HD Edition 0.7.3: ENG-RU
Сooperative no bugs: Yandex / Google

(This post was last modified: 14.07.2024 20:27 by Suft.)
14.07.2024 20:27
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #792

Нужно будет на версии 3.9.15 смотреть Debug папку, собирать такие вылеты, чтобы попытаться понять причину.


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

Posts: 1175
Post: #793

OnWinGame trigger is broken

It probably only happens since 3.9.x? I remember that this trigger worked as intended before. At the moment, it doesn't trigger for most situations except when in campaign, when you save a save game upon victory and load this save game afterwards, it triggers once.

Script for testing

Cheat for instant win:
Code:
wogonering


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

Posts: 16657
Post: #794

Fixed.


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

Posts: 6
Post: #795

День добрый,
В новой версии Era 3.9.14 перестала работать регенерация у новых монстров, созданных в typhon. При этом в старых версиях - все ок.
(This post was last modified: 24.07.2024 22:46 by melton.)
24.07.2024 22:35
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