1.00.06U4 Reinforcements

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

Post Reply
User avatar
ago1000
Posts: 901
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

1.00.06U4 Reinforcements

Post by ago1000 »

Reinforcements still have a max.

Check out the Gr. Wodrig Corp 10/20 strength at the start of the 1939 scenario. For this unit the Max it will reinforce in a single turn is 3 strength. It will use 10PP to go from 10/20 to 13/20.

User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: 1.00.06U4 Reinforcements

Post by AlvaroSousa »

I checked the code and it was right. I thought "ahh ago1000 is crazy"

But I just did this specific test and you are right. So I looked at the calculation and it says 4 but is coming back 3. Because it registering it as a float like 3.99999999 and rounding down on the multiple. weird because it's an even division. I'll have to rewrite the formula in a different way.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
ago1000
Posts: 901
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: 1.00.06U4 Reinforcements

Post by ago1000 »

Lol.[:)] I do work in a white room with no windows. Just waiting for them to put up the padding.[X(]

Thanks again for looking at it and all the updates. This game keeps getting better and better.
I know that Java arithmetic will truncate calculations, not sure about C#. In java 1/2 is 0 unless you force it to calculate the decimal, (1.0 * 1)/2 or 1D/2.

Just wondering if this might be possible:
1) adding a tech column to help see which units need upgrading.
2) clicking arrow will select/highlight the unit also.

Great idea changing the font colour when you select a unit not to reinforce/upgrade.
Circles for air units look great also.



Image
Attachments
suggestion.jpg
suggestion.jpg (30.78 KiB) Viewed 153 times
User avatar
ago1000
Posts: 901
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: 1.00.06U4 Reinforcements

Post by ago1000 »

Forgot to upload this one. This was a previous suggestion I had made in an earlier post with regard to showing reinforcement and upgrade production point costs to help users better estimate how many production points to allocate to reinforcement/upgrades in between turns when the priority reinforcement/upgrade icon is selected. (My original suggest was to select a letter, like p, and click on the units and it would give you an approximate reinforcement and upgrade cost if the units were placed in priority. This may be too difficult to implement.) The pic below is an alternative to the previous idea.

Image
Attachments
suggestion2.jpg
suggestion2.jpg (70.69 KiB) Viewed 153 times
Post Reply

Return to “WarPlan”