Jump to content

[FIXED] ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151


zoot
 Share

Recommended Posts

This is an error that has just popped up just recently:

ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151

TypeError: this.resourcesUsed is undefined

("food",60)@simulation/components/StatisticsTracker.js:151

([object Object])@simulation/components/Player.js:199

("units/spart_support_female_citizen","unit",1,[object Object])@simulation/components/ProductionQueue.js:212

ProcessCommand(4,[object Object])@simulation/helpers/Commands.js:161

ERROR: Failed to call ProcessCommand() global script function

Using Xcursor to sys_cursor_create 32 x 32 cursor

ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151

TypeError: this.resourcesUsed is undefined

("food",0)@simulation/components/StatisticsTracker.js:151

([object Object])@simulation/components/Player.js:199

TryConstructBuilding(2,[object Object],false,[object Object])@simulation/helpers/Commands.js:616

ProcessCommand(2,[object Object])@simulation/helpers/Commands.js:213

ERROR: Failed to call ProcessCommand() global script function

ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151

TypeError: this.resourcesUsed is undefined

("food",0)@simulation/components/StatisticsTracker.js:151

([object Object])@simulation/components/Player.js:199

TryConstructBuilding(2,[object Object],false,[object Object])@simulation/helpers/Commands.js:616

ProcessCommand(2,[object Object])@simulation/helpers/Commands.js:213

ERROR: Failed to call ProcessCommand() global script function

ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151

TypeError: this.resourcesUsed is undefined

("food",0)@simulation/components/StatisticsTracker.js:151

([object Object])@simulation/components/Player.js:199

TryConstructBuilding(2,[object Object],false,[object Object])@simulation/helpers/Commands.js:616

ProcessCommand(2,[object Object])@simulation/helpers/Commands.js:213

ERROR: Failed to call ProcessCommand() global script function

ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151

TypeError: this.resourcesUsed is undefined

("food",250)@simulation/components/StatisticsTracker.js:151

([object Object])@simulation/components/Player.js:199

("units/pers_infantry_spearman_b","unit",5,[object Object])@simulation/components/ProductionQueue.js:212

ProcessCommand(3,[object Object])@simulation/helpers/Commands.js:161

ERROR: Failed to call ProcessCommand() global script function

ERROR: JavaScript error: simulation/components/StatisticsTracker.js line 151

TypeError: this.resourcesUsed is undefined

("food",0)@simulation/components/StatisticsTracker.js:151

([object Object])@simulation/components/Player.js:199

TryConstructBuilding(2,[object Object],false,[object Object])@simulation/helpers/Commands.js:616

ProcessCommand(2,[object Object])@simulation/helpers/Commands.js:213

ERROR: Failed to call ProcessCommand() global script function

Apparently it happens just after loading (any) savegame. It also renders buttons in the building UI unusable.

I can attach savegame if need be.

Edit: Actually, it doesn't seem to happen with new savegames, so I assume it is just a transitional issue due to some architectural change?

Edited by zoot
Link to comment
Share on other sites

Just at a quick glance, and from a non-programmer, it seems like they come from the new changes to the post-game statistics. So yeah, we might need to add a warning somewhere that savegames can't be expected to work between game versions (or even between revisions, though in most cases they probably will, it's just not something we can guarantee :) ).

Link to comment
Share on other sites

Yeah, the rule of thumb is that saves presently have virtually zero forwards-compatibility.

As the game progresses to a finished state, the data structure will probably stabilize, and there'll be backwards-compatibility for at least a few releases, I imagine. For now, though, save compatibility is broken tens of times in between each alpha release.

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