agentx Posted September 24, 2014 Author Report Share Posted September 24, 2014 { "name": "charts", "label": "0 A.D. Charts Extension", "url": "http://www.wildfiregames.com/forum/index.php?showtopic=18763", "description": "Visualizes resource consumption, units, etc", "dependencies": ["0ad"], "type": "content addon"}Looks good? Quote Link to comment Share on other sites More sharing options...
niektb Posted September 24, 2014 Report Share Posted September 24, 2014 I think it will work. Quote Link to comment Share on other sites More sharing options...
agentx Posted September 24, 2014 Author Report Share Posted September 24, 2014 New version for current SVN here: https://dl.dropboxusercontent.com/u/354885/0ad/charts-0.0.17.zip Will re-check after release. 1 Quote Link to comment Share on other sites More sharing options...
raymond Posted October 27, 2014 Report Share Posted October 27, 2014 Could you test it with the latest Alpha 17? Does it work? Quote Link to comment Share on other sites More sharing options...
agentx Posted October 27, 2014 Author Report Share Posted October 27, 2014 I use it all the time to verify Hannibal, so yes it works with 0AD 17 and current SVN. There is only an issue with games shorter than a minute or so, because lack of data to visualize. Quote Link to comment Share on other sites More sharing options...
mimo Posted October 27, 2014 Report Share Posted October 27, 2014 In svn, there were some changes in simulation/components/GuiInterface.js, so you should update the mod to make it work properly with svn (although it should seem ok as long as you only have AI players). Otherwise, I use it from time to time to test Petra, and it is quite useful, thanks. 1 Quote Link to comment Share on other sites More sharing options...
agentx Posted November 11, 2014 Author Report Share Posted November 11, 2014 I've added the dependencies and now there is a zip for the release (0.0.17) and the svn (0.0.18), rev 15952. Both work in parallel folders in the user folder like .local/share/0ad/mods on Linux.It would be great if there was a hook in GuiInterface.prototype.GetExtendedSimulationState() so that these 2 lines don't make so much work. 2 Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 31, 2015 Report Share Posted January 31, 2015 Summary.XML changed some time ago (using nested tags) could you fix your mod ? Quote Link to comment Share on other sites More sharing options...
iNcog Posted February 7, 2015 Report Share Posted February 7, 2015 It's not that hard. The damage for each statistic is calculated asAttackValue * 0.9^ArmourValueThen the resulting number is summed for the 3 possible stats (pierce, crush and hack), and together, it's the reduce in hitpoints. If an AttackValue for a certain stat is zero, then it causes no reduce in HP. If an ArmourValue is zero, then the reduce in HP is just the amount of the AttackValue.Then you have the bonuses. Which are just multiplicators if the damage in HP.More elaborate damage (like splash damage) is a bit more difficult, as it takes the distance between the two into account.I've been wondering, isn't a calcuation like 0.9^armorvalue a bit too demanding? if you reduced it to a simpler calculation, wouldn't that net performance boost?or is that stuff peanuts compared to path-finding? Quote Link to comment Share on other sites More sharing options...
agentx Posted February 7, 2015 Author Report Share Posted February 7, 2015 It's peanuts/1000. Computers are fast with math. There's little memory involved and probably SpiderMonkey caches n values. Open the console of your browser here (F12) and copy/paste this code:var i = 2400, r = 0, t0 = Date.now();while(i--){ r += Math.pow(0.9, i);}[Date.now() - t0, r]i is the amount of units on your map, worst case is all are fighting. What you get as milliseconds? Quote Link to comment Share on other sites More sharing options...
iNcog Posted February 7, 2015 Report Share Posted February 7, 2015 (edited) 10 ms?http://i.imgur.com/wgM0DEk.pngwhich indeed isn't a lot Edited February 7, 2015 by iNcog Quote Link to comment Share on other sites More sharing options...
agentx Posted March 7, 2015 Author Report Share Posted March 7, 2015 Here is a new version of the charts mod for Alpha 18/Release: https://dl.dropboxusercontent.com/u/354885/0ad/charts-0.0.18r.zip 1 Quote Link to comment Share on other sites More sharing options...
fbarriga Posted April 4, 2015 Report Share Posted April 4, 2015 There is a ticket to track this feature ? Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted April 4, 2015 Report Share Posted April 4, 2015 There is a ticket to track this feature ?Not yet ( I'm not sure at all) Quote Link to comment Share on other sites More sharing options...
s0600204 Posted September 21, 2015 Report Share Posted September 21, 2015 There is a ticket to track this feature ? A ticket was recently created on trac that proposes the creation of charts in the summary screen: http://trac.wildfiregames.com/ticket/3403 In the meantime, its been pointed out that the mod no longer works with the current development state of 0AD, so if you're running at the cutting edge of SVN and want to run the mod, here's an (unofficial) update: https://github.com/0ADMods/summary-charts (if you're still on A18, agentx's zip should work) 2 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.