Jump to content

Further AI development


Recommended Posts

Occasional error occurs again, then the error message disappears.
When my army at war with the enemy army many times. :fool::unknw: :rtfm:

<h2>0 A.D. Main log (warnings and errors only)</h2>
<p class="error">ERROR: JavaScript error: simulation/components/UnitAI.js line 1755
TypeError: cmpFormation is null
()@simulation/components/UnitAI.js:1755
([object Object],"INDIVIDUAL.COMBAT.ATTACKING")@simulation/helpers/FSM.js:376
([object Object],[object Object])@simulation/helpers/FSM.js:284
([object Object])@simulation/components/UnitAI.js:3739</p>
<p class="error">ERROR: Script message handler OnMotionChanged failed</p>
<p class="error">ERROR: JavaScript error: simulation/components/UnitAI.js line 1755
TypeError: cmpFormation is null
()@simulation/components/UnitAI.js:1755
([object Object],"INDIVIDUAL.COMBAT.ATTACKING")@simulation/helpers/FSM.js:376
([object Object],[object Object])@simulation/helpers/FSM.js:284
([object Object])@simulation/components/UnitAI.js:3739</p>
<p class="error">ERROR: Script message handler OnMotionChanged failed</p>
<p class="error">ERROR: JavaScript error: simulation/components/UnitAI.js line 1755
TypeError: cmpFormation is null

Link to comment
Share on other sites

Occasional error occurs again, then the error message disappears.

When my army at war with the enemy army many times. :fool::unknw: :rtfm:

<h2>0 A.D. Main log (warnings and errors only)</h2>

<p class="error">ERROR: JavaScript error: simulation/components/UnitAI.js line 1755

TypeError: cmpFormation is null

()@simulation/components/UnitAI.js:1755

([object Object],"INDIVIDUAL.COMBAT.ATTACKING")@simulation/helpers/FSM.js:376

([object Object],[object Object])@simulation/helpers/FSM.js:284

([object Object])@simulation/components/UnitAI.js:3739</p>

<p class="error">ERROR: Script message handler OnMotionChanged failed</p>

<p class="error">ERROR: JavaScript error: simulation/components/UnitAI.js line 1755

Should be fixed now: http://trac.wildfiregames.com/changeset/14726

Link to comment
Share on other sites

Thank you very much to fix this problem. :lol2: :lol2: :pleasantry::pleasantry::pleasantry::lol2:

Another problem: If you try to save a loaded again, you will find the enemy's army will not attack like a flood, like you, they will guard their buildings and resources, and workers will no longer collect resources, and they stood beside the building next to the resource does not move :taz::taz::taz::taz::taz:

I'm sorry, the occasional new error occurs again, when the battle is about to end, I'm building an army to attack the last enemy, an error message appears, disappears later.

<p class="error">ERROR: JavaScript error: simulation/ai/aegis/base-manager.js line 854
TypeError: workers is undefined
([object Object],2)@simulation/ai/aegis/base-manager.js:854
([object Object],1,2)@simulation/ai/aegis/headquarters.js:441
([object Object])@simulation/ai/aegis/base-manager.js:903
([object Object],[object Object],[object Object])@simulation/ai/aegis/base-manager.js:1021
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1158
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>
<p class="error">ERROR: JavaScript error: simulation/ai/aegis/base-manager.js line 854

Edited by gameboy
Link to comment
Share on other sites

New Error and Old error again!

TypeError: workers is undefined
([object Object],2)@simulation/ai/aegis/base-manager.js:854
([object Object],1,2)@simulation/ai/aegis/headquarters.js:441
([object Object])@simulation/ai/aegis/base-manager.js:903
([object Object],[object Object],[object Object])@simulation/ai/aegis/base-manager.js:1021
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1158
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>
<p class="error">ERROR: JavaScript error: simulation/ai/aegis/army-defense.js line 84
TypeError: this.recalculateStrength is not a function
([object Object])@simulation/ai/aegis/army-defense.js:84
([object Object])@simulation/ai/aegis/defence.js:160
([object Object],[object Object],[object Object])@simulation/ai/aegis/defence.js:27
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1163
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>
<p class="error">ERROR: JavaScript error: simulation/ai/aegis/army-defense.js line 84
TypeError: this.recalculateStrength is not a function
([object Object])@simulation/ai/aegis/army-defense.js:84
([object Object])@simulation/ai/aegis/defence.js:160
([object Object],[object Object],[object Object])@simulation/ai/aegis/defence.js:27
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1163
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>
<p class="error">ERROR: JavaScript error: simulation/ai/aegis/army-defense.js line 84
TypeError: this.recalculateStrength is not a function
([object Object])@simulation/ai/aegis/army-defense.js:84
([object Object])@simulation/ai/aegis/defence.js:160
([object Object],[object Object],[object Object])@simulation/ai/aegis/defence.js:27
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1163
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>
<p class="error">ERROR: JavaScript error: simulation/ai/aegis/army-defense.js line 84
TypeError: this.recalculateStrength is not a function
([object Object])@simulation/ai/aegis/army-defense.js:84
([object Object])@simulation/ai/aegis/defence.js:160
([object Object],[object Object],[object Object])@simulation/ai/aegis/defence.js:27
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1163
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>
<p class="error">ERROR: JavaScript error: simulation/ai/aegis/army-defense.js line 84
TypeError: this.recalculateStrength is not a function
([object Object])@simulation/ai/aegis/army-defense.js:84
([object Object])@simulation/ai/aegis/defence.js:160
([object Object],[object Object],[object Object])@simulation/ai/aegis/defence.js:27
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1163
([object Object])@simulation/ai/aegis/aegis.js:182

commands.txt

Link to comment
Share on other sites

Thank you very much, my friend Mimo.

But the error still exists:

TypeError: workers is undefined
([object Object],2)@simulation/ai/aegis/base-manager.js:854
([object Object],1,2)@simulation/ai/aegis/headquarters.js:441
([object Object])@simulation/ai/aegis/base-manager.js:903
([object Object],[object Object],[object Object])@simulation/ai/aegis/base-manager.js:1021
([object Object],[object Object],[object Object])@simulation/ai/aegis/headquarters.js:1158
([object Object])@simulation/ai/aegis/aegis.js:182
([object Object],2,[object Object])@simulation/ai/common-api/baseAI.js:81</p>

Link to comment
Share on other sites

I've fixed the errors that occasionally popped up when AIs built a new civil center, and I've improved the AI logic. It should now make dropsites better, and will try to grab terrain a lot more (probably needs some tweaking).

Link to comment
Share on other sites

Thank you very much my friend mimo. :pleasantry: :notworthy:

Thanks again to my friend: wraitii, he fixes this error, thank you very much! :i-m_so_happy::pleasantry::notworthy:
But an old problem still puzzled us.(Please promise me mention again,my friends.)
I describe the problem:

Another problem: the enemy of workers and the military a strange action: When the game save again loaded, the workers will not go to collect resources, they will stand next to the resource (for example: farmland beside), enemy forces will not attack me .

Edited by gameboy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...