Merge lp:~widelands-dev/widelands/prevent_ai_deadlocks into lp:widelands/build19
Proposed by
GunChleoc
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | GunChleoc | ||||
Proposed branch: | lp:~widelands-dev/widelands/prevent_ai_deadlocks | ||||
Merge into: | lp:widelands/build19 | ||||
Diff against target: |
254 lines (+112/-5) 9 files modified
data/tribes/scripting/starting_conditions/atlanteans/fortified_village.lua (+6/-0) data/tribes/scripting/starting_conditions/atlanteans/headquarters.lua (+6/-0) data/tribes/scripting/starting_conditions/barbarians/fortified_village.lua (+5/-0) data/tribes/scripting/starting_conditions/barbarians/headquarters.lua (+5/-0) data/tribes/scripting/starting_conditions/empire/fortified_village.lua (+5/-0) data/tribes/scripting/starting_conditions/empire/headquarters.lua (+5/-0) data/tribes/scripting/starting_conditions/prevent_deadlocks.lua (+55/-0) src/scripting/lua_game.cc (+24/-5) src/scripting/lua_game.h (+1/-0) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/prevent_ai_deadlocks | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Disapprove | ||
Tino | Disapprove | ||
Review via email: mp+309727@code.launchpad.net |
Commit message
Added function to starting conditions to make sure that the AI never runs out of basic building materials in order to prevent deadlocks.
Description of the change
Deadlocks with log production have been reported on the forum by multiple users. Rather than messing with the AI code and potentially messing up something else, I have added a script to the starting conditions that will supply all wares that can cause deadlocks - same trick as used by Trading Outpost. The wares supplied are log and granite for all tribes, marble for Empire and spidercloth for Atlanteans. Let me know if I forgot any.
To post a comment you must log in.
I strongly disagree. This is a step to slippery slope - once you get there we might never stop adding some cheatings to help AI. Moreover we already have cheating mode - Trading post.
As I understand all that is needed is to add more logs for atlanteans when starting in village mode. Somehow this setup was not tested and obviously almost nobody is using this...
We spend a lot of time and effort to make AI not deadlock on start, and this make me feel bad...