A few weeks ago I asked for help in this forum about a scenario I'm making. The problem was that the AI would not build ships. Well, the problem has been solved, and I have stumbled upon the real reason why there was a problem in the first place.
The reason was that I had used the mapcopy utility to bring an updated map into the scenario, but I didn't use mapcopy properly!
What you need to do, and this is clearly stated in the mapcopy documentation, is use the ANALYZE MAP function in the civ ii map editor. This updates the map file with something called the "body counter". Each land mass in the map is assigned a number and each tile belonging to the land mass gets that number. You can see that number to the right of the coordinates of a terrain tile in the game.
If you don't use the ANALYZE MAP function before saving your map, what gets imported into the scenario file are "body counter" values of zero. The AI uses these values for trade calculations and apparently for deciding whether to build land or sea units. With one apparent land mass, why build ships?
Somewhere along the line, I must have reimported an analyzed map into the scenario and fixed the problem without knowing it. Before I had thought the AI problem had something to do with population values or unit values, but this was surely not the case.
All of this brings up a question. If you start a regular civ game with a map that has not had an analyze map done to it, will that game's AI be all fouled up?
The reason was that I had used the mapcopy utility to bring an updated map into the scenario, but I didn't use mapcopy properly!
What you need to do, and this is clearly stated in the mapcopy documentation, is use the ANALYZE MAP function in the civ ii map editor. This updates the map file with something called the "body counter". Each land mass in the map is assigned a number and each tile belonging to the land mass gets that number. You can see that number to the right of the coordinates of a terrain tile in the game.
If you don't use the ANALYZE MAP function before saving your map, what gets imported into the scenario file are "body counter" values of zero. The AI uses these values for trade calculations and apparently for deciding whether to build land or sea units. With one apparent land mass, why build ships?
Somewhere along the line, I must have reimported an analyzed map into the scenario and fixed the problem without knowing it. Before I had thought the AI problem had something to do with population values or unit values, but this was surely not the case.
All of this brings up a question. If you start a regular civ game with a map that has not had an analyze map done to it, will that game's AI be all fouled up?
Comment