Hierarchy Module Document

The sequel of the legendary wargame with a complete graphics and interface overhaul, major new gameplay and design features such as full naval combat modelling, improved supply handling, numerous increases to scenario parameters to better support large scenarios, and integrated PBEM++.
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Telumar wrote: Mon Jul 27, 2026 6:50 am
Curtis Lemay wrote: Sun Jul 26, 2026 8:16 pm
Telumar wrote: Sun Jul 26, 2026 7:51 am

That's a good idea! The info panel might also be the realm that could harbour the two digits behind the comma ;)
Unfortunately, it turns out that the info panel is only used by graphical objects like buttons, checkboxes, etc. Straight text doesn't use it. TOAW still has things to teach me.
Fortunately you have the power to change that 😊
If my name was Ralph, and I had a few spare months.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

I've now fixed Hierarchy bug #38. Units with very low equipment counts but with subordinate attachments couldn't resist overruns. The problem was difficult to find => impossible without the debugger. I had expected that some routine had omitted the strength from the subordinates, but that wasn't the issue => the defenders had full strength accounted for. Rather, the overrun check also totals active and passive equipment for the defender and if more than 90% is passive it gets auto overrun. And the routine that checks for active/passive ratio had omitted the contributions from the subordinates. Since the superior only contained a commander (passive) regardless of the unit's total strength, it was rated as 100% passive and ran away.

I fixed it so that the subordinates were included in the active/passive check and it mostly worked. (I had to fix another issue I introduced with the fix: I was using the built-in "current player" value, and the units that were being checked were for the non-current player instead. I finally got it all corrected and it is now fixed.

This makes me think there may be lots of other routines that impact stuff other than strength that still need subordinates included. I'll have to make a closer checkout of that issue soon.
Attachments
Hierarchy Bugs.jpg
Hierarchy Bugs.jpg (529.44 KiB) Viewed 848 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Here is Page 1 of the Unit Report for the defender in one of the overrun attacks. Note that its only equipment is a commander (passive equipment):
Attachments
Unit Report Page 1.jpg
Unit Report Page 1.jpg (129.59 KiB) Viewed 846 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

But, here you see on Page 2 of the Unit Report that the unit also had a bunch of subordinate units attached (all huge active equipment counts). It should have been almost 100% active equipment. But due to the omission of the subordinates to the passive check, it was rated 100% passive:
Attachments
Unit Report Page 2.jpg
Unit Report Page 2.jpg (132.55 KiB) Viewed 846 times
Last edited by Curtis Lemay on Tue Jul 28, 2026 6:41 pm, edited 2 times in total.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Here are a suite of overrun attacks about to be attempted. Note the huge sizes of the defenders and tiny sizes of the attackers. Yet, before the fix, all four were consistently overrun. After the fix, none could be overrun => correct.
Attachments
Overrun attacks.jpg
Overrun attacks.jpg (54.74 KiB) Viewed 846 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Telumar
Posts: 2361
Joined: Tue Jan 03, 2006 12:43 am

Re: Hierarchy Module Document

Post by Telumar »

Curtis Lemay wrote: Tue Jul 28, 2026 6:26 pm Image
If you would add a space between Manpower and (% of Auth) as well as one between the (manpower) number and the opening bracket indicating % it would be much better to read. Like this:

Manpower (% of Auth.): 1190 (99,17%)

....

Of course "Manpower Estimate: 1190 (99%)" would even be better ;)
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Telumar wrote: Tue Jul 28, 2026 7:27 pm
Curtis Lemay wrote: Tue Jul 28, 2026 6:26 pm Image
If you would add a space between Manpower and (% of Auth) as well as one between the (manpower) number and the opening bracket indicating % it would be much better to read. Like this:

Manpower (% of Auth.): 1190 (99,17%)

....

Of course "Manpower Estimate: 1190 (99%)" would even be better ;)
Alright, done.
Attachments
Unit Report Page 2.jpg
Unit Report Page 2.jpg (131.04 KiB) Viewed 827 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Telumar
Posts: 2361
Joined: Tue Jan 03, 2006 12:43 am

