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

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

Posts: 16618
Post: #796

melton, добрый день. Уже и не будет, видимо. В Эру добавлено отдельное событие OnBattleStackRegeneration для управления регенерацией, старый тифон её не поддерживает. Автор плагина Emerald внёс необходимые правки. Если кто захочет исправлять Тифон — обращайтесь за советом.


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

Posts: 2323
Post: #797

(24.07.2024 22:35)melton Wrote:  В новой версии Era 3.9.14 перестала работать регенерация у новых монстров, созданных в typhon. При этом в старых версиях - все ок.

Старая версия Тифона не поддерживается. Тифон 3.6 не конфликтует - регенерация на монстрах работает.
24.07.2024 23:52
Find all posts by this user Quote this message in a reply
melton Offline

Posts: 5
Post: #798

Спасибо!
А есть ли возможность один раз в начале игры присвоить определенному монстру значение регенерации? Например монстру №250, с вероятностью 50% сделать регенерацию 30hp

А то в справке написано про !#VA(идентификатор стека:x), я так понимаю его еще надо каждый раз как-то определять.
24.07.2024 23:55
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16618
Post: #799



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

Posts: 2323
Post: #800

Вчерашняя версия era.dll 3.9.15 портит (или не даёт записывать) структуру видеоролика по адресу 694D00h из-за чего становится невозможно воспроизведение вступительных роликов перед главным меню (т.к. исходных кодов от плагина Video playback in BIK format.dll у меня нет, чтобы исправить конфликт хуков с era.dll). В общем опять ERA+ остётся на era.dll версии 3.9.14. 105
25.07.2024 11:46
Find all posts by this user Quote this message in a reply
melton Offline

Posts: 5
Post: #801

(25.07.2024 01:59)Berserker Wrote:  

создал erm файл с данным кодом, но увы не работает...
Image: iFAON26.jpeg
25.07.2024 13:35
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1168
Post: #802

melton, try


Make sure the first line of your .erm is ZVSE2


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

Posts: 5
Post: #803

Archer30

Thanks a lot, it works! Just needed to edit line 13 to:

    !!VR(finalValue)&(random)<=50:S30; [50% chance for monster #250 to regenerate 30 HP]
25.07.2024 20:19
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1168
Post: #804

Losing stack exp when managing troops

If you have Sucubbus as your commander, or if you enable "Leave troops on the map by Ctrl-RMB", when you manage troops in the interface of deciding which troops to use, your troops lose exp when you put them outside of the army, before you confirm to leave them.

For instance:
Here we have Orcs at Rank 10
Image: sf0M4x6.jpeg

But once we put them on top, they lose all of their exp and become R0
Image: 8YfXz6k.jpeg

Ideally, the process of losing exp should only occur after confirming to leave them (after exiting this dialogue)


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

Posts: 1168
Post: #805

Possible to generate a random map that crashes on loading the savegame

For some specific random map templates, when ERA generates random maps with them, it's possible that the games starting with these generated maps cannot be loaded (crash on loading save game).

Download:
Template + generated map

To reproduce:
1) Start a game with the given map (in the archive above), and save it, load the save game
2) Generate a new map with the given template start a game with it, save it, and load. If it didn't lead to a crashing problem, try again 2). Not all the maps generated from this template are problematic.

My guess: Some generated maps have map objects exceeding the game limit, for example, having over 128 mines on the map.

Ideal behaviour:
1) ERA should not generate invalid maps for itself, even when some parameters in templates are not ideal.
2) I don't see why a map can be started new but not from loading. Maybe this can be improved.


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

Posts: 2323
Post: #806

(19.08.2024 16:23)Archer30 Wrote:  My guess: Some generated maps have map objects exceeding the game limit, for example, having over 128 mines on the map.

В игре нет лимита на 128 шахт на карте. Ключевое слово держит 32-битное число с номером шахты на карте, память на структуры каждой шахты так же выделяется динамически самой игрой.

Лог ошибки помог бы узнать причину вылета.
19.08.2024 18:00
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1168
Post: #807

Quote:Лог ошибки помог бы узнать причину вылета.

Unfortunately, there is no log generated. The game crashes silently. I am sure that it is reproducible following the steps above.


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

Posts: 1168
Post: #808

Suggestion: Can we have CA:Z for getting town structure?

It makes sense to implement CA:Z while we have got HE:Z/BM:Z. A very convenient command.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 23.08.2024 14:33 by Archer30.)
22.08.2024 07:41
Find all posts by this user Quote this message in a reply
XEPOMAHT Offline
Moderators

Posts: 2323
Post: #809

(22.08.2024 07:41)Archer30 Wrote:  !!IF&(townId)<(MAP_TOWN_FIRST)|(townId)>(MAP_TOWN_LAST):M^{FU(Town_GetStruct)}: Wrong town id.^;

Странный скрипт. Номер последнего города в WoG/ERA/ERA+ на карте всё время меняется, т.к. это не константа. Тифон, к примеру, сначала проверяет возможную структуру на 0 (т.к. городов на карте может просто не быть), а затем вычисляет номер последнего города (на выходе будет 0, если скрптёр попытается получить структуру несуществующего города).

(22.08.2024 07:41)Archer30 Wrote:  !!IF&(town)<43200000:M^{FU(Town_GetStruct): Attention!}
Error in getting town structure address.
The game may fall at any time.^;

Непонятный кастыль. Зачем так через опу???

И да, прямой функции получения структуры города ни в WoG, ни в ERA+ нет просто потому что она не нужна, т.к. доступ к данным структуры города осуществляется по-разному (в основном это функции-циклы, проходящие стразу по структурам всех городов, а не конкретно одного, или, чаще, получение структуры прямо от координат на карте).
22.08.2024 11:25
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1168
Post: #810

Good question. I will ask the script author why he did it this way.

@igrik


Latest ERA mods and scripts in development - My GitHub
22.08.2024 12:41
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