Jump to content

Recommended Posts

Posted

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

Posted

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

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?

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

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.

Posted

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

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.

  • Like 1
Posted
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.

Posted

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.

Posted
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

Posted

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.

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...