Re: Hierarchy Module Document

Post by Telumar »

Thanks - much better :)
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Curtis Lemay wrote: Mon Jul 20, 2026 9:13 pm I've fixed Hierarchy bug #42. Attachment checkboxes weren't having any effect for subordinated units.

Turns out, I was checking a subordinate for attachment rules and not the superior unit's rules. Corrected that and it works fine now.
Well, I spoke too soon about this issue. There was a deeper issue that didn't show up until I made a more thorough checkout. Turns out I wasn't comparing the unit to be attached with the parameters of the unit that had orginally occuppied the slot. I finally got that corrected and (I think) it's now fixed.

Now I'll get a new version up ASAP. Edit: Done!
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Since I posted 4.2.0.27, I got a flood of new hierarchy bugs from the testers. I've just fixed Hierarchy bugs #44 & #45. In the Editor, I wasn't clearing the unit detachment flag to OFF when a subordinate unit was added to a superior. I hadn't noticed since, if fresh units are used for everything, those flags were automatically clear to start with. But, Telumar managed to make a unit where they were set to ON instead, and thus the problem. Now the flag is properly set to OFF upon adding.

I also found that it was possible to do subordination with OFF-MAP units, IF the Superior was also OFF-MAP. Now, a check is made to ensure the superior is ON-MAP and this is no longer an issue. Maybe designers would have liked that ability, but I prefer to be safe.
Attachments
Hierarchy Bugs.jpg
Hierarchy Bugs.jpg (565.9 KiB) Viewed 561 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Here's the OOB-Units report for Telumar's test scenario. Note that all units were undeployed at start (thus allowing the issue of doing the subordination with undeployed units). Since I changed that so units have to be placed on map to do subordination, I deployed the units that had the issue.
Attachments
Air Unit subordinates 1.jpg
Air Unit subordinates 1.jpg (329.12 KiB) Viewed 560 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Here's the problem: Before the fix, attaching the subordinates produced this issue => subordinates are attached but detached at the same time.
Attachments
Air Unit subordinates 2a.jpg
Air Unit subordinates 2a.jpg (132.53 KiB) Viewed 558 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

This shot shows that the units (superior and subordinates) must be on the map to do subordination:
Attachments
Air Unit subordinates 2.jpg
Air Unit subordinates 2.jpg (157.39 KiB) Viewed 557 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Here's the unit before subordiates are attached:
Attachments
Air Unit subordinates 3.jpg
Air Unit subordinates 3.jpg (122.33 KiB) Viewed 557 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

And here is after successfully subordinating the units (after the fix):
Attachments
Air Unit subordinates 4.jpg
Air Unit subordinates 4.jpg (137.78 KiB) Viewed 554 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

I've fixed hierarchy bug #47. With the expansion of unit and formation names from 16 to 32 characters, the name slot on the Combat Chart no longer had enough space for those larger names.

I fixed it by doubling the space (from 250 to 500) and the names should now easily fit:
Attachments
Hierarchy Bugs.jpg
Hierarchy Bugs.jpg (565.24 KiB) Viewed 506 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

Here's an example showing an extra large name fitting on the chart:

Note: This name had an additional issue: The end of its name - "Support" - triggered the "Port Attack" attack-type (because of the ending "port"). It's name ended in "Su", and it's attack-type was listed as "P". I added a initial space to the search for that attack-type and you can see that the name now ends correctly in "Support" and the attack-type is corrected to "A".
Attachments
Combat Chart doubled name width.jpg
Combat Chart doubled name width.jpg (137.81 KiB) Viewed 506 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 15348
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Hierarchy Module Document

Post by Curtis Lemay »

I fixed Hierarchy bug #46. The error was in how the code read Designer Preferences. Older versions had to omit a portion of the current list of preferences to stay in sync and I bungled that. Now its fixed. Two weeks to fix one bug. :evil:
Attachments
Hierarchy Bugs.jpg
Hierarchy Bugs.jpg (566.58 KiB) Viewed 66 times
My TOAW web site:

Bob Cross's TOAW Site
Post Reply

Return to “The Operational Art of War IV”