View Full Version : Has anyone "cracked" somehow the air recon problem?


Mik1984
May 20, 2008, 06:22 PM
The lack of continuous air recon missions are arguably the biggest endgame nuisance in this game. Has anyone found some unofficial way to solve the problem?

General Tso
May 26, 2008, 07:47 AM
If anybody has an answer to this question, I'd be interested in hearing it also.

Yakk
May 26, 2008, 12:29 PM
setReconPlot(NULL);
in void CvUnit::doTurn()

The hard part will be tracking down a way to make all air units lose their recon location when you give them another mission.

Hmm.

CvSelectionGroup::startMission(). If the group is given any mission other than recon, do a setReconPlot(NULL)?

This still leaves open the exploit of reconing location A, then B, then A, then B -- as each recon lasts into your next turn.

The "recon" visibility scan could also automatically drain a move from the unit doing the recon (sort of a hack, because a save/load on a multi-move air unit could drain more moves...)

Really, there needs to be an "airwatch" and a "recon" command. Airwatch doesn't reset every turn (and drains your move next turn as well!), while recon does reset every turn? The AI is perfectly capable of using recon each turn -- so the Airwatch option could be player-only (no need to teach the AI about it).

SerriaFox
May 26, 2008, 03:42 PM
Maybe function at the start of your turn: Would you like to repeat your recon missions?

click yes or no, it would still be annoying because it would pop up every turn but it will still allow you to re task them to bomb invaders if your formally lovable neighbor decided to declare war.

one pop up then every recon unit flying its mission from the last turn would be less annoying than getting ask to do every recon again.

Yakk
May 26, 2008, 04:02 PM
Sadly, when you bomb an area you both do the bombing, and you set up a recon for that location.

So a naive implementation won't work.

xienwolf
May 27, 2008, 10:55 AM
It seems to me that the easiest way in which to accomplish this would be as follows:


Change ReconPlot to be a relative value, ie - 2 Tiles north of the unit
Make the Recon Mission set the ReconPlot, but otherwise do nothing
At the start of the turn, instead of setting the ReconPlot back to NULL, perform the Recon at pPlot + ReconPlot location
Set the execution of any mission to clear the ReconPlot back to NULL before the mission is executed.


This way you will have all of the Recon happen at the start of the turn automatically, you will still only get 1 Recon area per unit, and you will only be able to Recon if you did not perform a different mission the turn before (with the exception of Bombing, but you will still only wind up with a Recon at the start of the next turn, not an auto-bomb).

Yakk
May 27, 2008, 12:49 PM
But then you don't get immediate recon. (And there are some other complications to make it work, btw)