HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dudes hugging the town hall?

04-07-2009, 12:47 AM#1
Auumar
Okay, so I'm starting a TC. I've only just changed a few of the Night Elf stuff to become the Deep Hive. Archers, Huntresses, a single hero, ect.

I also changed the wisps to work like normal workers. Except the default AI didn't like that. So I threw in AMAI to see if it'd fix them and actually do stuff.

Well, the workers are fine now, but all of the units the AI produces just hug the town hall and flail around and never go anywhere. The hero goes off to suicide creeps and enemy bases and stuff, but the regular dudes don't do anything.

Originally this was suspected because I made the town hall 16x16 instead of 8x8; I fixed that and reduced the collision and everything, but they're still doing it. The town hall also has a modified unholy aura.

When attacked the dudes come out, but they very rarely attack, like they're getting spammed with stop commands or something. Other then that the AI seems to be working other than spamming me with notifications about attacks and stuff that it never actually does.

The other races appear to work fine. I haven't actually changed anything in AMAI yet.

/update

I've narrowed down the cause of the problem to seem to be the units themselves. I removed their backpack upgrades, made them quite a bit smaller, and only have around 80-100 HP each, plus they're very cheap.

/update

Similar changes to the other races have not yielded this bug. Could really use some help, here.
04-07-2009, 04:08 PM#2
Strategy Master
@Auumar: The units have less than 100 health which is the problem as AMAI thinks those units need healing.

I really should add some conditional code so it only applies the healing code if they are not at 100% health. That would prevent these problems.

For now the only way you could fix is if you re-compiled AMAI with the developer edition but changed the flee_minimum_health global setting to something less than 100.
04-07-2009, 11:44 PM#3
Auumar
Aaah. I see. I thought it might be something like that. Thanks for the info.

Where is this value located?

/edit Actually now that I think about it, it's probably in the perl GUI isn't it? I haven't really looked around yet.