March 16, 20197 yr 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
March 16, 20197 yr 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.
April 12, 20197 yr 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?
April 13, 20197 yr 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.
June 30, 20214 yr Author 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.
July 2, 20214 yr 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.
November 5, 20214 yr 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.
November 6, 20214 yr 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.
November 6, 20214 yr Author 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.
November 7, 20214 yr 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
November 7, 20214 yr Author 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.
November 7, 20214 yr Author Will you be able to join TonyE's Zoom meeting on the 16th at 7 PM US central time?
Create an account or sign in to comment