Jump to content
Sign in to follow this  
wraitii

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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>

Share this post


Link to post
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).

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...