-
Notifications
You must be signed in to change notification settings - Fork 67
[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
base: main
Are you sure you want to change the base?
[GEN] Backport feature to select all aircraft with hotkey #834
Conversation
569de23
to
93b9cbb
Compare
93b9cbb
to
fd0f97d
Compare
@@ -2739,7 +2739,51 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage | |||
|
|||
//----------------------------------------------------------------------------------------- | |||
case GameMessage::MSG_META_SELECT_ALL: | |||
{ | |||
case GameMessage::MSG_META_SELECT_ALL_AIRCRAFT: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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')