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

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Berserker Offline
Administrators

Posts: 16657
Post: #1066

Ok, found it. All those functions are executed before ERM when new campaign map is chosen (bonus selected and start pressed). And this functionality will not work if you transfer hero from the second to the fourth scenario.


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

Posts: 1175
Post: #1067

Thanks Berserker. Unless I know more about hard code, I can do nothing about it Rolleyes


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 31.03.2021 07:30 by Archer30.)
30.03.2021 12:38
Find all posts by this user Quote this message in a reply
V_Maiko Offline

Posts: 610
Post: #1068

Berserker, I'm curious about this new version, and I want to ask you questions Ab

(01.04.2021 03:05)Berserker Wrote:  [+] Добавлены новые события ERM:
    "OnWinGame" происходит, когда игрок выигрывает сценарий.
    "OnLoseGame" происходит, когда игрок проигрывает сценарий.
    "OnHeroTransfer" происходит после ERM инструкций, но до PI (OnAfterErmInstructions).
    Единственным аргументом является ИД героя, который переносится из предыдущего сценария, как указано в настройках файла кампании.

1. This new feature looks interesting but I wonder in which cases we could use it?

2. Are these new connectors for creating custom campaigns? are we getting closer to recovering WoG Campaigns without replacing? 102
   
   - function IsCampaign: TDwordBool;
    - procedure GetCampaignFileName (Buf: pchar);
    - procedure GetMapFileName (Buf: pchar);

3. About Era Erm Framework, this uses an algorithm similar to unlimited sounds, only now any files can be specified? is it like making a priority system without having to make empty files? (empty dlls in most cases).

Thanks for this interesting update 96-copy
01.04.2021 04:28
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1069

1-2 are necessary for Archer30. He wants Henchmen to be transferred with campaign heroes.
You can also implement your custom hero export/import in this events.

3. I don't understand the question.

Welcome )


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

Posts: 610
Post: #1070

Berserker, About Era Erm Framework seems to be a system that manages the files without having to manually modify them within the data of the mods, that seems curious to me
(This post was last modified: 01.04.2021 04:36 by V_Maiko.)
01.04.2021 04:35
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1071

V_Maiko, nope. The library just contains tons of usefull callable functions (pieces of code). There is special Runtime directory, where you can create/delete/update real files and folders.


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

Posts: 610
Post: #1072

Berserker, And I can know what is the difference between that and what I said? Ab
(This post was last modified: 01.04.2021 06:04 by V_Maiko.)
01.04.2021 05:48
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1073

V_Maiko, maybe you say the same in other words Rolleyes


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

Posts: 1175
Post: #1074

Berserker, thank you so much for the 3.3.9 update! Yes, this is everything I asked. That should be enough to create a decent campaign carryover feature.
However, my mind changes quickly, and I immediately come out with 2 more requests Rolleyes
1. Is there a way to check the ID of the scenario (zone) of a campaign?
2. Is there a way to check which bonus was selected from the start of a scenario (zone)?

Reason for asking these are
1. If I can check the ID of the zone and also I get the filename of the campaign, I can get a unique result of the combination and know what I should do to the carryover feature. Otherwise, I have to put a mark for every single campaign map in Maps/Resources directory.
2. In some campaigns, you are asked to select heroes from your previous zones. Like this (RoE - Dungeon and Devils - Zone 3):
Knowing which bonus was selected is essential for loading the corrected copy of hero data.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 01.04.2021 13:16 by Archer30.)
01.04.2021 08:10
Find all posts by this user Quote this message in a reply
Suft Offline

Posts: 1095
Post: #1075

Berserker, Извиняюсь переспрошу - изображения готовить в Png или Bmp? Просто 24 бит же bmp вы добавили поддержку, а не png. И 24 или 32 бит?


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

(This post was last modified: 01.04.2021 17:41 by Suft.)
01.04.2021 13:03
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #1076

Archer30,
1 - yes, be needs new release.
2 - I don't know.
Check also if OnWinGame occurs after loading saved campaign game.


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

Posts: 1175
Post: #1077

Well, yes, OnWinGame triggers after loading saved campaign game - not sure if this is good or bad


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

Posts: 16657
Post: #1078

It's good. You need only 1 file. Export henchman in OnWinGame and import in OnTransferHero with possible question.


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

Posts: 1175
Post: #1079

Yes, that's quite good. I can even use w51 - w100 without worrying about players closing the game before the variables get transferred.

For the 2# issue, I will just check hero ID to confirm which copy of data to load. Luckily H3 has an internal restriction that Zone 1 and Zone 2 can never have the same hero ID

I will try to make a platform mod that allowing mod makers to import features carrying over easily. Yes


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

Posts: 4343
Post: #1080

С новыми нововведениями для диалогов стало невозможным вызывать один поверх другого. Закрываются все сразу, как я понял.

А повторный вызов замораживает игру


Image: widget.png?style=banner2

Новейший Heroes Launcher
03.04.2021 13:41
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