Skip to content
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

Spearhead 1944 Compatibility #9292

Merged
merged 38 commits into from
Sep 25, 2023
Merged

Conversation

BrettMayson
Copy link
Member

@BrettMayson BrettMayson commented Jul 26, 2023

When merged this pull request will:

  • Add compatibility with SPE
  • SPE MGs use primaries, since CSW does not support this, the default behaviour is used (scroll menu actions)
  • Requires HEMTT 1.7.2

.hemtt/project.toml Outdated Show resolved Hide resolved
@veteran29 veteran29 self-requested a review July 26, 2023 20:26
Coldfront15 and others added 3 commits July 27, 2023 09:29
- Ballistics Framework Finished (Infantry Weapons)
- Wirecutter & Trench Framework Finished (Vests/Backpacks)
- Explosives Framework Finished (Added backward support for IFA3 Detonator/Firecord)
- Crew Served Weapons Framework Finished (Fixed Assemble/Disassemble)
@jonpas jonpas added this to the 3.16.0 milestone Aug 11, 2023
optionals/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgMagazines/explosives.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgMagazines.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgVehicles/backpacks.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgVehicles/backpacks.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgVehicles/tracked.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgWeapons/csw.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgWeapons/helmets.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgWeapons/launchers.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/CfgWeapons/launchers.hpp Outdated Show resolved Hide resolved
optionals/compat_spe/config.cpp Outdated Show resolved Hide resolved
optionals/compat_spe/config.cpp Outdated Show resolved Hide resolved
optionals/compat_spe/script_version.hpp Outdated Show resolved Hide resolved
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: ZluskeN <pontux@gmail.com>
@jonpas jonpas changed the title Compat: Spearhead 1944 Spearhead 1944 Compatibility Sep 5, 2023
@PabstMirror
Copy link
Contributor

build may fail because updated .github/workflows/pboproject.yml won't take effect until after merge

addons/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
addons/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
addons/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
addons/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
addons/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
addons/compat_spe/CfgWeapons/weapons.hpp Outdated Show resolved Hide resolved
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Copy link
Member

@jonpas jonpas left a comment

Choose a reason for hiding this comment

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

This adds CSW and Hearing includes to base compats instead of sub-components.

Comment on lines 7 to 8
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
#include "\z\ace\addons\hearing\script_macros_hearingProtection.hpp"
Copy link
Member

Choose a reason for hiding this comment

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

This causes a requirement on CSW and Hearing.

Copy link
Contributor

Choose a reason for hiding this comment

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

moved to config.cpp

Copy link
Member

Choose a reason for hiding this comment

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

How does that fix it? 🤔

CSW include should be in a sub-component. But I guess GM doesn't have one? Although I guess those are only needed for building?

Copy link
Contributor

Choose a reason for hiding this comment

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

How does that fix it? 🤔

Requirement is only there on building.

@jonpas
Copy link
Member

jonpas commented Sep 12, 2023

  Log P:\temp\compat_spe.packing.log tail:
    9262: rapWarning: **********missing file(s)***************
    9263: 
    9264: \z\ace\addons\compat_spe\compat_spe_explosives\config.cpp Rapify:rapWarning: **********missing file(s)***************

@PabstMirror
Copy link
Contributor

will build ok on merge (changes to pboproject.yml don't take effect inside the pr)

class SPE_M1_81: SPE_US_Mortar_base {
class Turrets: Turrets {
class MainTurret: MainTurret {
magazines[] = {};
Copy link
Member

Choose a reason for hiding this comment

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

Why we're zeroing magazines array here? Won't this make the mortar unusable/empty, CSW compat does not need this IIRC?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, CSW shouldn't need this

Copy link
Contributor

Choose a reason for hiding this comment

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

csw was designed to be a runtime setting
so we shouldn't be doing this or fully removing actions (but we might have to modify them to be compat with csw)

        class UserActions {
            delete Prepare_Illu_Selected;

maybe we just comment out

#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"

for now and finish this sub-component up later

@veteran29 veteran29 self-requested a review September 23, 2023 17:33
.hemtt/project.toml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants