azayrahmad Posted March 11, 2021 Report Share Posted March 11, 2021 I tried the ModdingResources tutorial on Trac and find that there is no information on how to edit Summary screen at the end of the battle to show the newly created resource. So now after adding new resource, opening Summary screen shows error message like this: Anyone knows how to solve this? I tried to look at other mods with new resources (DE and 0abc) and found the same error. 1 Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted March 11, 2021 Report Share Posted March 11, 2021 Could you attach the full logs? Also do you have a minimal mod to reproduce the issue? Quote Link to comment Share on other sites More sharing options...
azayrahmad Posted March 11, 2021 Author Report Share Posted March 11, 2021 (edited) Hi @vladislavbelov Here are the zip file of the mod and the interestinglog for the issue encountered. Thank you. coin_resource.zip interestinglog.html mainlog.html crashlog.txt Edited March 11, 2021 by azayrahmad I realized you asked for full log Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted March 11, 2021 Report Share Posted March 11, 2021 You need to replace count="9" by count="10" in the following lines in gui/summary/summary.xml: <repeat var="x" count="9"> <object name="titleHeading[x]" type="text" style="ModernTopLabelText"/> </repeat> ... <repeat var="x" count="9"> <object name="Heading[x]" type="text" style="ModernTopLabelText"/> </repeat> ... <repeat var="x" count="9"> <object name="valueDataTeam[i][n][x]" type="text" style="ModernTopLabelText"/> </repeat> ... <repeat var="x" count="9"> <object name="valueDataTeam[i][x]" type="text" style="ModernTopLabelText"/> </repeat> ... <repeat var="x" count="9"> <object name="valueData[n][x]" type="text" style="ModernTopLabelText"/> </repeat> You might also want to adjust some padding/margin/width values in layout.js (in the same folder) to fit better on screen. 1 1 Quote Link to comment Share on other sites More sharing options...
azayrahmad Posted March 12, 2021 Author Report Share Posted March 12, 2021 Hi @vladislavbelov, Your solution works wonderfully. However when I tried to switch tab, the rightmost column (Livestock bred) remains in all tabs. This does not happen in vanilla. Not sure what happens, but at least it's minor bug and as a whole still work. Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted March 12, 2021 Report Share Posted March 12, 2021 I don't remember, maybe some code is unified between tabs. So you need to use different widths for different tabs. 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.