Skip to content

[GEN] Backport feature to select all aircraft with hotkey #834

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 1 commit into
base: main
Choose a base branch
from

Conversation

roossienb
Copy link

@roossienb roossienb commented May 9, 2025

Backports the feature to select all aircraft with hotkey (default: 'W').

Backport has been performed with WinMerge

The feature is bound to a hotkey that must be defined in Data/<language>/CommandMap.ini, found in the <language>.BIG file.

To set the hotkey without changing the BIG file, download CommandMap.zip and unzip it into the folder: <gamedirectory>/Data/<language>/
(this version of the command map also contains the earlier backported fast-forward hotkey 'F')

roossienb pushed a commit to roossienb/GeneralsGameCode that referenced this pull request May 9, 2025
@roossienb roossienb force-pushed the backport-select-all-aircraft branch from 569de23 to 93b9cbb Compare May 9, 2025 19:40
@roossienb roossienb force-pushed the backport-select-all-aircraft branch from 93b9cbb to fd0f97d Compare May 9, 2025 19:43
@roossienb roossienb marked this pull request as ready for review May 9, 2025 19:44
@roossienb roossienb self-assigned this May 9, 2025
@roossienb roossienb added Enhancement Is new feature or request Generals Related Generals only Unify Unifies code between Generals and Zero Hour labels May 9, 2025
@roossienb roossienb added this to the Code foundation build up milestone May 9, 2025
@@ -2739,7 +2739,51 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage

//-----------------------------------------------------------------------------------------
case GameMessage::MSG_META_SELECT_ALL:
{
case GameMessage::MSG_META_SELECT_ALL_AIRCRAFT:
Copy link

Choose a reason for hiding this comment

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

This select all aircraft logic or even select all will cause mismatch in multiplayer right?

If it does, then we need to be able to disable this for Generals with compiler switch.

So:

#if RTS_GENERALS && VC6_BUILD
// the Generals retail behaviour ...
#else
// the Zero Hour behaviour here ...
#endif

This code then also needs to be in Zero Hour, so they become identical before we move them.

Copy link
Author

Choose a reason for hiding this comment

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

Will do some MP testing

Copy link
Author

@roossienb roossienb May 11, 2025

Choose a reason for hiding this comment

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

I just realized this is not easy to test because generals has exeCRC in place. We need to spoof that first.

Copy link

Choose a reason for hiding this comment

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

Yes we need to fake that in both Generals and Zero Hour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Is new feature or request Generals Related Generals only Unify Unifies code between Generals and Zero Hour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants