Jump to content

Alpha 22 - resourceSupplyType is undefined


WhiteTreePaladin
 Share

Recommended Posts

interestinglog.html

0 A.D. (0.0.22) Main log (warnings and errors only)

ERROR: JavaScript error: simulation/ai/common-api/shared.js line 438 TypeError: ent is undefined m.SharedScript.prototype.setMetadata@simulation/ai/common-api/shared.js:438:6 m.SharedScript.prototype.ApplyEntitiesDelta@simulation/ai/common-api/shared.js:299:5 m.SharedScript.prototype.onUpdate@simulation/ai/common-api/shared.js:234:2

ERROR: JavaScript error: simulation/ai/petra/worker.js line 152 TypeError: supply.resourceSupplyType(...) is undefined m.Worker.prototype.update@simulation/ai/petra/worker.js:152:6 m.BaseManager.prototype.update@simulation/ai/petra/baseManager.js:1036:3 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2280:4 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:119:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2

ERROR: JavaScript error: simulation/ai/petra/worker.js line 152 TypeError: supply.resourceSupplyType(...) is undefined m.Worker.prototype.update@simulation/ai/petra/worker.js:152:6 m.BaseManager.prototype.update@simulation/ai/petra/baseManager.js:1036:3 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2280:4 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:119:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2

ERROR: JavaScript error: simulation/ai/petra/worker.js line 152 TypeError: supply.resourceSupplyType(...) is undefined m.Worker.prototype.update@simulation/ai/petra/worker.js:152:6 m.BaseManager.prototype.update@simulation/ai/petra/baseManager.js:1036:3 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2280:4 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:119:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2

 

mainlog.html

ERROR: JavaScript error: simulation/ai/common-api/shared.js line 438 TypeError: ent is undefined m.SharedScript.prototype.setMetadata@simulation/ai/common-api/shared.js:438:6 m.SharedScript.prototype.ApplyEntitiesDelta@simulation/ai/common-api/shared.js:299:5 m.SharedScript.prototype.onUpdate@simulation/ai/common-api/shared.js:234:2

Saved game to '/home/brian/.local/share/0ad/saves/savegame-0341.0adsave'

ERROR: JavaScript error: simulation/ai/petra/worker.js line 152 TypeError: supply.resourceSupplyType(...) is undefined m.Worker.prototype.update@simulation/ai/petra/worker.js:152:6 m.BaseManager.prototype.update@simulation/ai/petra/baseManager.js:1036:3 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2280:4 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:119:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2

ERROR: JavaScript error: simulation/ai/petra/worker.js line 152 TypeError: supply.resourceSupplyType(...) is undefined m.Worker.prototype.update@simulation/ai/petra/worker.js:152:6 m.BaseManager.prototype.update@simulation/ai/petra/baseManager.js:1036:3 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2280:4 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:119:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2

ERROR: JavaScript error: simulation/ai/petra/worker.js line 152 TypeError: supply.resourceSupplyType(...) is undefined m.Worker.prototype.update@simulation/ai/petra/worker.js:152:6 m.BaseManager.prototype.update@simulation/ai/petra/baseManager.js:1036:3 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2280:4 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:119:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2

 

Attached Files:

commands.txt

metadata.json

Edited by WhiteTreePaladin
  • Like 2
Link to comment
Share on other sites

4 hours ago, vladislavbelov said:

When it happened? Time from start of the replay.

The first error (in shared.js) happens on turn 19209, and the other three in worker.js come up later because of this one.

This bug does not seem to be new in Alpha 22; looking at the code, it seems to have existed for several years (the chance of it occurring is very low). D751 will hopefully sort it out (not in time for A22 though).

  • Like 3
Link to comment
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.

 Share

×
×
  • Create New...