sanderd17 Posted May 30, 2013 Report Share Posted May 30, 2013 (edited) In Atlas, you can't change the number of players after you've set it.Steps to reproduce:Create a new map, and set the number of players to 2.Give both players a CCStart a simulation gameReset the gameAdd a third player, you get the following error:WARNING: JavaScript warning: simulation/components/TechnologyManager.js line 245reference to undefined property "structures/athen_civil_centre"WARNING: JavaScript warning: simulation/components/TechnologyManager.js line 258reference to undefined property "Structure"WARNING: JavaScript warning: simulation/components/TechnologyManager.js line 262reference to undefined property this.typeCountsByClass[classes[i]]ERROR: Script message handler OnGlobalOwnershipChanged failedERROR: Script message handler OnGlobalOwnershipChanged failedERROR: Script message handler OnGlobalOwnershipChanged failedERROR: Script message handler OnPlayerDefeated failedERROR: Error in timer on entity 1, IID 48, function ProgressTimeout: TypeError: this.typeCountsByClass[classes[i]] is undefined ([object Object])@simulation/components/TechnologyManager.js:262 ([object Object])@simulation/components/Player.js:537 ()@simulation/components/EndGameManager.js:86 ([object Object],0)@simulation/components/EndGameManager.js:58 ([object Object])@simulation/components/Timer.js:93If you now start a simulation game again, Player 1 gets a negative population of max population, and is defeated immediately. Until now, I haven't found a way to add a new player. Edited May 30, 2013 by sanderd17 Quote Link to comment Share on other sites More sharing options...
feneur Posted May 30, 2013 Report Share Posted May 30, 2013 It would probably be nice to add somewhere early on (maybe even in the title) that this is in Atlas and not in-game It definitely sounds like something that should be solved though, but for now I suggest you add the number of players you want before running the simulation the first time Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted May 30, 2013 Author Report Share Posted May 30, 2013 (edited) It would probably be nice to add somewhere early on (maybe even in the title) that this is in Atlas and not in-game Right, I added that.It definitely sounds like something that should be solved though, but for now I suggest you add the number of players you want before running the simulation the first time It's also the case when you load an existing map without playing the simulation a first time.Alternative steps to reproduce:open atlasload a scenario mapchange the number of players (add one)run a simulationIt gives about the same problems when running, although no error when changing the number of players. Edited May 30, 2013 by sanderd17 Quote Link to comment Share on other sites More sharing options...
feneur Posted May 30, 2013 Report Share Posted May 30, 2013 Oh, ok. Well, presumably it's mostly been tested just to set up the number of players as the map is first created, so hopefully it's something that's easy to fix and just hasn't been caught as no one has tested it earlier Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted May 30, 2013 Report Share Posted May 30, 2013 Bugs like this have been around for a while, because Atlas has a strange way of updating player data. If there's no Trac ticket for this yet, I'll create one. Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted May 31, 2013 Author Report Share Posted May 31, 2013 it's rather easy to do manually though, just copy paste one of the player hashes in map.xml. And you have an extra player. Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted May 31, 2013 Author Report Share Posted May 31, 2013 I couldn't find anything on trac, so here's the ticket: http://trac.wildfiregames.com/ticket/1953 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.