Comments (2)
After some debugging and testing I found that code in method
AIResourceMap::findBestPosition(const MapPoint& pt, BuildingQuality size, unsigned radius, int minimum)
inAIResourceMap.cpp
never go past the condition
if(!aiMap[idx].reachable || !aiMap[idx].owned || aiMap[idx].farmed) continue;
That is completely fine: It tries to find a position for building a fishery not a fish position. See the next line that checks the BQ of that point:
The issue here is that the calculation of the AI ResourceMaps has a serious bug. Specifically the incremental update which is intended to save computation time is wrong and likely the initial computation is too (that part that uses the previously calculated value)
I always wanted to write a good test for that and fix it for good which should make the AI much better as it is currently running with an immense handicap.
See the original issue for more details: #933 Closing this as a duplicate
from s25client.
Thanks for the clarification! I'll take a closer look on the original issue.
from s25client.
Related Issues (20)
- Issue opening game on macOS 3/4 of window is red HOT 22
- Boats row ashore if there is a warehouse HOT 5
- Cannot start map "The Snake" HOT 2
- Trouble building s25client on Mac HOT 2
- IPv6 Hosting is not working correctly
- Automatic activity window placement not working as expected
- [LUA] PatchMap functionality required HOT 3
- Window snapping is 2 pixel off
- Crash in Replay (which has also been ingame)
- Ready to use Slovakian, Czech and Polish fonts HOT 1
- path and filenames for lua files are case sensitive HOT 2
- [Campaign] Can not set maptitle HOT 2
- Add support for campaign status HOT 9
- can no longer start on Osx High Sierra 10.13.6 (17G14042) HOT 2
- Audio driver not loaded on OSX 14.2.1
- Integrate optional upscaling model HOT 2
- No sound with pipewire HOT 2
- Römer Kampagne - 7 Die Schlange - kann nicht starten HOT 1
- VirusTotal detected virus HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s25client.