Current time: 12.11.2024, 12:48 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
ERA III. Новые версии
» Только объявления и ссылки
Author Message
Berserker Offline
Administrators

Posts: 16653
Post: #46

Code:
Version 3.9.9 (01/2024)
------------------------
[+] Added the following functions to Era Erm Framework:

  !?FU(Hash32);
  ; Calculates int32 digest (hash sum) of arbitrary sequence of bytes.
  !#VA(data:x);    Pointer to data first byte or string
  !#VA(dataLen:x); Length of data in bytes
  !#VA(result:x);  Result hash

  !?FU(MakeRngSeed);
  ; Generates deterministic int32 seed for pseudo random number generator, consuming up to 15 arbitrary int32 parameters.
  ; Example: FU(MakeRngSeed):P(x)/(y)/(z)/(heroId)/?(seed:y); get prng seed, which will be the same for given coordinates and hero
  !#VA(firstArg:x);

  !?FU(SplitMix32);
  ; Generates new random value using SplitMix32 algorithm and modifies input seed value.
  ; Possible syntaxes:
  ;  FU:P?(seed:y) ?(result:y);             Generate random int32 value (negative or positive)
  ;  FU:P?(seed:y)/(min)/(max) ?(result:y); Generate random int32 value in [min..max] range
  !#VA(seed:x);   OUT. Previous generator seed. Pass by reference (using ?), because this value will change after generation
  !#VA(min:x);    Minimum value.
  !#VA(max:x);    Maximum value.
  !#VA(result:x); OUT. Result number

[+] Added the following exported function to era.dll:
  // Calculates data hash sum of arbitrary length
  function Hash32 (Data: pchar; DataSize: integer): integer; stdcall;

  // Generates new random value using SplitMix32 algorithm and provided Seed value. Seed is passed by reference and modified on return.
  function SplitMix32 (var Seed: integer; MinValue, MaxValue: integer): integer; stdcall;

[*] Era now uses SplitMix32 algorithm for seeding Xoroshiro128 PRNG.


Version 3.9.8 (01/2024)
------------------------
[*] Improved network PvP battles stability. The game will always send original (unmodified) battle stack action info to remote side, thus no desynchronization will occur when any script or plugin alters battle action parameters.


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.

Автоперевод (Click to View)


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
30.12.2023 01:10
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
ERA III. Новые версии - Berserker - 01.06.2020, 04:53
RE: ERA III. Новые версии - Berserker - 09.11.2020, 19:48
RE: ERA III. Новые версии - Berserker - 24.01.2021, 04:46
RE: ERA III. Новые версии - Berserker - 24.01.2021, 17:19
RE: ERA III. Новые версии - Berserker - 29.01.2021, 04:42
RE: ERA III. Новые версии - Berserker - 29.01.2021, 21:49
RE: ERA III. Новые версии - Berserker - 30.01.2021, 06:06
RE: ERA III. Новые версии - Berserker - 30.01.2021, 19:52
RE: ERA III. Новые версии - Berserker - 04.02.2021, 01:11
RE: ERA III. Новые версии - Berserker - 24.02.2021, 19:24
RE: ERA III. Новые версии - Berserker - 07.03.2021, 23:19
RE: ERA III. Новые версии - Berserker - 11.03.2021, 18:44
RE: ERA III. Новые версии - Berserker - 31.03.2021, 17:00
RE: ERA III. Новые версии - Berserker - 01.04.2021, 03:05
RE: ERA III. Новые версии - Berserker - 07.04.2021, 20:45
RE: ERA III. Новые версии - Berserker - 09.04.2021, 04:02
RE: ERA III. Новые версии - Berserker - 11.04.2021, 06:53
RE: ERA III. Новые версии - Berserker - 13.04.2021, 02:39
RE: ERA III. Новые версии - Berserker - 13.04.2021, 05:04
RE: ERA III. Новые версии - Berserker - 16.04.2021, 06:58
RE: ERA III. Новые версии - Berserker - 18.04.2021, 04:05
RE: ERA III. Новые версии - Berserker - 28.04.2021, 06:34
RE: ERA III. Новые версии - Berserker - 30.04.2021, 05:47
RE: ERA III. Новые версии - Berserker - 20.05.2021, 05:18
RE: ERA III. Новые версии - Berserker - 16.06.2021, 03:41
RE: ERA III. Новые версии - Berserker - 18.06.2021, 04:24
RE: ERA III. Новые версии - Berserker - 26.06.2021, 04:38
RE: ERA III. Новые версии - Berserker - 03.07.2021, 00:50
RE: ERA III. Новые версии - Berserker - 23.07.2021, 01:04
RE: ERA III. Новые версии - Berserker - 31.07.2021, 20:33
RE: ERA III. Новые версии - Berserker - 01.08.2021, 02:09
RE: ERA III. Новые версии - Berserker - 12.08.2021, 23:02
RE: ERA III. Новые версии - Berserker - 19.08.2021, 05:09
RE: ERA III. Новые версии - Berserker - 21.08.2021, 21:22
RE: ERA III. Новые версии - Berserker - 18.09.2021, 21:17
RE: ERA III. Новые версии - Berserker - 26.09.2021, 00:54
RE: ERA III. Новые версии - Berserker - 04.09.2022, 09:35
RE: ERA III. Новые версии - Berserker - 06.03.2023, 14:04
RE: ERA III. Новые версии - Berserker - 30.12.2023 01:10
RE: ERA III. Новые версии - Berserker - 02.06.2024, 16:30
ERA III. Новые версии - Berserker - 03.06.2020, 05:33
RE: ERA III - Berserker - 24.06.2020, 03:53
RE: ERA III - Berserker - 30.07.2020, 04:09
RE: ERA III - Berserker - 05.09.2020, 04:54
RE: ERA III - Berserker - 21.09.2020, 03:44
RE: ERA III - Berserker - 20.10.2020, 04:55
RE: ERA III - Berserker - 22.10.2020, 04:36

Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group