id summary reporter owner description type status priority milestone component resolution keywords cc phab_field 4924 ModificationTemplateManager OOS elexis elexis "As reported by mimo in Phab:rP20737, the commit introduced this error when deserializing and resigning a game while some auras were applied: {{{ ERROR: Script message handler OnOwnershipChanged failed ERROR: Script message handler OnOwnershipChanged failed ERROR: Script message handler OnOwnershipChanged failed ERROR: Script message handler OnOwnershipChanged failed ERROR: Script message handler OnOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: Script message handler OnGlobalOwnershipChanged failed ERROR: JavaScript error: simulation/components/AuraManager.js line 184 TypeError: this.templateModificationsCache.get(...).get(...).get(...) is undefined AuraManager.prototype.RemoveTemplateBonus@simulation/components/AuraManager.js:184:2 Auras.prototype.RemoveTemplateBonus@simulation/components/Auras.js:393:1 Auras.prototype.Clean@simulation/components/Auras.js:222:4 Auras.prototype.OnOwnershipChanged@simulation/components/Auras.js:455:2 Player.prototype.SetState@simulation/components/Player.js:445:1 g_Commands.resign@simulation/helpers/Commands.js:449:3 ProcessCommand@simulation/helpers/Commands.js:47:3 }}} The error can be reproduced from command line on turn 1 using {{{ pyrogenesis -replay=""/path/to/commands.txt"" -mod=public -rejointest=1 }}} and this replay: {{{ start {""settings"":{""PlayerData"":[{""AI"":"""",""Civ"":""cart"",""Color"":{""b"":200,""g"":46,""r"":46},""Name"":""Player"",""PopulationLimit"":10000,""Resources"":{""food"":10000,""metal"":10000,""stone"":10000,""wood"":10000},""StartingTechnologies"":[""phase_town"",""phase_city""],""Team"":-1,""AIDiff"":3,""AIBehavior"":""random""},{""AI"":"""",""Civ"":""athen"",""Color"":{""b"":20,""g"":20,""r"":150},""Name"":""Creeps"",""Team"":-1,""AIDiff"":3,""AIBehavior"":""random""}],""CircularMap"":true,""GameType"":""endless"",""VictoryScripts"":[],""BaseHeight"":0,""BaseTerrain"":[""medit_rocks_grass""],""Description"":""Explore the Carthaginian Buildings and Units."",""Keywords"":[""demo""],""LockTeams"":false,""Name"":""Sandbox - The Carthaginians"",""Preview"":""Sandbox - Carthaginians.png"",""RevealMap"":false,""Script"":""corsica.js"",""Size"":192,""PopulationCap"":300,""StartingResources"":300,""Ceasefire"":0,""RelicCount"":2,""ExploreMap"":false,""DisableTreasures"":false,""DisableSpies"":false,""CheatsEnabled"":true,""RelicDuration"":20,""WonderDuration"":20,""RegicideGarrison"":false,""LastManStanding"":false,""RatingEnabled"":false,""TriggerScripts"":[],""mapType"":""scenario"",""Seed"":203870521,""AISeed"":4257308017},""mapType"":""scenario"",""mapPath"":""maps/scenarios/"",""mapFilter"":""demo"",""gameSpeed"":1,""matchID"":""1571F1FEB0DDEDB2"",""map"":""maps/scenarios/Sandbox - Carthaginians"",""timestamp"":1514985029,""engine_version"":""0.0.23"",""mods"":[""mod"",""public""]} turn 0 200 end turn 1 200 cmd 1 {""type"":""resign""} end turn 2 200 end turn 3 200 end turn 4 200 end }}}" defect closed Release Blocker Alpha 23 UI & Simulation fixed Phab:D1201