[wesnoth-commits] [wesnoth/wesnoth] b8d1ef: Experimental AI: make AI recruit higher level units

mattsc noreply at github.com
Thu Oct 17 14:09:55 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b8d1ef94f0552571a3c0d4095280256840367ac6
      https://github.com/wesnoth/wesnoth/commit/b8d1ef94f0552571a3c0d4095280256840367ac6
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-10-08 (Tue, 08 Oct 2019)

  Changed paths:
    M data/ai/lua/generic_recruit_engine.lua

  Log Message:
  -----------
  Experimental AI: make AI recruit higher level units

Because unit cost is penalized in the ExpAI, it recruits almost no higher level units. This adds a bonus for such units to be recruited at approximately the ratio defined in 'high_level_fraction'.


  Commit: 6dc199d4f895db0936de931534c19f4d9ed91544
      https://github.com/wesnoth/wesnoth/commit/6dc199d4f895db0936de931534c19f4d9ed91544
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-10-08 (Tue, 08 Oct 2019)

  Changed paths:
    M data/ai/lua/ca_recruit_rushers.lua
    M data/ai/lua/generic_recruit_engine.lua
    M data/ai/micro_ais/cas/ca_recruit_rushers.lua
    M data/ai/micro_ais/mai-defs/recruiting.lua
    M data/core/macros/ai.cfg

  Log Message:
  -----------
  ExpAI recruiting: make high_level_fraction parameter configurable

This also sets its default value to zero, in order to have consistent default behavior with versions from before this parameter was introduced.

It also provides a macro so that the ExpAI can be used with custom parameters in a scenario config, and adds high_level_fraction as an optional parameter to the Recruit Rushers Micro AI.


  Commit: a51dee6761dfa6209067366dc68cd05cbf0ec952
      https://github.com/wesnoth/wesnoth/commit/a51dee6761dfa6209067366dc68cd05cbf0ec952
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-10-08 (Tue, 08 Oct 2019)

  Changed paths:
    M data/ai/lua/ca_recruit_rushers.lua

  Log Message:
  -----------
  Exp AI recruiting: add randomness as an optional parameter

This was already an optional parameter for the Recruit Rushers Micro AI.


  Commit: cbf99a6f007ecb6c881b214e5b1ad28f4053bdea
      https://github.com/wesnoth/wesnoth/commit/cbf99a6f007ecb6c881b214e5b1ad28f4053bdea
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-10-08 (Tue, 08 Oct 2019)

  Changed paths:
    M data/ai/lua/generic_recruit_engine.lua

  Log Message:
  -----------
  Fred ExpAI recruiting: set initial conditions for first recruit

Without this, the AI always starts with whatever it considers the best unit without taking the level bonus into account. This mostly only matters when one sets high_level_fraction to a very large value (1 or larger) in order to force only high-level recruits. In other cases it makes no, or no significant, difference.


  Commit: bdf5421fd5ba72aaa7eebaa38213da7cd7d2d878
      https://github.com/wesnoth/wesnoth/commit/bdf5421fd5ba72aaa7eebaa38213da7cd7d2d878
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-10-17 (Thu, 17 Oct 2019)

  Changed paths:
    M data/ai/lua/ca_recruit_rushers.lua
    M data/ai/lua/generic_recruit_engine.lua
    M data/ai/micro_ais/cas/ca_recruit_rushers.lua
    M data/ai/micro_ais/mai-defs/recruiting.lua
    M data/core/macros/ai.cfg

  Log Message:
  -----------
  Merge pull request #4437 from mattsc/expai_recuit_higher_levels

Experimental AI: make AI recruit higher level units


Compare: https://github.com/wesnoth/wesnoth/compare/ce4901e92cc4...bdf5421fd5ba



More information about the Commits mailing list