Skip to content

Releases: empiricaly/empirica

@empirica/core@1.11.2

21 Apr 05:45
0cf63f4
Compare
Choose a tag to compare

Patch Changes

  • 3123aed: Replaying with a different set of of players would fail to load the game state.

@empirica/core@1.11.1

18 Apr 04:04
d1b58d0
Compare
Choose a tag to compare

Patch Changes

  • 992d5f1: Fix reassign Player to a new Game after they played and finished a first Game.

    There were 2 problems:

    • the player.get("ended") field was not cleared
    • the reassignment would not trigger the game to start if the introDone was not
      reset (you don't want the player to go through intro steps again), since we
      would never get the introDone signal, and just sit there...
  • 97c6837: Fix lobby fail strategy and similar straight to exit steps cases.

    There was a check for the presence of the player.game object in front of the
    exit steps. If the game never starts, the player.game object is never
    created, and the exit steps are never executed. This also addresses the case
    where the player is never assigned a game at all (custom assignment).

@empirica/core@1.11.0

11 Apr 05:33
b3ec173
Compare
Choose a tag to compare

Minor Changes

  • efc0fd5: Export now supports passing a tajriba.json file as the first argument to export
    the data directly from a file instead of automatically detecting the file from
    the current project.

    # At the root of the project.
    empirica export
    
    # Anywhere, although it uses the global version of empirica (not the version
    # locked in your project). Upgrade to the latest version of empirica with:
    # `empirica upgrade --global`
    empirica export path/to/tajriba.json

@empirica/core@1.10.0

31 Mar 02:18
5467a49
Compare
Choose a tag to compare

Minor Changes

  • 2d4e245: Add ephemeral attribute support.

    This allows you to define attributes that are not persisted to the database, but
    are available to the client and server while the server is still running. These
    attributes will sync with all players as normal attributes. This is useful for
    data that that would be unreasonable to persist to the database due to size or
    volatility, but is still useful to share between clients and the server.

    For example, you could use this to sync the mouse movements of the players.

    player.set("mouse", { x: 123, y: 456 }, { ephemeral: true });
    player.get("mouse"); // { x: 123, y: 456 }

Patch Changes

  • 2d4e245: Ensure game and players are ready in exit steps.

    The presence of the game and players were not checked in the exit steps, as they
    are during the game. This could lead to the game or players not being available
    in the exit steps callback (to select the steps) or the exit steps themselves.

  • 2d4e245: Make player reset in admin UI work again.

@empirica/core@1.9.9

24 Mar 08:25
cbccdb7
Compare
Choose a tag to compare

Patch Changes

  • 9197232: Attribute callbacks could be run out of order.

@empirica/core@1.9.8

17 Mar 13:26
1eb6b17
Compare
Choose a tag to compare

Patch Changes

  • 9e24313: Fix an issue with the shared/ignore lobby configuration, and more generally with
    a number of players in a game that is not equal to the treatment.playerCount.

@empirica/core@1.9.7

16 Mar 11:35
7ccf0a0
Compare
Choose a tag to compare

Patch Changes

  • c8319ce: Fix a bug where setting an attribute to false on the server, after it was
    initially set to true on the client, would not work as expected.
  • 144f928: Upgrade empirica create templates with updated packages and build tools

@empirica/core@1.9.6

11 Feb 10:58
12939cc
Compare
Choose a tag to compare

Patch Changes

  • 0c39a7c: New export to fix consistency and performance issues.

@empirica/core@1.9.5

08 Feb 08:35
a475d4b
Compare
Choose a tag to compare

Patch Changes

  • e70565d: Fix broken export command.

@empirica/core@1.9.4

05 Feb 08:53
ddd1f98
Compare
Choose a tag to compare

Patch Changes

  • 40a5d5c: Improve callback ordering by only allowing 1 callback to run at a time. This is
    change also make addScopes await for the scope changes to be added locally
    before returning.
  • 0994940: Enable empirica serve to run in the official Docker container image.
  • aa7fd43: Log connection errors instead of throwing unhanded exceptions.
  • 434e36a: Avoid blocking on concurrent release of step stopping timer.