mod_3d Posted April 27 Report Share Posted April 27 (edited) The resource was added according to the official tutorial (adding a new resource to the game) and in the game behaves correctly, but in the summary window there is an error. Edited May 2 by mod_3d Quote Link to comment Share on other sites More sharing options...
Gurken Khan Posted April 27 Report Share Posted April 27 I can't help you with that but I'd imagine for anyone trying to help you the logs and your code would be useful. Quote Link to comment Share on other sites More sharing options...
mod_3d Posted April 27 Author Report Share Posted April 27 Steps when adding a resource and a mod file: Volatile_Market_0_2_0.zip Quote Link to comment Share on other sites More sharing options...
mod_3d Posted May 2 Author Report Share Posted May 2 Bug fix. Modify the files in the summary folder by path: gui/summary summary.js file var g_MaxHeadingTitle = 9; replace the value with 10 (if 1 new resource is added) summary.xml file there are several such lines <repeat var="x" count="9"> replace value by 10(if 1 new resource is added) Quote Link to comment Share on other sites More sharing options...
Obelix Posted May 2 Report Share Posted May 2 Would you please be so kind and open a ticket (and maybe submit the patch)? I don't feel able to write a ticket description for you as I don't understand which path exactly you mean (paragraph quoted below). 16 hours ago, mod_3d said: Modify the files in the summary folder by path: gui/summary summary.js file 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted May 3 Report Share Posted May 3 I believe they are saying the docs might be outdated rather than a bug in the code itself. They added a new resource following the docs, and some information was missing, causing errors. 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 3 Report Share Posted May 3 On 27/04/2024 at 11:51 AM, mod_3d said: Steps when adding a resource and a mod file: 3 hours ago, Stan` said: I believe they are saying the docs might be outdated rather than a bug in the code itself. They added a new resource following the docs, and some information was missing, causing errors. Indeed, for there is no longer a "gui/common/setup_resources.xml" file, but an entire folder instead. Just one example. And then, how and what to edit in the listed files? Just says to edit them, but not in what way or which lines. Quote Link to comment Share on other sites More sharing options...
mod_3d Posted May 4 Author Report Share Posted May 4 The screenshot of the tutorial , was shown only for general understanding, where the information was taken from while adding the resource to the game. gui/summary is the folders in the mod the full path may look like this: summary.js file /home/.local/share/0ad/mods/Name of your mod/gui/summary/summary.js var g_MaxHeadingTitle = 9; replace the value with 10 (if 1 new resource is added) summary.xml file /home/.local/share/0ad/mods/Name of your mod/gui/summary/summary.xml <repeat var=“x” count=“9”> replace value by 10(if 1 new resource is added) there are 5 such lines in the file 1 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.