Ticket #879 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Disable FoW for AI players

Reported by: Philip Owned by:
Priority: Must Have Milestone: Alpha 6
Component: Core engine Keywords:
Cc:

Description

r9657 made UnitAI take account of FoW and refuse to move to targets unless they're visible. The AI players cheat and ignore FoW (to avoid a load of extra complexity and pain), but now their units will probably refuse orders and cause confusion if the AI decides to attack a hidden enemy. Things should be changed so the whole map is always revealed (from the perspective of GetLosVisibility at least) to AI players.

Change History

comment:1 Changed 2 years ago by k776

I don't agree. I think the AI's should be limited to what players can do, and require that they send out scouts, just like everyone has to. Same would apply for AI harvesting. They need to find the resources first.

comment:2 Changed 2 years ago by Jubal

Sooo, I should start getting the AI making scouts then?

comment:3 Changed 2 years ago by Philip

In an ideal world the AI would be perfectly fair and respect FoW, but I expect that would add a huge amount of complexity to the AI implementation so it's not something we should do now.

comment:4 Changed 2 years ago by Philip

I think Gaia needs to act as if everything is visible, too.

comment:5 Changed 2 years ago by philip

  • Status changed from new to closed
  • Resolution set to fixed

(In [9720]) Add per-player LOS-reveal flag. Reveal LOS for Gaia and AI players (fixes #879). Use player_id_t slightly more consistently in interfaces.

Note: See TracTickets for help on using tickets.