Archer30
Posts: 1175
|
|
21.12.2023 21:11 |
|
Valery
Posts: 2196
|
Bersy, I have a strange bug, mod manager in Era 395 you made for me, it skips the .pac files when compressing. I tried 10 times, same issue. I had to use previous Era version to pack the map
|
|
25.12.2023 00:30 |
|
Berserker
Posts: 16657
|
|
25.12.2023 00:39 |
|
Berserker
Posts: 16657
|
https://dropmefiles.com/NHhrt
Code:
Version 3.9.7 (12/2023)
------------------------
[+] Added support for arrays and primitive types in language json files, because they are often used as config files. Numbers are converted to strings, booleans are converted to "0" and "1", null values are ignored (the same, as key-value pair didn't exist at all). Arrays are treated as objects with monotonically increasing string keys ("0", "1", "2").
Example json:
{
"creatures": [
{
"id": 2000
},
{
"id": 150,
"name": "SuperRobot",
"isGod": true,
"power": 77.345,
"copyFrom": null
}
]
}
Example script:
!?FU(OnAfterErmInstructions);
!!IF:M^%T(creatures.0.id) %T(creatures.1.id) %T(creatures.1.name) %T(creatures.1.isGod) %T(creatures.1.power) %T(creatures.1.copyFrom)^;
[-] Fixed bug: png resources where cached forever, causing visual glitches in mods like Random Wallpaper.
[-] Fixed bug: battle obstacles placement differed from SoD.
Version 3.9.6 (12/2023)
------------------------
[+] Added support for multiple language files in a single mod. Json files from Lang\[Language] directory have priority over files in Lang directory root. Current language is stored in heroes3.ini in "Era" section under "Language" key and defaults to "en".
It's recommended to keep any mod main language data in root "Lang" directory and alternative localizations in appropriate subdirectories (en, pl, ru, fr).
[+] Added new exported function to era.dll:
// Changes current language code in memory without altering ini files or reloading already loaded data
SetLanguage (NewLanguage: pchar): TDwordBool; stdcall;
// Reloads all json files from "Lang" directory and current language subdirectory.
ReloadLanguageData; stdcall;
[-] Fixed "SN:H" command and "OnAdvMapTileHint" event behavior. No hint is applied and no event is generated if tile is not visible by current player.
Коротко: баг с расстановкой объектов на поле боя исправлен, баг со случайными изображениями для интерфейса исправлен, json-конфиги стали удобнее.
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
|
|
27.12.2023 23:58 |
|
gamemaster
Posts: 16
|
|
28.12.2023 14:19 |
|
Berserker
Posts: 16657
|
|
28.12.2023 14:35 |
|
gamemaster
Posts: 16
|
Agree with Bersy.
I did a lot tastings locally, but real test would be mass-test.
I would propose to have both dll versions for some time.
Let modern-era dlls be default. Then include script to replace modern-era with original and vice versa.
|
|
28.12.2023 15:05 |
|
Berserker
Posts: 16657
|
|
28.12.2023 16:49 |
|
Archer30
Posts: 1175
|
Hi, Berserker, it looks like OnGameLeave no longer works on exiting the game during battle. Not sure when the compatibility was broken between HD and era, but it's happening.
Can this be possibly improved?
Script for testing:
Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 29.12.2023 08:45 by Archer30.)
|
|
29.12.2023 08:44 |
|
daemon_n
Posts: 4343
|
|
29.12.2023 14:03 |
|
Berserker
Posts: 16657
|
|
29.12.2023 15:55 |
|
Archer30
Posts: 1175
|
|
29.12.2023 22:14 |
|
Berserker
Posts: 16657
|
|
30.12.2023 01:04 |
|
Archer30
Posts: 1175
|
|
30.12.2023 04:16 |
|