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

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