daemon_n
Posts: 4343
|
|
22.12.2021 18:33 |
|
Berserker
Posts: 16657
|
|
25.12.2021 11:51 |
|
Bes
Posts: 5422
|
Berserker, ты бы это... обозвал уже пошедший по рукам последний мини-релиз ERA3, а то эти фразы в истории обновлений "ERA обновлена до последней версии" ну совсем несерьёзно, только суматоху вызывает ща будут как по-старинке, по crc сравнивать у кого она таки самая "последняя"
|
|
27.12.2021 02:17 |
|
daemon_n
Posts: 4343
|
|
27.12.2021 04:51 |
|
Berserker
Posts: 16657
|
|
27.12.2021 13:07 |
|
Berserker
Posts: 16657
|
Короткое обновление, пока без оформления:
https://dropmefiles.com/HkyPw
Code:
Version 3.9.2 (12/2021)
------------------------
[+] Implemented palette colorization support for def png frames.
The rules are the same, as for pcx png replacements. Png file should either use special 32 reserved colors or there should exist alternative png file named "groupInd_frameInd_p[player index].png". Example: "dialgbox.def/0_0_p3.png". Alternative files are not used if single png frame redirection is used.
[+] Added new "OnAfterBuildTownBuilding" event, occuring right after town building was built.
x-parameters: Town ID, Building ID.
[+] Added new "OnKeyReleased" event, occuring on keyboard key release.
Parameters: keyCode, preventDefault.
Example:
!?FU(OnKeyReleased);
!#VA(key:x) (preventDefault:x);
!!IF:M^Released key %(key)^;
[+] Added new events to Era Erm Framework: "OnKeyReleased_AdvMap", "OnKeyReleased_Battle", "OnKeyReleased_HeroScreen",
"OnKeyReleased_HeroMeetingScreen", "OnKeyReleased_Town", occuring right after "OnKeyReleased" events and taking two arguments:
x1 - key code
x2 - prevent default reaction (0 - no, 1 - yes).
Example:
!?FU(OnKeyReleased_Battle)&x1=(KEY_F1):;
!#VA(key:x) (preventDefault:x);
!!VR(preventDefault):S(TRUE);
!!IF:M^Released F1 in battle!^;
[+] Added the following functions to Era Erm Framework:
!?FU(H3Dlg_GetCurrentDlgId);
; Returns topmost dialog unique ID (DLG_XXX constant). It may be message box, custom dialog or any in-game dialog.
!#VA(result:x);
!?FU(AddArtToHero);
; Adds artifact to hero, trying to equip it first and fallbacking to putting in backpack. Returns success flag.
; Automatically builds combo arts and checks scenario win conditions.
!#VA(hero:x); ID of hero to equip artifact to.
!#VA(art:x); ID of artifact to equip.
!#VA(artMod:x); Artifact modifier or (NO_ART_MOD). For spell scrolls its spell ID. For other artifacts the value is usually ignored.
; Custom artifact modifiers may be implemented. Artifact modifier is always carried with artifact by game functions.
!#VA(result:x); Boolean. Success flag.
!?FU(GetArtAtSlot);
; Returns hero artifact and artifact modifier at given slot.
!#VA(hero:x); Hero ID or (CURRENT_HERO)
!#VA(slot:x); Slot ID (backpack is supported).
!#VA(artId:x); OUT. Artifact ID.
!#VA(artMod:x); OUT. Artifact modifier.
!?FU(ChangeArtModAtSlot);
; Changes artifact modifier in specified hero slot. Usually modifier is spell ID for spell scrolls or (NO_ART_MOD).
!#VA(hero:x); Hero ID or (CURRENT_HERO)
!#VA(slot:x); Slot ID (backpack is supported).
!#VA(artMod:x); Artifact modifier.
[+] The following functions were changed in Era Erm Framework:
!?FU(EquipArtToSlot);
; Tries to put artifact to specified hero doll slot, triggering OnEquipArt event. Returns success flag.
!#VA(hero:x); ID of hero to equip artifact to.
!#VA(art:x); ID of artifact to equipt.
!#VA(artMod:x); Artifact modifier or (NO_ART_MOD). For spell scrolls it's spell ID. For other artifacts the value is usually ignored.
; Custom artifact modifiers may be implemented. Artifact modifier is always carried with artifact by game functions.
!#VA(slot:x); ID of hero doll slot to put artifact in or (NO_ART_SLOT) for autodetection.
!#VA(result:x); Boolean. Success flag.
!?FU(GetHeroPrimarySkillsWithoutArts);
; ...
The function correctly handles artifact modifiers now, including spell IDs of magic scrolls.
[+] Added KEY_ENTER constant to Era Erm Framework, as alias to KEY_RETURN.
[+] Added new exported functions to era.dll:
- PcxPngExists (const PcxName: pchar): integer; stdcall;
Tries to load PNG replacement for pcx file name and returns success flag (0 or 1).
[+] Added support for LMB popup dialogs positioning at click coordinates.
[+] Included updated zutorial.tut file by Archer.
[-] Fixed crash in OnAICalcStackAttackEffect event, occuring on attempt to get tower stack ID by invalid position (251, 254, 255). Credits: daemon_n.
[-] Fixed bug: composite images with pcx16 background didn't use to respect pcx redirections.
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
|
|
27.12.2021 23:15 |
|
PerryR
Posts: 460
|
The functions for artifacts are great! Oh if these had only been available earlier, well its not to late
Thanks for the release
|
|
28.12.2021 09:14 |
|
Berserker
Posts: 16657
|
|
28.12.2021 12:22 |
|
wessonsm
Posts: 792
|
Без msg-файлов не работает стандартный воговский редактор h3wmaped.exe - все карты отображаются без большинства объектов.
Но хорошо работает редактор от RoseKavalier.
Это так задумано?
|
|
03.01.2022 19:14 |
|
XEPOMAHT
Posts: 2356
|
(03.01.2022 19:14)wessonsm Wrote: Без msg-файлов не работает стандартный воговский редактор h3wmaped.exe - все карты отображаются без большинства объектов.
Но хорошо работает редактор от RoseKavalier.
Это так задумано?
Да, патч от RoseKavalier-а работает без msg, что сделано очень правильно. Стандартный воговский редактор карт потребует msg - древние и ненужные воговские костыли. В ERA+ патч для редактора карт - h3wmapedpatch.dll, использует msk, но в самом h3wmaped.exe msg всё ещё остаётся, т.к. модами нельзя менять exe, это может сделать только Берсеркер в базовой комплектации ERA.
|
|
03.01.2022 21:03 |
|
Berserker
Posts: 16657
|
|
03.01.2022 23:01 |
|
Berserker
Posts: 16657
|
|
04.01.2022 00:34 |
|
XEPOMAHT
Posts: 2356
|
|
04.01.2022 01:04 |
|