[Commits] [wesnoth/wesnoth] b8467c: Improve handling of map generator errors

GitHub noreply at github.com
Thu Oct 27 01:53:45 UTC 2016


  Branch: refs/heads/lua_mapgen_stuff
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b8467cc0c2cd3f6a59c1176ef2119f4db8365413
      https://github.com/wesnoth/wesnoth/commit/b8467cc0c2cd3f6a59c1176ef2119f4db8365413
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M src/game_launcher.cpp
    M src/gui/dialogs/loadscreen.cpp

  Log Message:
  -----------
  Improve handling of map generator errors


  Commit: 581f1972bce04fe6bfa958b6c0f2926b8acce27d
      https://github.com/wesnoth/wesnoth/commit/581f1972bce04fe6bfa958b6c0f2926b8acce27d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M RELEASE_NOTES
    M data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
    M data/campaigns/Sceptre_of_Fire/scenarios/4_Gathering_Materials.cfg
    M data/lua/cave_map_generator.lua
    M data/lua/location_set.lua
    A data/lua/mapgen_helper.lua

  Log Message:
  -----------
  Refactor Lua cave map generator

This accomplishes two main things:
- Creates a mapgen_helper.lua module containing functions useful for Lua map generators
- Paves the way for allowing the cave generator to produce scenarios and accept user configuration


  Commit: aa2ed7e91a04933c21e892d7af14c7a8d9dd12a0
      https://github.com/wesnoth/wesnoth/commit/aa2ed7e91a04933c21e892d7af14c7a8d9dd12a0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M data/lua/cave_map_generator.lua

  Log Message:
  -----------
  Lua Cave Mapgen: Support [chamber]chance=

The older cave generator supported it, so the new one should too.


  Commit: 50d3aafa81b28774126ddff3db38365a9b2625e8
      https://github.com/wesnoth/wesnoth/commit/50d3aafa81b28774126ddff3db38365a9b2625e8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
    M data/campaigns/Sceptre_of_Fire/scenarios/4_Gathering_Materials.cfg
    M data/lua/cave_map_generator.lua
    M data/lua/mapgen_helper.lua

  Log Message:
  -----------
  Lua Cave Mapgen: Support random chance of flipping the map

This has a similar effect to the flipx_chance and flipy_chance in the old
cave generator, except only one flip will be applied.


  Commit: 43c3b0f8dcc6f5365aa77b409b01a1026076a5f3
      https://github.com/wesnoth/wesnoth/commit/43c3b0f8dcc6f5365aa77b409b01a1026076a5f3
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M data/lua/cave_map_generator.lua

  Log Message:
  -----------
  Lua Cave Mapgen: Support scenario generation

The syntax is mostly the same as the old cave generator - a [scenario_base]
tag for general scenario data, and an [items] subtag of [chamber] for
chamber-specific data. However, the generator assumes that map locations
(from [item_location]) will be used and thus does not support
same_location_as_previous=yes in moveto events within [items].


Compare: https://github.com/wesnoth/wesnoth/compare/f50ed4b747f6...43c3b0f8dcc6


More information about the Commits mailing list