Skip to content

Add numeric army estimates (cfg file only) #9678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

modo-lv
Copy link
Contributor

@modo-lv modo-lv commented Mar 23, 2025

This PR adds a numeric army size estimates setting to fheroes2.cfg file. When changed to on, army estimates in game will display number ranges ("10-19") instead of the original verbal descriptions ("lots").

This has been requested in #1530, and I agree that it should be an option, however adding it to the UI turned out to be beyond my ability (at least for now). So this is not a prefect fix, useful for those who can manually edit their configuration files. But I believe this is better than nothing, and hopefully the UI parts can be added in the future.

image

image

@oleg-derevenetz oleg-derevenetz added improvement New feature, request or improvement ui UI/GUI related stuff labels Mar 24, 2025
@oleg-derevenetz oleg-derevenetz added this to the Beyond OG scope milestone Mar 24, 2025
Copy link
Collaborator

@oleg-derevenetz oleg-derevenetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @modo-lv I left a few comments regarding this PR, could you please to take a look when possible?

As for the idea of PR in general, we usually avoid introducing new settings if they cannot be done through the GUI, because on some platforms (that are considered first-class - for instance, on modern Android versions), manually editing the config is very difficult for an average user.

@modo-lv modo-lv force-pushed the numeric-amounts branch 5 times, most recently from 17def48 to a57f858 Compare March 24, 2025 23:30
Copy link
Collaborator

@oleg-derevenetz oleg-derevenetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this PR looks OK, but I'd wait for @ihhub decision, because, as I already mentioned, there are certain requirements for new options.

@oleg-derevenetz oleg-derevenetz requested a review from ihhub March 27, 2025 11:50
@ihhub
Copy link
Owner

ihhub commented Mar 29, 2025

I will review this PR later.

Overall, I am not against this change as I've seen many players asking for this but I see that players won't like the idea of changing such a parameter inside a configuration file. It is not a user friendly approach. Therefore, this change must have a dedicated UI option. We don't need to implement it in this PR but at least have a brief idea how it should look like in the game and where to put it.

I am tagging @Branikolog for this matter.

@modo-lv
Copy link
Contributor Author

modo-lv commented Mar 29, 2025

My idea was to make the interface settings panel a 3x3 instead of 2x2, and use these artifact icons for the setting. They have similar purple background to normal setting icons and are also similar enough to each other too look like two states of the same thing.

image
image

@ihhub
Copy link
Owner

ihhub commented Mar 29, 2025

@modo-lv , icons for the option must be suitable, not some random images. We need to create new ones.

Having settled about the name of the option we should update the current source code as well. I think the option should be called something like "Army size view" and has 2 states: canonical and mumeric.

What do you think @zenseii , @oleg-derevenetz and @Branikolog ?

@oleg-derevenetz
Copy link
Collaborator

icons for the option must be suitable, not some random images. We need to create new ones.

Having settled about the name of the option we should update the current source code as well. I think the option should be called something like "Army size view" and has 2 states: canonical and numeric.

I agree.

@zenseii
Copy link
Collaborator

zenseii commented Mar 29, 2025

@ihhub. I agree. We shouldn't re-use these icons. Concepts for the new ones need to be come up with and then we can ask pixel artists for help.

I think "army size view" would be interpreted as the exact size . How about "Army Size Range"?

@Branikolog
Copy link
Collaborator

Hi!

I think the option should be called something like "Army size view" and has 2 states: canonical and numeric.

Maybe we can stick to just two words: army size or army view. I think it would be enough.

Also, if we are going to expand settings window to 3x2 we need to add one more option there. 😅

As for the icon itself, I personally think, that making a collage with several monsters sprites and toggling text (pack/"10-19") under them could work.

@modo-lv
Copy link
Contributor Author

modo-lv commented Mar 29, 2025

Why not "army estimates"? Since it's not an exact size.

@ihhub
Copy link
Owner

ihhub commented Apr 18, 2025

I can see that we are stuck here. Let me make the review and propose the needed changes for the future UI.

Copy link
Owner

@ihhub ihhub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @modo-lv , I added few comments here. Would you mind to take a look at them?

@modo-lv modo-lv force-pushed the numeric-amounts branch from f63f8cf to fa4001a Compare May 2, 2025 06:43
@modo-lv modo-lv requested a review from ihhub May 2, 2025 06:46
@usidedown
Copy link
Contributor

How about this as a base for the icon in the options menu:
icon_blank
Maybe 2 different variations for each option, E.g. "A-Z" text for the classic way and some roman numerals for the new option.

@ihhub ihhub requested a review from zenseii May 24, 2025 07:42
@ihhub
Copy link
Owner

ihhub commented May 24, 2025

Hi @zenseii , could you please take a look at the introduced configuration option and it's description and evaluate whether it is suitable in terms of the game?

Copy link
Collaborator

@zenseii zenseii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,@modo-lv. I left some comments. I'm not against adding such an option. My main concern is that we are adding it only in the configuration file and not as an actual option in the game. I really think we should come up with an icon and add it.

The icon @usidedown provided is of a good visual quality, but doesn't fit the purpose.

I would also much prefer it if we called it "army range", rather than "estimate" because the possible numerical values are known, so there's not estimation or guesswork in the picture. If you know for a fact that something is between 10-19, then that's a known range, not an estimate.

break;
// Numeric estimates
if ( Settings::Get().isArmyEstimationViewNumeric() ) {
str = _( "%{range}\n%{monster}" );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I believe it would look better if the range was put below the name of the creature.
Instead of this:
image

it should be:
Orcs
10-19

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I called it "estimate" because I see it from an in-universe perspective: the heroes are estimating the size of the opposing army, without knowing the exact numbers. And it feels weird to describe singular terms like "several" and "lots" as ranges. As players we know (or can look up) the numeric range that a term represents, but the word itself isn't a range, it's a singular, inexact amount (an approximation).

As for the layout, I left it the same as canonical estimates because that's how it naturally reads: "a pack of orcs" is a natural English sentence, just like "ten to nineteen orcs". Putting the numbers underneath breaks that flow, making the numeric estimate read as a separate piece of information ("orcs. ten to nineteen."), which adds an unnecessary inconsistency with the canonical UI.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @modo-lv , we need to consider other languages as well. Usually having:

Orcs
10-19

implies that most of languages will need no changes. However, with the proposed

10-19
Orcs

we are facing a situation that we have to have some special cases for translations.

So, on one side as you highlighted we must be to true to the original atmosphere of the game but on the other hand we should be considered about translations. If we aren't sure we can take a look how in other games it is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement ui UI/GUI related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants