Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Stop AI from clogging up droid attack queues #597

Closed

Description

@wzdev-ci

keyword_path-finding_AI resolution_fixed type_bug | by Per


When AI sends massive armies to attack, they often get clogged up and stuck completely by droids on their way back to repair. This patch fixes this problem by introducing a hack for AI only that detects if a droid is stuck, and if so, resets its current order.

Attached is a savegame to demonstrate that the patch works, to dramatic effect. I am playing alone against 7 allied AIs on Miza, and it seems like I am keeping them at bay... until you look outside the base (use vision cheat). Compile in patch, and watch the AI tear me apart in short order.

I do not claim this to be a "good" or "well designed" fix, only that it works.

Also attached is another fix for a bug I found during testing.


Issue migrated from trac:597 at 2022-04-15 18:51:39 -0700

Activity

  1. wzdev-ci commented on Jun 5, 2009

    @wzdev-ci
    ContributorAuthor

    Per uploaded file fixtarstatcrash.diff (1.7 KiB)

  2. wzdev-ci commented on Jun 5, 2009

    @wzdev-ci
    ContributorAuthor

    Per uploaded file fixdroidclog.diff (0.9 KiB)

  3. wzdev-ci commented on Jun 5, 2009

    @wzdev-ci
    ContributorAuthor

    Buginator commented


    I don't think that was Miza..

    •   fileName	0x016f5d40 "Sk-PFTest"	const char *
      

    So please attach map. :)

  4. wzdev-ci commented on Jun 5, 2009

    @wzdev-ci
    ContributorAuthor

    Per commented


    Oops. Attachment fixed.

  5. wzdev-ci commented on Jun 5, 2009

    @wzdev-ci
    ContributorAuthor

    Buginator commented


    Replying to Warzone2100/old-trac-import#597 (comment:2):

    Oops. Attachment fixed.

    Care for another try?

    error   |10:39:31: [openLoadFile] file savegame/path screwed test.es could not be opened: File not found
    
  6. wzdev-ci commented on Jun 6, 2009

    @wzdev-ci
    ContributorAuthor

    Per uploaded file pathclog.tar.gz (496.7 KiB)

  7. wzdev-ci commented on Jun 6, 2009

    @wzdev-ci
    ContributorAuthor

    Per commented


    Another try... Sorry.

  8. wzdev-ci commented on Jun 8, 2009

    @wzdev-ci
    ContributorAuthor

    Per changed status from new to closed

  9. wzdev-ci commented on Jun 8, 2009

    @wzdev-ci
    ContributorAuthor

    Per set resolution to fixed

  10. wzdev-ci commented on Jun 8, 2009

    @wzdev-ci
    ContributorAuthor

    Per commented


    (In [7698]) When AI sends massive armies to attack, they often get clogged up and stuck completely
    by droids on their way back to repair, or doing other orders. This patch fixes this
    problem by introducing a hack for AI only that detects if a droid is stuck, and if so,
    resets its current order. This closes #597.

  11. wzdev-ci commented on Jun 8, 2009

    @wzdev-ci
    ContributorAuthor

    svnsync commented


    (In [7700]) 2.2: When AI sends massive armies to attack, they often get clogged up and stuck completely
    by droids on their way back to repair, or doing other orders. This patch fixes this
    problem by introducing a hack for AI only that detects if a droid is stuck, and if so,
    resets its current order. This closes #597.

  12. wzdev-ci commented on May 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator removed milestone (was 2.2.1)

  13. wzdev-ci commented on May 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator commented


    Milestone 2.2.1 deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions