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

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...