Opened 8 years ago

Closed 8 years ago

#3751 closed defect (fixed)

UnitAI.js ERROR!

Reported by: gameboy Owned by: mimo
Priority: Should Have Milestone: Alpha 20
Component: UI & Simulation Keywords:
Cc: joswwa-0ad@… Patch:

Description

I tested SVN17685, when I used ten farmers to build a municipal center, the city center after the establishment of an error message:

ERROR: Script message handler OnGlobalEntityRenamed failed

ERROR: Error in timer on entity 4368, IID 90, function TimerHandler: TypeError: "target" is read-only RallyPoint.prototype.OnGlobalEntityRenamed@simulation/components/RallyPoint.js:100:4 Foundation.prototype.Build@simulation/components/Foundation.js:346:68 Builder.prototype.PerformBuilding@simulation/components/Builder.js:73:3 UnitAI.prototype.UnitFsmSpec.INDIVIDUAL.REPAIR.REPAIRING.Timer@simulation/components/UnitAI.js:2707:6 FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274:29 UnitAI.prototype.TimerHandler@simulation/components/UnitAI.js:3856:68 Timer.prototype.OnUpdate@simulation/components/Timer.js:100:4

Attachments (3)

commands.txt (56.2 KB ) - added by gameboy 8 years ago.
savegame-0113.0adsave (587.0 KB ) - added by gameboy 8 years ago.
ticket3751.patch (575 bytes ) - added by mimo 8 years ago.
temporary fix

Download all attachments as: .zip

Change History (12)

by gameboy, 8 years ago

Attachment: commands.txt added

comment:1 by njm, 8 years ago

Cc: joswwa-0ad@… added

by gameboy, 8 years ago

Attachment: savegame-0113.0adsave added

comment:2 by gameboy, 8 years ago

I put the game file upload file upload, please help me.

comment:3 by elexis, 8 years ago

Component: Core engineUI & Simulation

Hi gameboy. Thanks for still testing svn (not many people do that currently).

This is a known bug which was introduced by r17673 and a fix is already being discussed, so it will be solved soon :)

comment:4 by gameboy, 8 years ago

When this problem will be solved, my friend?

comment:5 by mimo, 8 years ago

gameboy, this question should stay on the forums not on trac.

This error is easily reproducible (just make a rallypoint on a foundation, the error will happen when the construction finishes), but there is an intriguing point which is that it is reprocible on visual-replays, but not on replays, and that has to be understood before properly fixing it. In the meantime, for people who want to test svn, you can apply the following patch.

by mimo, 8 years ago

Attachment: ticket3751.patch added

temporary fix

comment:6 by gameboy, 8 years ago

OK, my friend, I hope the final fix for this issue can be launched as soon as possible. Thank you

comment:7 by mimo, 8 years ago

In 17711:

completes r17673 for non visual replays, refs #3751

comment:8 by gameboy, 8 years ago

My friend, MIMO! Today I tested the latest SVN17711, the problem still exists.

comment:9 by mimo, 8 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 17713:

clone the rallypoint data from cmd, fixes #3751

Note: See TracTickets for help on using tickets.