#1490 closed defect (fixed)
TechnologyManager produces errors in Atlas under obscure conditions
Reported by: | vts | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 18 |
Component: | Atlas editor | Keywords: | |
Cc: | Jonathan Waller | Patch: |
Description
To reproduce:
- Start Atlas on a blank map and place a civil center owned by Gaia
- Go to the Player tab and set the number of players to 7 (anything less than 8 seems to trigger it)
- Start the simulation, click OK on the defeated dialog and reset the simulation again
- Select the civil center, go to the Object tab and set Player 1 as its owner
This produces the following:
WARNING: JavaScript warning: simulation/components/TechnologyManager.js line 201 reference to undefined property "structures/celt_civil_centre" WARNING: JavaScript warning: simulation/components/TechnologyManager.js line 215 reference to undefined property "Structure" WARNING: JavaScript warning: simulation/components/TechnologyManager.js line 219 reference to undefined property this.typeCountsByClass[classes[i]] ERROR: JavaScript error: simulation/components/TechnologyManager.js line 219 TypeError: this.typeCountsByClass[classes[i]] is undefined ([object Object])@simulation/components/TechnologyManager.js:219 ERROR: Script message handler OnGlobalOwnershipChanged failed
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 10 years ago
Component: | UI & Simulation → Atlas editor |
---|
comment:4 by , 9 years ago
Keywords: | atlas removed |
---|---|
Milestone: | Backlog → Alpha 18 |
Note:
See TracTickets
for help on using tickets.
The simulation is not needed to reproduce.
Changing the number of players (regardless if increasing or decreasing) will reset all TechnologyManager. And oviously they are not reloaded correctly with the informations from the atlas.