Releases: empiricaly/empirica
@empirica/core@1.11.2
Patch Changes
- 3123aed: Replaying with a different set of of players would fail to load the game state.
@empirica/core@1.11.1
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...
- the
-
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, theplayer.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
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
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
Patch Changes
- 9197232: Attribute callbacks could be run out of order.
@empirica/core@1.9.8
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 thetreatment.playerCount
.
@empirica/core@1.9.7
@empirica/core@1.9.6
Patch Changes
- 0c39a7c: New export to fix consistency and performance issues.
@empirica/core@1.9.5
Patch Changes
- e70565d: Fix broken export command.
@empirica/core@1.9.4
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.