[Commits] [wesnoth/wesnoth] e7c210: Add a script to simulate heavy lobby traffic

GitHub noreply at github.com
Sun Oct 23 13:53:29 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e7c2105c48f0dd0b0b43c489357f2beb65fbd57c
      https://github.com/wesnoth/wesnoth/commit/e7c2105c48f0dd0b0b43c489357f2beb65fbd57c
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-10-23 (Sun, 23 Oct 2016)

  Changed paths:
    M simulate-lobby-activity.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/wesnoth.cpp
    A utils/simulate_lobby_traffic.py

  Log Message:
  -----------
  Add a script to simulate heavy lobby traffic

Plus a bunch of changes which were necessary for the script to work:
* The "simulate lobby activity" plugin now exits when the server is shut
  down.
* The plugin now uses wesnoth.random() for random number generation.
  Math.random() uses a fixed seed, which would make all the clients
  perform the exact same actions.
* Exposed wesnoth.random() to plugins to allow the change above.
* --nogui no longer implies --wconsole on Windows. With implied --wconsole
  the clients attached themselves to the standard output of the Python
  script, which made it impossible to see the output of the script itself.





More information about the Commits mailing list