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
Valery, I will report to SyDr, Mod Manager author. I took it from the latest Era Launcher. Probably, SyDr didn't notice the bug in his last releases.
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-конфиги стали удобнее.
Thanks. I think we should try to use era-modern dll in Era Assembly by daemon_n to test its stability.
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.
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:
Archer30, we have also game bug fixes extended plugin

I think it's some HD mod issue. Did you try with a bit older HD-mod version?
Well, I picked five versions from
here to test, from HD 5.1 to 5.4, and none of them worked.
Archer30, I wrote to Baratorch about the issue.
Thanks!

Is ERA 4 the next one or 3.9.10?