Current time: 21.04.2024, 13:11 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Archer30 Offline
Moderators

Posts: 1117
Post: #1096

Hi Berserker, found an issue - OnHeroTransfer doesn't seem to trigger.

Also, is there a way to check whether a zone is the first zone of a campaign? (Alternatively, is there a trigger only for the start of the 2nd+ campaign zone?)

I have trouble with this issue for campaign like RoE - Dungeon and Devils. This is a campaign with 3 zones, you can select your starting zone between zone 1 and zone 2 (by clicking on the map). If you choose 2nd zone as your start, then 1st would be your second zone. Here's the problem -> henchman data should be initialized in the first zone (instead of loading data from w51 - w100 or ini). Any idea?

Note: From my code, w51 - w100 are generated at wining and they are only cleared when the client is terminated. If a player starts a new campaign after winning a zone, w51 - w100 could be wrongly transferred to the new campaign (due to lacking check of the first zone)



Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 05.04.2021 22:38 by Archer30.)
05.04.2021 17:24
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16488
Post: #1097

Quote:OnHeroTransfer doesn't seem to trigger.
You need new campaign started from scratch. I checked it. Recheck, please.
I would not use any indexes at all.
The issue with garbage in w50..w101 and first campaign map is unsolvable. Just clear anything except those, protected by OnHeroTransfer trigger.


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

Posts: 1117
Post: #1098

Retested, still, nope.
My best guess is that this event is defined in Era Erm Framework, you somehow forget to update the script there?
How is OnHeroTransfer useful in the first place? Comparing with OnAfterErmInsruction. I need more info to understand:
Quote:Just clear anything except those, protected by OnHeroTransfer trigger.
Also, is ClearIniCache suppose to remove anything from the target? Didn't do anything from my end though.




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

Posts: 16488
Post: #1099

Sent all info to discrod.

To fully rewrite the whole ini file:
1) Delete ini file using DeleteFile
2) ClearIniCache to remove ini data from memory
3) WriteIni
4) Save ini


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

Posts: 16488
Post: #1100

В Эре 3.4.0 будут анимированные def-ы в DL-диалогах. Вплоть до 10 дефов могут быть анимированными. Достаточно в поле имя дефа, где обычно стоит «Def», дописать "animated" => "Def animated". Ну а группу, группу кадров можно выбрать? Можно )

Image: image.png Image: image.png


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

Posts: 4338
Post: #1101

120АААААААААААААААААААААААААААААААААААААААААААААААААААААААА


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
06.04.2021 04:55
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16488
Post: #1102

Файл по данной ссылке защищён авторским правом и запрещён к скачиванию.
Ходят слухи, что если нужно указать группу кадров и индекс кадра, то в индекс кадра прописывают Группу * 100000 + Индекс кадра.


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

Posts: 4338
Post: #1103

Бесконечно можно смотреть на три вещи: как горит огонь, как течет вода и как сменяет кадр за кадром resource.def 166


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
06.04.2021 05:40
Visit this user's website Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1117
Post: #1104

Hi Berserker, the animated def feature is really amazing!

And I'm happy to say that now I have figured out most of the henchman carryover feature.

But there is still an issue with OnTransferHero - it doesn't get called each time needed. The ERA commander carryover feature has the same issue as well. For campaigns like RoE - Dungeon and Devils (Oh, here you are again!). You are able to configure your campaign:

1st zone: Choose from Inferno or Dungeon Faction (by clicking on the map)
2nd zone: Choose from Inferno or Dungeon Faction (can't select, must use the faction that was left)
3rd zone: Choose from Inferno or Dungeon Faction (by selecting from campaign bonus - will use hero from zone 1/2 depending on the selection)

Alright, so the problem is when you are at the 3rd zone and select heros from the first zone, the commanders, the henchman data (with my code) are lost (while hero level still gets carried). But if you select heroes from the 2nd, they got carried over.

Possible to fix? Rolleyes


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

Posts: 16488
Post: #1105

Quote:Бесконечно можно смотреть на три вещи: как горит огонь, как течет вода и как сменяет кадр за кадром resource.def
Или artifact.def )

Archer30, thanks.

Quote:But there is still an issue with OnTransferHero - it doesn't get called each time needed. The ERA commander carryover feature has the same issue as well.
Right, it's because I hook at WoG code for commander transferring. I'll see, what can be done, but do not promise anything )

Nice structured code! Formatted it a bit:



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

Posts: 410
Post: #1106

(06.04.2021 05:40)daemon_n Wrote:  Бесконечно можно смотреть на три вещи: как горит огонь, как течет вода и как сменяет кадр за кадром resource.def 166
То есть, теперь в окошки мода Расширенных описаний существ вместо изображений можно вставлять анимированные def-ы юнитов, как в Форте города?
06.04.2021 12:54
Find all posts by this user Quote this message in a reply
daemon_n Online
Administrators

Posts: 4338
Post: #1107

Sandris, я бы хотел сказать "да", но анимация будет не такой, как в форте. Разве что подготовить свои дефы, где будут расставлены кадры в нужном порядке, поскольку оригинальные - лишь заготовки для полноценных анимаций.


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
06.04.2021 14:48
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16488
Post: #1108

Sandris, конкретно существа анимируются в форте по спец. алгоритму, прыгая по группам. А у меня/ZVS анимация последовательная по конкретной группе.


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

Posts: 410
Post: #1109

Я имел ввиду пересобрать DEF-ы существ именно под анимацию в окне мода, оставив только один тип действия с последовательными кадрами в цикле (движение, кривляние...).
06.04.2021 17:33
Find all posts by this user Quote this message in a reply
daemon_n Online
Administrators

Posts: 4338
Post: #1110

Sandris, в таком случае можно.


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
06.04.2021 17:46
Visit this user's website 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