#3837: Some fixes for Nexus and Semperfi AIs
 Reporter:  NoQ                                  |             Owner:  Per
     Type:  patch (an actual patch, not a        |            Status:  new
  request for one)                               |         Milestone:
 Priority:  normal                               |  unspecified
Component:  Engine: Scripting / AI               |           Version:
 Keywords:                                       |  unspecified
 Blocking:                                       |        Blocked By:
                                                 |  Operating System:  All
                                                 |  /Non-Specific
 Following a talk in
 http://forums.wz2100.net/viewtopic.php?f=42&t=10010&p=114804#p114793 , i
 propose several patches to our wzscript AIs (Nexus and Semperfi).

 This patch addresses the following bug that affects both 3.1 and master:
 AI sometimes starts building a module but then abandons it and goes
 building something else. I didn't really understand why does the bug
 occur, but this patch seems to fix the most critical part of the problem:
 when starting in, for example, T3 no bases setting the AI leaves a
 generator half-upgraded and then gets stuck with no power.

 This patch further fixes Nexus and Semperfi to not get stuck with no power
 by disabling certain procedures unless it starts having income. This,
 together with the previous patch, is a critical fix to make AIs work at
 all in T3 no bases mode on master (for instance, the AI will no longer
 spend $450 on a research project when it didn't build a power generator
 yet) and probably necessary on 3.1 (didn't test; the only difference is
 starting conditions, i think). In fact, even in T1 no bases mode several
 cases of AI getting stuck with no power were observed on master (in rare
 events when he somehow sends both original trucks to build derricks).

 Since we are digging into wzscript again anyway, i propose this little fix
 for the most annoying issue of the original AI: never attacking you with
 cyborgs (only with supercyborgs on the very late game phase). The
 defensive function of cyborgs is still preserved. Patching Semperfi only,
 because we want Nexus to be close to the original AI.

Ticket URL: <http://developer.wz2100.net/ticket/3837>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
Warzone2100-project mailing list

Reply via email to