Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Markus, 11 years ago

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.

comment:2 by Stan, 10 years ago

Component: UI & SimulationAtlas editor

comment:3 by trompetin17, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in 16080 with #1953

comment:4 by Itms, 9 years ago

Keywords: atlas removed
Milestone: BacklogAlpha 18
Note: See TracTickets for help on using tickets.