eeustice Posted March 16, 2019 Report Posted March 16, 2019 I was wondering if there was a way to find out how many weapons were left in each individual magazine. Just have a total # of each weapons left would be good too. I have included an excel spreadsheet with an idea of what I would like to see, If you have any questions please let me know. Thanks, Eric Weapons Remaining.xlsx Quote
TonyE Posted March 16, 2019 Report Posted March 16, 2019 Thank you Eric. Eric brought this up on IRC chat and I suggested he post. We chatted along the following lines... The core game does not provide this functionality. This seems like a good use of the ExportDLL interface to iterate through the units and populate the grid/report/rendering. The interface already exposes all of the data so no changes to the game itself are needed to meet this need. Eric would use the information to help tweak magazine levels in his database. Quote
TonyE Posted March 19, 2019 Report Posted March 19, 2019 donaldseadog has shown some interest via e-mail. Quote
donaldseadog Posted April 12, 2019 Report Posted April 12, 2019 I have to confess to being quite slow to get going, but if the grey matter co operates I don't think it's a big job. I've not yet looked but much of what is needed is in the code for my toolbox,I think I just need to spit out numbers - maybe? Quote
TonyE Posted April 13, 2019 Report Posted April 13, 2019 16 hours ago, donaldseadog said: I have to confess to being quite slow to get going, but if the grey matter co operates I don't think it's a big job. I've not yet looked but much of what is needed is in the code for my toolbox,I think I just need to spit out numbers - maybe? I'd say start simple and iterate. Thinking numbers only probably won't be the complete ask. Here is what I started with to start mining the data (lazGUI as a starting point for me). // ALE 20190320 Dig into Magazines PHCMag := PSelectedUnit^.Mags; while PHCMag <> nil do begin memMagWeaps.Lines.Add('Unit=%s Group=%s WepId=%d Qty=%d', [PSelectedUnit^.name, PSelectedUnit^.Group^.id, PHCMag^.WepId, PHCMag^.Count]); PHCMag := PHCMag^.next; end; Change that into a CSV format and expand to all units instead of a single unit and you have a first iteration. (Potential) future iterations: Print out the weapon name, type, … i.e. do the join with the weapon annexes. Aggregate by WepId. Some units will have five identical magazines, instead of showing five rows, show one with the sum of Qty. Add in the original weapon quantities. This one is probably tricky to implement but definitely possible by looking at the original platform in the DB. Quote
eeustice Posted June 30, 2021 Author Report Posted June 30, 2021 We did talk about this a while ago. One time I exceeded the allowable number of magazines that the db could have and it caused some problems. I wanted to be more efficient with my magazines and to see actually what I had left in the magazines of each base and ship. This way I may be able to reduce the number of magazines for weapons that are not used as much as othere. Quote
donaldseadog Posted July 2, 2021 Report Posted July 2, 2021 I hope to start looking at this soon, first step will be to put the data in my toolbox, once it looks OK I'll run something to spit out a text file (csv database kind of thing probably) at game end. Quote
donaldseadog Posted November 5, 2021 Report Posted November 5, 2021 I can say that this is getting closer, I have a start in my latest toolbox, so it is showing magazine content as the game plays. I'll fine tune it and then put the code into my AAR DLL so there'll be a status at game session end. There is quite a lot of data if the game has a fair number of platforms. 1 Quote
donaldseadog Posted November 6, 2021 Report Posted November 6, 2021 On 11/5/2021 at 6:41 PM, donaldseadog said: I can say that this is getting closer, I have a start in my latest toolbox, so it is showing magazine content as the game plays. I'll fine tune it and then put the code into my AAR DLL so there'll be a status at game session end. There is quite a lot of data if the game has a fair number of platforms. I should have mentioned toolbox only shows the players magazines, all magazine data can be seen for each applicable platform in my DLL lazgui extention tool, which adds a few more functions to TonyEs lazgui tool. Quote
eeustice Posted November 6, 2021 Author Report Posted November 6, 2021 That's even better news. One of the few annexes in the db I maxed out was magazines. This way I can see what weapons I am really using. Thanks again. Quote
donaldseadog Posted November 7, 2021 Report Posted November 7, 2021 On 3/17/2019 at 3:39 AM, eeustice said: I was wondering if there was a way to find out how many weapons were left in each individual magazine. Just have a total # of each weapons left would be good too. I have included an excel spreadsheet with an idea of what I would like to see, If you have any questions please let me know. Thanks, Eric Weapons Remaining.xlsx 8.18 kB · 7 downloads Ok Eric, that looks easy. What is the TG column? Don Quote
eeustice Posted November 7, 2021 Author Report Posted November 7, 2021 I am in the Harpgamer chat room if you would like to join me. TonyE has a link at the top of the Harpgamer website of easy access. Quote
eeustice Posted November 7, 2021 Author Report Posted November 7, 2021 Will you be able to join TonyE's Zoom meeting on the 16th at 7 PM US central time? Quote
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.
Note: Your post will require moderator approval before it will be visible.