Merge lp:~ad-simplypeachy/widelands/ai-hints into lp:widelands

Proposed by _aD
Status: Merged
Merged at revision: 6660
Proposed branch: lp:~ad-simplypeachy/widelands/ai-hints
Merge into: lp:widelands
Diff against target: 71 lines (+6/-0)
6 files modified
tribes/atlanteans/shipyard/conf (+1/-0)
tribes/atlanteans/toolsmithy/conf (+1/-0)
tribes/barbarians/metalworks/conf (+1/-0)
tribes/barbarians/shipyard/conf (+1/-0)
tribes/empire/shipyard/conf (+1/-0)
tribes/empire/toolsmithy/conf (+1/-0)
To merge this branch: bzr merge lp:~ad-simplypeachy/widelands/ai-hints
Reviewer Review Type Date Requested Status
Nicolai Hähnle Needs Fixing
Nasenbaer Needs Information
Review via email: mp+142038@code.launchpad.net

Commit message

Improved AI hints for shipyard and toolsmithy/metalwork shops.

Description of the change

The AI was building shipyards with no water in range and the toolsmithys/metalworks were not marked as basic, and were not being built early enough. The latter seemed to be crippling the AI's progress quite often. AI hints sections now fixed.

To post a comment you must log in.
Revision history for this message
Nasenbaer (nasenbaer) wrote :

I am a bit split towards this change - I have not checked the effect of this patch, however the idea I had when implementing the "is_basic" feature was, to force the defaultAI to build some build resource producing buildings faster than al the others - so e.g. wood hardener, as blackwood is very important for building up other buildings.

Therefor I am almost against this fix - the right way imho would be to fix/improve the "decission function" of the defaultAI where it is decided what buildings should be build next.

Maybe the positive effect of this branch could be achieved with carlis AI fixes... but I haven't tested it, yet.

review: Needs Information
Revision history for this message
_aD (ad-simplypeachy) wrote :

While carli was looking at the AI I also set a game of AIs against each other and saw that three of them had no toolsmithy which had prevented further expansion - it was most pronounced with the Empire. I'm not sure about others but I always build a toolsmithy early on and thought this would solve the problem. If it's better fixed in the AI logic then so be it. Thanks for the feedback.

Revision history for this message
Nicolai Hähnle (nha) wrote :

What's the status of this? It seems to me that at least the shipyard part should be merged.

review: Needs Fixing
Revision history for this message
SirVer (sirver) wrote :

ping?

Revision history for this message
SirVer (sirver) wrote :

Peter, could you have another look over this. I think Nicolai is correct that at least the Shipyard part should get merged?

Revision history for this message
SirVer (sirver) wrote :

I now define: A toolsmithy is basic. So I merge this. Should the decision in the default AI get better we might get rid of all the hints, but for now, they seem to improve things.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tribes/atlanteans/shipyard/conf'
--- tribes/atlanteans/shipyard/conf 2012-02-20 15:54:26 +0000
+++ tribes/atlanteans/shipyard/conf 2013-01-06 16:42:22 +0000
@@ -2,6 +2,7 @@
22
3[aihints]3[aihints]
4build_material=false4build_material=false
5needs_water=true
56
6[buildcost]7[buildcost]
7trunk=38trunk=3
89
=== modified file 'tribes/atlanteans/toolsmithy/conf'
--- tribes/atlanteans/toolsmithy/conf 2012-02-15 21:25:34 +0000
+++ tribes/atlanteans/toolsmithy/conf 2013-01-06 16:42:22 +0000
@@ -20,6 +20,7 @@
2020
21[aihints]21[aihints]
22build_material=false22build_material=false
23is_basic=true
2324
24[working positions]25[working positions]
25toolsmith=126toolsmith=1
2627
=== modified file 'tribes/barbarians/metalworks/conf'
--- tribes/barbarians/metalworks/conf 2012-02-15 21:25:34 +0000
+++ tribes/barbarians/metalworks/conf 2013-01-06 16:42:22 +0000
@@ -28,6 +28,7 @@
2828
29[aihints]29[aihints]
30build_material=false30build_material=false
31is_basic=true
3132
32[programs]33[programs]
33produce_felling_axe=_Produce felling axe34produce_felling_axe=_Produce felling axe
3435
=== modified file 'tribes/barbarians/shipyard/conf'
--- tribes/barbarians/shipyard/conf 2012-03-01 16:15:56 +0000
+++ tribes/barbarians/shipyard/conf 2013-01-06 16:42:22 +0000
@@ -2,6 +2,7 @@
22
3[aihints]3[aihints]
4build_material=false4build_material=false
5needs_water=true
56
6[buildcost]7[buildcost]
7trunk=38trunk=3
89
=== modified file 'tribes/empire/shipyard/conf'
--- tribes/empire/shipyard/conf 2012-03-01 22:35:05 +0000
+++ tribes/empire/shipyard/conf 2013-01-06 16:42:22 +0000
@@ -2,6 +2,7 @@
22
3[aihints]3[aihints]
4build_material=false4build_material=false
5needs_water=true
56
6[buildcost]7[buildcost]
7trunk=38trunk=3
89
=== modified file 'tribes/empire/toolsmithy/conf'
--- tribes/empire/toolsmithy/conf 2012-02-15 21:25:34 +0000
+++ tribes/empire/toolsmithy/conf 2013-01-06 16:42:22 +0000
@@ -21,6 +21,7 @@
2121
22[aihints]22[aihints]
23build_material=false23build_material=false
24is_basic=true
2425
25[working positions]26[working positions]
26toolsmith=127toolsmith=1

Subscribers

People subscribed via source and target branches

to status/vote changes: