AI stocklevel not taken into account for building neededness
Bug #1827279 reported by
hessenfarmer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
the current stocklevel (i.e. shortage of ware) is not taken into account for neeededness of a productionsite building.
I promisingly experimented with the following lines after l5710 in defaultai.cc:
inputs[107] = std::abs(
inputs[108] = std::abs(
however this stalls again. keep analysing
Related branches
lp:~widelands-dev/widelands/AI-fixes
- Benedikt Straub: Approve
- hessenfarmer: Needs Resubmitting
- TiborB: Approve
-
Diff: 411 lines (+73/-48)11 files modifieddata/ai/ai_input_1.wai (+1/-1)
data/ai/ai_input_2.wai (+1/-1)
data/ai/ai_input_3.wai (+1/-1)
data/ai/ai_input_4.wai (+1/-1)
data/tribes/buildings/productionsites/atlanteans/horsefarm/init.lua (+1/-1)
data/tribes/buildings/productionsites/barbarians/barracks/init.lua (+0/-1)
data/tribes/buildings/productionsites/barbarians/cattlefarm/init.lua (+1/-1)
data/tribes/buildings/productionsites/empire/donkeyfarm/init.lua (+1/-1)
data/tribes/wares/coal/init.lua (+4/-4)
src/ai/defaultai.cc (+62/-35)
src/ai/defaultai.h (+0/-1)
tags: | added: ai |
Changed in widelands: | |
status: | New → In Progress |
milestone: | none → build21-rc1 |
assignee: | nobody → hessenfarmer (stephan-lutz) |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
assignee: | hessenfarmer (stephan-lutz) → nobody |
To post a comment you must log in.
I plan resume training soon, so you can just add more such lines and let AI training cope with them...