Skip to content
View in the app

A better way to browse. Learn more.

HarpGamer

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Magazine Weapons Remaining at the End of a Scenario

Featured Replies

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

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. 

 

  • 4 weeks later...

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?

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:

  1.  Print out the weapon name, type, …  i.e. do the join with the weapon annexes.
  2. Aggregate by WepId.  Some units will have five identical magazines, instead of showing five rows, show one with the sum of Qty.
  3. 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.
  • 2 years later...
  • 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.

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.

  • 4 months later...

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.

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.

  • 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.

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

  • Author

Task Group

  • 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.

 

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.