Skip to content

Releases: goto-bus-stop/recanalyst

v4.2.3

13 Dec 11:07
daec491
Compare
Choose a tag to compare

Features:

  • Read data from the "start game" message in the body. (0584112)
  • Improve sync message parsing with new research. (7a15f55)

v4.2.2

04 Aug 21:28
d1c25bb
Compare
Choose a tag to compare

Support:

  • Support UserPatch 1.5 version identifier. (#65)

v4.2.0

12 Aug 16:06
1b0f137
Compare
Choose a tag to compare

Features:

  • Support for HD Edition 4.8 and 5.x (#41)

Bugfixes:

  • Laravel: only throw when Laravel is not available but the ServiceProvider is actually being used (caaef2c)

v4.1.3

08 Apr 10:40
7b1afe1
Compare
Choose a tag to compare

Bugfixes:

  • Fix reading pre-game lobby chat from co-op players. (4cfae39)

New stuff:

  • Add missing game type and map type constants. (e267bb9)

Internal:

  • Extract Map data analyzer. (ce96b0c)

v4.1.2

18 Dec 16:07
402f9ed
Compare
Choose a tag to compare

Bugfixes:

  • Fixed associating chat messages with players in co-op games. Earlier only chat messages sent by the main player in a co-op group would be linked correctly. (bd06dc5)

Improvements:

  • Improved performance of reading Sync packets in the recorded game body. There's a lot of them, so the body analyzer should be about 35-40% faster for most games. (c4266e2)

v4.1.1

11 Dec 18:53
85c81a2
Compare
Choose a tag to compare

This release adds support for reading map names from games that use custom random maps, and fixes a chat and co-op bugs.

Features:

  • ->gameSettings()->mapName() now attempts to read the map name from the Objectives tab if a custom random map is used. (5035738)

    This behaviour can be disabled using the new extractRMSName option:

    // Don't use the .rms name reader, instead returning "Custom" when a custom random map is used.
    $mapName = $rec->gameSettings()->mapName(['extractRMSName' => false]);
  • Added some methods for dealing with co-op players. (ce396a0)

Bugfixes:

  • Pre-game multiplayer lobby chat is now also read from HD Edition games. (2621ef9)
  • Fixed detection of co-oping players. (ce396a0)

v4.1.0

07 Dec 21:56
06a8de8
Compare
Choose a tag to compare

This release adds the necessary image and language resources for African Kingdoms and fixes numerous bugs.

Features:

  • Generated resources now include all African Kingdoms maps, terrains, researches and units.
  • A new $rec->getPlayer($index) method to retrieve a Player object by the player index.

Changes:

  • $rec->players() does not return Spectating players anymore in HD Edition. A $rec->spectators() method was added instead to retrieve the spectating players.

Bugfixes:

  • Unique unit upgrades and unique techs now have icons.
  • Tributes now have the correct resource ID and point to the correct players. Before, both the playerFrom and playerTo would point to the same player.
  • $player->achievements() now returns the achievements for the correct player.

v4.0.4

03 Dec 23:16
3429623
Compare
Choose a tag to compare
  • Add support for Map IDs from .aoe2record files.

v4.0.3

12 Nov 12:57
66b4684
Compare
Choose a tag to compare

This is a small release with an important translations fix and some speed improvement.

  • Fix map ID to map name translations. They were very wrong before.
  • Fix an undefined variable error when a player objects list ("starting units") analysis fails. It'll now throw a more descriptive exception instead.
  • Speed up objects list analysis.
  • Always set the scenarioFilename property on the header analysis. If the recorded game file was not a scenario game, $rec->header()->scenarioFilename will be NULL.
  • Add a memoryLimit option to customise the maximum amount of bytes of memory to allocate when decompressing recorded game headers. It's set to 16MB by default and I haven't encountered a game where this wasn't enough, but some custom scenarios with very many starting units or eye candy might be even larger. Best to set this to something your server will be able to reasonably handle (or keep it at 16MB which will be enough for a vast majority of cases).

v4.0.2

06 Nov 18:52
cc43681
Compare
Choose a tag to compare

This release fixes a few important things:

  • Fix how researches are extracted from data files. Earlier, the Tech Effect ID was used instead of the research ID. Recorded games store the research ID. As such, RecAnalyst would use the wrong strings and research images for many researches. v4.0.2 uses the correct strings and images.
  • Fix reading victory settings from HD Edition .aoe2record files.

You'll need to copy the image and language resources again to get the research fixes proper, or run php artisan vendor:publish --tag=public with Laravel.

Then there's a not-so-important fix:

  • Fix reading Voobly's injected <Rating> chat messages. It's unlikely that anything was affected by the bug, since it would only prepend a space character to chat messages that shouldn't be there.

A few examples new usage examples were also added:

  • The chat example shows how to read chat messages.
  • The new Twig-less tabbed example is an alternative version of the Twig tabbed example, but in plain PHP.