Jump to content

Errors in gamesetup.js


Recommended Posts

@elexisToday, I tested the latest SVN21787. When I chose my faction to play single player, there was a mistake in the game. 

 

WARNING: JavaScript warning: gui/gamesetup/gamesetup.js line 2185 reference to undefined property g_VictoryConditions[g_VictoryConditions.map(...).indexOf(...)]

ERROR: JavaScript error: gui/gamesetup/gamesetup.js line 2185 TypeError: g_VictoryConditions[g_VictoryConditions.map(...).indexOf(...)] is undefined launchGame/g_GameAttributes.settings.VictoryScripts<@gui/gamesetup/gamesetup.js:2185:73 launchGame@gui/gamesetup/gamesetup.js:2184:45 __eventhandler96 (press)@startGame press:1:7

Link to post
Share on other sites
24 minutes ago, gameboy said:

@elexisToday, I tested the latest SVN21787. When I chose my faction to play single player, there was a mistake in the game. 

 

WARNING: JavaScript warning: gui/gamesetup/gamesetup.js line 2185 reference to undefined property g_VictoryConditions[g_VictoryConditions.map(...).indexOf(...)]

ERROR: JavaScript error: gui/gamesetup/gamesetup.js line 2185 TypeError: g_VictoryConditions[g_VictoryConditions.map(...).indexOf(...)] is undefined launchGame/g_GameAttributes.settings.VictoryScripts<@gui/gamesetup/gamesetup.js:2185:73 launchGame@gui/gamesetup/gamesetup.js:2184:45 __eventhandler96 (press)@startGame press:1:7

Nomad?

Link to post
Share on other sites

According to the error, it happens when starting the game with a victory condition being selected that doesn't exist.

I would suspect it's loading the alpha 22 perisst-match-settings file or the file from previously match where a mod with a custom victory condition was active.

You can delete the persistmatchsettings file in the config directory and it should be fine http://trac.wildfiregames.com/wiki/GameDataPaths

> I met them.

Sounds shady

  • Like 1
  • Thanks 1
Link to post
Share on other sites

@elexis I applied your patch and I saw them:

ERROR: RelaxNGValidator: Validation error: other/placement_obstructor:1: Expecting an element DeleteUponConstruction, got nothing

ERROR: RelaxNGValidator: Validation error: other/placement_obstructor:1: Invalid sequence in interleave

ERROR: RelaxNGValidator: Validation error: other/placement_obstructor:1: Element Obstruction failed to validate content

ERROR: RelaxNGValidator: Validation failed for '(null)'

ERROR: Failed to validate entity template 'other/placement_obstructor'

ERROR: Error in timer on entity 1, IID93, function DoAction: TypeError: cmpTemplateManager.GetTemplate(...) is undefined Trigger.prototype.InitCaptureTheRelic/catafalqueTemplates<@maps/scripts/CaptureTheRelic.js:5:30 Trigger.prototype.InitCaptureTheRelic@maps/scripts/CaptureTheRelic.js:4:41 Trigger.prototype.DoAction@simulation/components/Trigger.js:331:3 Timer.prototype.OnUpdate@simulation/components/Timer.js:120:4

ERROR: CCacheLoader failed to find archived or source file for: "art/variants/biped/attack_slaughter_cavalry.xml"

ERROR: Could not open path biped/attack_slaughter_cavalry.xml

ERROR: RelaxNGValidator: Validation error: other/placement_obstructor:1: Expecting an element DeleteUponConstruction, got nothing

ERROR: RelaxNGValidator: Validation error: other/placement_obstructor:1: Invalid sequence in interleave

ERROR: RelaxNGValidator: Validation error: other/placement_obstructor:1: Element Obstruction failed to validate content

ERROR: RelaxNGValidator: Validation failed for '(null)'

ERROR: Failed to validate entity template 'other/placement_obstructor'

ERROR: Error in timer on entity 1, IID93, function DoAction: TypeError: cmpTemplateManager.GetTemplate(...) is undefined Trigger.prototype.InitCaptureTheRelic/catafalqueTemplates<@maps/scripts/CaptureTheRelic.js:5:30 Trigger.prototype.InitCaptureTheRelic@maps/scripts/CaptureTheRelic.js:4:41 Trigger.prototype.DoAction@simulation/components/Trigger.js:331:3 Timer.prototype.OnUpdate@simulation/components/Timer.js:120:4

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...