melton, добрый день. Уже и не будет, видимо. В Эру добавлено отдельное событие OnBattleStackRegeneration для управления регенерацией, старый тифон её не поддерживает. Автор плагина Emerald внёс необходимые правки. Если кто захочет исправлять Тифон — обращайтесь за советом.
(24.07.2024 22:35)melton Wrote: [ -> ]В новой версии Era 3.9.14 перестала работать регенерация у новых монстров, созданных в typhon. При этом в старых версиях - все ок.
Старая версия Тифона не поддерживается. Тифон 3.6 не конфликтует - регенерация на монстрах работает.
Спасибо!
А есть ли возможность один раз в начале игры присвоить определенному монстру значение регенерации? Например монстру №250, с вероятностью 50% сделать регенерацию 30hp
А то в справке написано про !#VA(идентификатор стека:x), я так понимаю его еще надо каждый раз как-то определять.
Вчерашняя версия era.dll 3.9.15 портит (или не даёт записывать) структуру видеоролика по адресу 694D00h из-за чего становится невозможно воспроизведение вступительных роликов перед главным меню (т.к. исходных кодов от плагина Video playback in BIK format.dll у меня нет, чтобы исправить конфликт хуков с era.dll). В общем опять ERA+ остётся на era.dll версии 3.9.14.

(25.07.2024 01:59)Berserker Wrote: [ -> ]
создал erm файл с данным кодом, но увы не работает...

melton, try
Make sure the first line of your .erm is
ZVSE2
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]
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
But once we put them on top, they lose all of their exp and become R0
Ideally, the process of losing exp should only occur after confirming to leave them (after exiting this dialogue)
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.
(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-битное число с номером шахты на карте, память на структуры каждой шахты так же выделяется динамически самой игрой.
Лог ошибки помог бы узнать причину вылета.
Quote:Лог ошибки помог бы узнать причину вылета.
Unfortunately, there is no log generated. The game crashes silently. I am sure that it is reproducible following the steps above.
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.
(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+ нет просто потому что она не нужна, т.к. доступ к данным структуры города осуществляется по-разному (в основном это функции-циклы, проходящие стразу по структурам всех городов, а не конкретно одного, или, чаще, получение структуры прямо от координат на карте).
Good question. I will ask the script author why he did it this way.
@igrik