gameboy Posted May 31, 2022 Report Share Posted May 31, 2022 Today, I tested the latest SVN 26913 and found an error: When I build a new game, the error appears: ERROR: JavaScript error: gamesettings/attributes/VictoryConditions.js line 73 this.conditions[name] is undefined _add@gamesettings/attributes/VictoryConditions.js:73:7 fromInitAttributes@gamesettings/attributes/VictoryConditions.js:38:10 fromInitAttributes@gamesettings/GameSettings.js:90:17 parseSettings@gui/gamesetup/Controllers/GameSettingsController.js:191:18 onLoad@gui/gamesetup/Controllers/GameSettingsController.js:89:10 SetupWindow@gui/gamesetup/SetupWindow.js:61:11 init@gui/gamesetup/gamesetup.js:47:18 onPress@gui/pregame/MainMenuItems.js:99:13 performButtonAction@gui/pregame/MainMenuItemHandler.js:77:9 pressButton@gui/pregame/MainMenuItemHandler.js:63:10 ERROR: GUI page 'page_gamesetup.xml': Failed to call init() function Quote Link to comment Share on other sites More sharing options...
Langbart Posted May 31, 2022 Report Share Posted May 31, 2022 I can reproduce the issue. Can you delete your "matchsettings.json" and check for custom made scenario maps in your mods/user folder ? Quote Link to comment Share on other sites More sharing options...
gameboy Posted May 31, 2022 Author Report Share Posted May 31, 2022 (edited) @Langbart How can this problem be fixed? I didn't delete it. Do I need to delete it? Edited May 31, 2022 by gameboy Quote Link to comment Share on other sites More sharing options...
Stan` Posted May 31, 2022 Report Share Posted May 31, 2022 Yes you do. Quote Link to comment Share on other sites More sharing options...
Langbart Posted May 31, 2022 Report Share Posted May 31, 2022 Try with "Persist match settings" off. But self-made scenario maps that have "Conquest Civic Centers" as "VictoryConditions" need a small change in their .xml file as well. The string changed from "conquest_civiccentres" to "conquest_civic_centers". See changeset/26913 for details. Quote Link to comment Share on other sites More sharing options...
gameboy Posted May 31, 2022 Author Report Share Posted May 31, 2022 This requires further fixes in the script. 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.