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

Stop AI from clogging up droid attack queues #597

Closed
wzdev-ci opened this issue Jun 5, 2009 · 13 comments
Closed

Stop AI from clogging up droid attack queues #597

wzdev-ci opened this issue Jun 5, 2009 · 13 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Jun 5, 2009

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

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 5, 2009

Per uploaded file fixtarstatcrash.diff (1.7 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 5, 2009

Per uploaded file fixdroidclog.diff (0.9 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 5, 2009

Buginator commented


I don't think that was Miza..

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

So please attach map. :)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 5, 2009

Per commented


Oops. Attachment fixed.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 5, 2009

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

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 6, 2009

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

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 6, 2009

Per commented


Another try... Sorry.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 8, 2009

Per changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 8, 2009

Per set resolution to fixed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 8, 2009

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.

@wzdev-ci wzdev-ci closed this as completed Jun 8, 2009
@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jun 8, 2009

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.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 8, 2010

Buginator removed milestone (was 2.2.1)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 8, 2010

Buginator commented


Milestone 2.2.1 deleted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant