Ticket #1402 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

ERROR: JavaScript error: simulation/ai/qbot/worker.js line 71

Reported by: fabio Owned by: quantumstate
Priority: Should Have Milestone: Alpha 10
Component: Core engine Keywords:
Cc:

Description (last modified by fabio) (diff)

While playing "Third Macedonian War" on current r11849 I get a lot of these:

ERROR: JavaScript error: simulation/ai/qbot/worker.js line 71
TypeError: ent.resourceSupplyType() is undefined
  ([object Object])@simulation/ai/qbot/worker.js:71
  ([object Object])@simulation/ai/qbot/worker.js:53
  ([object Object])@simulation/ai/qbot/worker.js:33
  ([object Object],"829",[object Object])@simulation/ai/qbot/economy.js:495
  ((function (ent) {"use strict";if (!ent.getMetadata("worker-object")) {ent.setMetadata("worker-object", new Worker(ent));}ent.getMetadata("worker-object").update(gameState);}))@simulation/ai/common-api-v2/entitycollection.js:104
  ([object Object],[object Object],[object Array])@simulation/ai/qbot/economy.js:491
  ()@simulation/ai/qbot/qbot.js:103
  ([object Object])@simulation/ai/common-api-v2/base.js:122
  @:0
ERROR: JavaScript error: simulation/ai/qbot/worker.js line 71
TypeError: ent.resourceSupplyType() is undefined
  ([object Object])@simulation/ai/qbot/worker.js:71
  ([object Object])@simulation/ai/qbot/worker.js:62
  ([object Object])@simulation/ai/qbot/worker.js:33
  ([object Object],"829",[object Object])@simulation/ai/qbot/economy.js:495
  ((function (ent) {"use strict";if (!ent.getMetadata("worker-object")) {ent.setMetadata("worker-object", new Worker(ent));}ent.getMetadata("worker-object").update(gameState);}))@simulation/ai/common-api-v2/entitycollection.js:104
  ([object Object],[object Object],[object Array])@simulation/ai/qbot/economy.js:491
  ()@simulation/ai/qbot/qbot.js:103
  ([object Object])@simulation/ai/common-api-v2/base.js:122
  @:0
ERROR: JavaScript error: simulation/ai/qbot/worker.js line 71
TypeError: ent.resourceSupplyType() is undefined
  ([object Object])@simulation/ai/qbot/worker.js:71
  ([object Object])@simulation/ai/qbot/worker.js:62
  ([object Object])@simulation/ai/qbot/worker.js:33
  ([object Object],"829",[object Object])@simulation/ai/qbot/economy.js:495
  ((function (ent) {"use strict";if (!ent.getMetadata("worker-object")) {ent.setMetadata("worker-object", new Worker(ent));}ent.getMetadata("worker-object").update(gameState);}))@simulation/ai/common-api-v2/entitycollection.js:104
  ([object Object],[object Object],[object Array])@simulation/ai/qbot/economy.js:491
  ()@simulation/ai/qbot/qbot.js:103
  ([object Object])@simulation/ai/common-api-v2/base.js:122
  @:0
ERROR: JavaScript error: simulation/ai/qbot/worker.js line 71
TypeError: ent.resourceSupplyType() is undefined
  ([object Object])@simulation/ai/qbot/worker.js:71
  ([object Object])@simulation/ai/qbot/worker.js:62
  ([object Object])@simulation/ai/qbot/worker.js:33
  ([object Object],"829",[object Object])@simulation/ai/qbot/economy.js:495
  ((function (ent) {"use strict";if (!ent.getMetadata("worker-object")) {ent.setMetadata("worker-object", new Worker(ent));}ent.getMetadata("worker-object").update(gameState);}))@simulation/ai/common-api-v2/entitycollection.js:104
  ([object Object],[object Object],[object Array])@simulation/ai/qbot/economy.js:491
  ()@simulation/ai/qbot/qbot.js:103
  ([object Object])@simulation/ai/common-api-v2/base.js:122
  @:0
ERROR: JavaScript error: simulation/ai/qbot/worker.js line 71
TypeError: ent.resourceSupplyType() is undefined
  ([object Object])@simulation/ai/qbot/worker.js:71
  ([object Object])@simulation/ai/qbot/worker.js:62
  ([object Object])@simulation/ai/qbot/worker.js:33
  ([object Object],"829",[object Object])@simulation/ai/qbot/economy.js:495
  ((function (ent) {"use strict";if (!ent.getMetadata("worker-object")) {ent.setMetadata("worker-object", new Worker(ent));}ent.getMetadata("worker-object").update(gameState);}))@simulation/ai/common-api-v2/entitycollection.js:104
  ([object Object],[object Object],[object Array])@simulation/ai/qbot/economy.js:491
  ()@simulation/ai/qbot/qbot.js:103
  ([object Object])@simulation/ai/common-api-v2/base.js:122
  @:0

Change History

comment:1 Changed 13 months ago by fabio

  • Description modified (diff)
  • Milestone changed from Backlog to Alpha 10

comment:2 Changed 13 months ago by quantumstate

  • Owner set to quantumstate
  • Status changed from new to closed
  • Resolution set to fixed

In 11850:

Added check for existance of ent.resourceSupplyType(). Fixes #1402

Note: See TracTickets for help on using tickets.