gameboy Posted May 31, 2022 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 Link to comment Share on other sites More sharing options...
Langbart Posted May 31, 2022 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 ? Link to comment Share on other sites More sharing options...
gameboy Posted May 31, 2022 Author 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 Link to comment Share on other sites More sharing options...
Stan` Posted May 31, 2022 Share Posted May 31, 2022 Yes you do. Link to comment Share on other sites More sharing options...
Langbart Posted May 31, 2022 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. Link to comment Share on other sites More sharing options...
gameboy Posted May 31, 2022 Author Share Posted May 31, 2022 This requires further fixes in the script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now