[Commits] [wesnoth/wesnoth] 70e3fc: Micro AIs: add check for valid attacks and error m...
GitHub
noreply at github.com
Fri Feb 28 01:06:26 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 70e3fc58bd746d8549266a01d4a74a4d59ce7a19
https://github.com/wesnoth/wesnoth/commit/70e3fc58bd746d8549266a01d4a74a4d59ce7a19
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/micro_ais/cas/ca_big_animals.lua
M data/ai/micro_ais/cas/ca_bottleneck_attack.lua
M data/ai/micro_ais/cas/ca_bottleneck_move.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua
M data/ai/micro_ais/cas/ca_herding_attack_close_enemy.lua
M data/ai/micro_ais/cas/ca_hunter.lua
M data/ai/micro_ais/cas/ca_lurkers.lua
M data/ai/micro_ais/cas/ca_messenger_attack.lua
M data/ai/micro_ais/cas/ca_messenger_move.lua
M data/ai/micro_ais/cas/ca_patrol.lua
M data/ai/micro_ais/cas/ca_protect_unit_attack.lua
M data/ai/micro_ais/cas/ca_simple_attack.lua
M data/ai/micro_ais/cas/ca_stationed_guardian.lua
M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
M data/ai/micro_ais/cas/ca_zone_guardian.lua
Log Message:
-----------
Micro AIs: add check for valid attacks and error message
This will now check whether the attack intended to be done with
ai.attack is possible and display an error message if it is not.
Commit: c06529aa185b059c52c21311392dcf8802b49b9e
https://github.com/wesnoth/wesnoth/commit/c06529aa185b059c52c21311392dcf8802b49b9e
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/micro_ais/cas/ca_goto.lua
Log Message:
-----------
Micro AIs: add check for valid full move and error message
This now checks whether the move intended to be done with ai.move_full
is possible and display an error message if it is not.
Commit: f0506b2d316bee2ba7713aeae8f98493d99b6532
https://github.com/wesnoth/wesnoth/commit/f0506b2d316bee2ba7713aeae8f98493d99b6532
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/micro_ais/cas/ca_big_animals.lua
M data/ai/micro_ais/cas/ca_bottleneck_move.lua
M data/ai/micro_ais/cas/ca_forest_animals_move.lua
M data/ai/micro_ais/cas/ca_hang_out.lua
M data/ai/micro_ais/cas/ca_herding_herd_sheep.lua
M data/ai/micro_ais/cas/ca_herding_sheep_move.lua
M data/ai/micro_ais/cas/ca_hunter.lua
M data/ai/micro_ais/cas/ca_messenger_move.lua
M data/ai/micro_ais/cas/ca_patrol.lua
Log Message:
-----------
Micro AIs: add check for valid move and error message
This now checks whether the move intended to be done with ai.move is
possible and display an error message if it is not.
Commit: 835194eee48f90bd5047600a8914c87970aef491
https://github.com/wesnoth/wesnoth/commit/835194eee48f90bd5047600a8914c87970aef491
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/micro_ais/cas/ca_big_animals.lua
M data/ai/micro_ais/cas/ca_bottleneck_attack.lua
M data/ai/micro_ais/cas/ca_bottleneck_move.lua
M data/ai/micro_ais/cas/ca_coward.lua
M data/ai/micro_ais/cas/ca_forest_animals_move.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusklet_move.lua
M data/ai/micro_ais/cas/ca_goto.lua
M data/ai/micro_ais/cas/ca_hang_out.lua
M data/ai/micro_ais/cas/ca_herding_herd_sheep.lua
M data/ai/micro_ais/cas/ca_hunter.lua
M data/ai/micro_ais/cas/ca_lurkers.lua
M data/ai/micro_ais/cas/ca_messenger_move.lua
M data/ai/micro_ais/cas/ca_patrol.lua
M data/ai/micro_ais/cas/ca_stationed_guardian.lua
M data/ai/micro_ais/cas/ca_zone_guardian.lua
Log Message:
-----------
Micro AIs: add check for valid stopunit execution and error message
This now checks whether the stopunit execution intended to be done with
ai.stopunit_all, ai.stopunit_attacks or ai.stopunit_moves is possible
and displays an error message if it is not.
Commit: d3e9cb39573853b7b9c712f27abbe3c6e2047e2f
https://github.com/wesnoth/wesnoth/commit/d3e9cb39573853b7b9c712f27abbe3c6e2047e2f
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/micro_ais/cas/ca_recruit_random.lua
Log Message:
-----------
Micro AIs: add check for valid recruiting and error message
This now checks whether the recruiting intended to be done with
ai.recruit is possible and displays an error message if it is not.
Commit: 947cbb2a45ff8ca23f3cefb0e32bad2bc29c8225
https://github.com/wesnoth/wesnoth/commit/947cbb2a45ff8ca23f3cefb0e32bad2bc29c8225
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/micro_ais/cas/ca_forest_animals_move.lua
Log Message:
-----------
Forest Animals MAI: remove incorrect wesnoth.put_unit
This needs to be in a synchronized event, which was added right below,
but apparently I forgot to remove this line.
Commit: b7bc394f95d6273f2527747f46c04750dd5ff225
https://github.com/wesnoth/wesnoth/commit/b7bc394f95d6273f2527747f46c04750dd5ff225
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/lua/ai_helper.lua
Log Message:
-----------
Micro AIs: improve error reporting
Use error() instead of wesnoth.message(), as this also produces a stack
traceback.
Commit: 95212970b8427023f51f7a889a485105bc2cfc29
https://github.com/wesnoth/wesnoth/commit/95212970b8427023f51f7a889a485105bc2cfc29
Author: mattsc <mattsc000 at gmail.com>
Date: 2014-02-27 (Thu, 27 Feb 2014)
Changed paths:
M data/ai/micro_ais/cas/ca_big_animals.lua
M data/ai/micro_ais/cas/ca_bottleneck_move.lua
M data/ai/micro_ais/cas/ca_coward.lua
M data/ai/micro_ais/cas/ca_forest_animals_move.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua
M data/ai/micro_ais/cas/ca_forest_animals_tusklet_move.lua
M data/ai/micro_ais/cas/ca_goto.lua
M data/ai/micro_ais/cas/ca_hang_out.lua
M data/ai/micro_ais/cas/ca_hunter.lua
M data/ai/micro_ais/cas/ca_lurkers.lua
M data/ai/micro_ais/cas/ca_messenger_attack.lua
M data/ai/micro_ais/cas/ca_messenger_move.lua
M data/ai/micro_ais/cas/ca_patrol.lua
M data/ai/micro_ais/cas/ca_protect_unit_attack.lua
M data/ai/micro_ais/cas/ca_simple_attack.lua
M data/ai/micro_ais/cas/ca_stationed_guardian.lua
M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
M data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua
M data/ai/micro_ais/cas/ca_zone_guardian.lua
Log Message:
-----------
Micro AIs: fix errors caused when WML events interfere with AI actions
If a WML event takes a unit off the map, many of the AIs would
previously have run into problems by trying to access a unit that is
then not there any more. Thus, the existence of the unit needs to be
verified before continuing in cases when this would cause errors.
Compare: https://github.com/wesnoth/wesnoth/compare/ca2eec45b96f...95212970b842
More information about the Commits
mailing list