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
1=== modified file 'tribes/atlanteans/shipyard/conf'
2--- tribes/atlanteans/shipyard/conf 2012-02-20 15:54:26 +0000
3+++ tribes/atlanteans/shipyard/conf 2013-01-06 16:42:22 +0000
4@@ -2,6 +2,7 @@
5
6 [aihints]
7 build_material=false
8+needs_water=true
9
10 [buildcost]
11 trunk=3
12
13=== modified file 'tribes/atlanteans/toolsmithy/conf'
14--- tribes/atlanteans/toolsmithy/conf 2012-02-15 21:25:34 +0000
15+++ tribes/atlanteans/toolsmithy/conf 2013-01-06 16:42:22 +0000
16@@ -20,6 +20,7 @@
17
18 [aihints]
19 build_material=false
20+is_basic=true
21
22 [working positions]
23 toolsmith=1
24
25=== modified file 'tribes/barbarians/metalworks/conf'
26--- tribes/barbarians/metalworks/conf 2012-02-15 21:25:34 +0000
27+++ tribes/barbarians/metalworks/conf 2013-01-06 16:42:22 +0000
28@@ -28,6 +28,7 @@
29
30 [aihints]
31 build_material=false
32+is_basic=true
33
34 [programs]
35 produce_felling_axe=_Produce felling axe
36
37=== modified file 'tribes/barbarians/shipyard/conf'
38--- tribes/barbarians/shipyard/conf 2012-03-01 16:15:56 +0000
39+++ tribes/barbarians/shipyard/conf 2013-01-06 16:42:22 +0000
40@@ -2,6 +2,7 @@
41
42 [aihints]
43 build_material=false
44+needs_water=true
45
46 [buildcost]
47 trunk=3
48
49=== modified file 'tribes/empire/shipyard/conf'
50--- tribes/empire/shipyard/conf 2012-03-01 22:35:05 +0000
51+++ tribes/empire/shipyard/conf 2013-01-06 16:42:22 +0000
52@@ -2,6 +2,7 @@
53
54 [aihints]
55 build_material=false
56+needs_water=true
57
58 [buildcost]
59 trunk=3
60
61=== modified file 'tribes/empire/toolsmithy/conf'
62--- tribes/empire/toolsmithy/conf 2012-02-15 21:25:34 +0000
63+++ tribes/empire/toolsmithy/conf 2013-01-06 16:42:22 +0000
64@@ -21,6 +21,7 @@
65
66 [aihints]
67 build_material=false
68+is_basic=true
69
70 [working positions]
71 toolsmith=1

Subscribers

People subscribed via source and target branches

to status/vote changes: