wowgetoffyourcellphone Posted June 9, 2015 Report Share Posted June 9, 2015 ERROR: JavaScript error: gui/structree/structree.js line 32 TypeError: data is undefined init@gui/structree/structree.js:32:1 __eventhandler116 (press)@menuStrucTreeButton press:2:8ERROR: GUI page 'page_structree.xml': Failed to call init() functionERROR: JavaScript error: gui/structree/helper.js line 77 TypeError: path.lastIndexOf is not a function depath@gui/structree/helper.js:77:2 selectCiv@gui/structree/structree.js:173:1 __eventhandler144 (selectionchange)@civSelection selectionchange:0:1ERROR: JavaScript error: gui/structree/helper.js line 77 TypeError: path.lastIndexOf is not a function depath@gui/structree/helper.js:77:2 selectCiv@gui/structree/structree.js:173:1 __eventhandler144 (selectionchange)@civSelection selectionchange:0:1 I have edited the civ files, but I've edited all of the civ files and this only happen with Seleucid and Ptolemies.Attach are json files.sele.zip Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted June 9, 2015 Report Share Posted June 9, 2015 It's because we moved away from the _generic_ phases. See http://wildfiregames.com/forum/index.php?showtopic=19838The problem was that, to add a civ-specific town or city phase, the according _generic_ technology had to be edited, as it had the civ-specific techs as a requirement for autoresearch. This meant that it was impossible to combine two mods that both had a civ with a civ-specific phase (as one mod would overwrite the tech of the other mod, resulting in a civ that can't research one of the phases).So we moved to the "replaces" key, in which a tech can "replace" a different tech, and unlock all its content without applying its modifications or its cost. So currently, the _generic_ phases are removed, and the effects are stored in the regular phase tech and the athen phase tech, while the athen phase tech replaces the regular one, so unlocks the same features.See http://trac.wildfiregames.com/changeset/16678/ for the commit that removed the generic techs. 2 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 9, 2015 Author Report Share Posted June 9, 2015 Yes that was problem. I had already deleted and changed the phase techs to match official build but forgot to remove them from Ptol and Sele military colony. Thank you. 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.