Skip to content
Stefano Balietti edited this page Oct 21, 2021 · 4 revisions
  • status: complete
  • version: 7.x

New features in nodeGame 7.x

  1. Single-player template: added a single-player game template with one logic hosting all clients in a classic "Guess the Number" game.

  2. Improved CSV support: CSV files are automatically updated and new options to flatten items and group them before saving to file system. Example:

    memory.save('ultimatum.csv', {
        // Merge items together.
        flatten: true,
        // One row per player..
        flattenByGroup: 'player',
        // Adds updates to same file for every round.
        updatesOnly: true         
    });
  3. Improved reconnect support: improved default reconnection mechanism:

    • role and partner automatically set,
    • default reconnect callback resends game messages from same step.
  4. Client Timer API reworked: simpler and more powerful API to create random events, including probabilistic events. Example:

    node.timer.random(3000, 7000).prob(0.2).done();
  5. New Game methods: new Game methods to get references to current stage/step id and number and to compare it against other ids or game-stage objects: isStep, isStage, isRound, isWidgetStep, getStepId, getStageId.

  6. Improved Widgets: several improvements including:

    • Auto-scroll into widgets requiring user action,
    • Required widgets which are still requiring user action can now block the node.done procedure also outside of widget-steps,
    • New method: Widget.isActionRequired,
    • New risk-elicitation widget: Bomb method.
  7. Server improvements:

    • Port can be specified via command-line.
    • GameRoom API extended with new method updateWin and more options available for method computeBonus.
    • Channels can be disabled in channel.settings.js file.
  8. Miscellaneous:

    • Role, partner, and session automatically added to every database entry.
    • Window: auto-scroll up when loading a new frame.
    • Errors messages from clients are automatically printed to console.

Contributors

Special thanks to Arjen Stolk for bug reporting and features discussion.

Next Topics

Next: Migrating to v7

Clone this wiki locally