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

Add support for building with HEMTT v1.0+ #1565

Merged
merged 25 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e06658f
Hemmit Config Compat
PabstMirror Jan 15, 2023
57b87c4
fix
PabstMirror Jan 15, 2023
3d6a89c
Create fn_isdebugconsoleallowed.sqf
PabstMirror Jan 20, 2023
4213ffe
test
PabstMirror Jan 20, 2023
b972868
asc:exclude - use forward slashes
PabstMirror Jan 20, 2023
f10a937
undo assert changes
PabstMirror Jan 20, 2023
aab30f0
Merge branch 'master' into hemmit10test
jonpas May 16, 2023
12f0672
Adapt to HEMTT v1
jonpas May 16, 2023
d72d8ac
Set version in CfgMods.hpp and build in script_version.hpp in HEMTT hook
jonpas May 16, 2023
3bc46af
Add missing includes, Fix script_version build set, Update HEMTT config
jonpas May 16, 2023
e964c35
Reenable ASC
jonpas May 16, 2023
57622af
Fix LOG macros
jonpas May 16, 2023
d2a10fb
JR - Remove private/protected/public/Read defines
jonpas May 16, 2023
6736af6
Adapt flexiMenu to HEMTT v1
jonpas May 16, 2023
051812b
Set build to date in HEMTT hook
jonpas May 20, 2023
1cc0a4c
Merge branch 'master' into hemmit10test
jonpas Jun 26, 2023
88bce47
Fix multi-line config quote issues
jonpas Jun 26, 2023
5dff99b
Keep old hemtt.toml for backward compatibility
PabstMirror Jun 26, 2023
571e197
fix semi-colon usage after #include
PabstMirror Jul 27, 2023
0cb477b
Merge branch 'master' into hemmit10test
PabstMirror Jul 27, 2023
afbf9d8
hemtt 1.8 RC2 math update
PabstMirror Jul 30, 2023
aa21617
Merge branch 'master' into hemmit10test
PabstMirror Aug 17, 2023
7b3bb3f
Update test_position.sqf
PabstMirror Aug 17, 2023
3e2852b
Create settings.json
PabstMirror Aug 17, 2023
f52a33a
update includes for 2.12
PabstMirror Aug 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
release/*
releases/*
keys/*
.hemttout
hemtt
hemtt.exe
tools/hemtt*.tar.gz*
tools/hemtt*.zip*
.hemtt/local
*.cache
*.pbo
texHeaders.bin
Expand Down
35 changes: 26 additions & 9 deletions hemtt.toml → .hemtt/project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,38 @@ name = "CBA_A3"
prefix = "cba"
author = "CBATeam"
mainprefix = "x"
files = [
"mod.cpp",
"README.md",
"LICENSE.md",
"logo_cba_ca.paa",
"meta.cpp",
"userconfig"
]

version = "3.15.1"

modname = "{{name}}"
key_name = "{{prefix}}_{{version}}"
authority = "{{prefix}}_{{version}}-{{git \"id 8\"}}"



[asc]
enabled = true
exclude = [
"\\initsettings.sqf",
"\\initkeybinds.sqf",
"\\xeh_prep.sqf",
"\\backwards_comp.sqf",
"settings\\gui_createcategory.sqf",
"diagnostic\\fnc_isdebugconsoleallowed.sqf",
jonpas marked this conversation as resolved.
Show resolved Hide resolved
"xeh\\fnc_initdisplay.sqf",
"xeh\\fnc_startloadingscreen.sqf",
"xeh\\fnc_endloadingscreen.sqf"
]











check = [
"!version_set"
]
Expand Down
6 changes: 3 additions & 3 deletions addons/common/fnc_switchPlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ _dummyUnit = (_ar select 4) createUnit [_type, [0, 0, 0], [], 0, "NONE"]; // Joi
if (isNull _dummyUnit) exitWith { hint "Sorry, something went wrong, dummyUnit is null" };
[_oldUnit] join _dummyGroup;

LOG(format["1.Dummy created, State saved and put oldUnit in new group: %1", _dummyGroup]);
// LOG(format["1.Dummy created, State saved and put oldUnit in new group: %1", _dummyGroup]);
jonpas marked this conversation as resolved.
Show resolved Hide resolved

private _newUnit = _dummyGroup createUnit [_type, _ar select 5, [], 0, "NONE"];

if (isNull _newUnit) exitWith { hint "Sorry, something went wrong, newUnit is null" };

LOG(format["2.New unit created, local: %1", local _newUnit]);
// LOG(format["2.New unit created, local: %1", local _newUnit]);
sleep 1;

addSwitchableUnit _newUnit;
Expand All @@ -58,7 +58,7 @@ selectPlayer _newUnit;
_newUnit setRank (_ar select 2);
_newUnit addScore (_ar select 3);

LOG(format["3.State transfered, switched player control to new unit, local: %1", local _newUnit]);
// LOG(format["3.State transfered, switched player control to new unit, local: %1", local _newUnit]);
sleep 1;
if (_ar select 7 != "") then
{
Expand Down
6 changes: 3 additions & 3 deletions addons/diagnostic/CfgDisplay3DEN.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ class Display3DEN {
class MenuStrip: ctrlMenuStrip {
class Items {
class DebugConsole {
shortcuts[] = {INPUT_CTRL_OFFSET + DIK_D};
shortcuts[] = {QUOTE(INPUT_CTRL_OFFSET + DIK_D)};
};
class FunctionsViewer {
shortcuts[] = {INPUT_ALT_OFFSET + DIK_F};
shortcuts[] = {QUOTE(INPUT_ALT_OFFSET + DIK_F)};
};
class ConfigViewer {
shortcuts[] = {INPUT_ALT_OFFSET + DIK_G};
shortcuts[] = {QUOTE(INPUT_ALT_OFFSET + DIK_G)};
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/diagnostic/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CfgFunctions {
class A3 {
class Debug {
class isDebugConsoleAllowed {
file = PATHTOF(fnc_isDebugConsoleAllowed.sqf);
file = QPATHTOF(fnc_isDebugConsoleAllowed.sqf);
};
};
};
Expand Down
30 changes: 15 additions & 15 deletions addons/diagnostic/gui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class RscTitles {
onLoad = QUOTE(uiNamespace setVariable [ARR_2('GVAR(Error)',_this select 0)]);
idc = -1;
font = "RobotoCondensedBold";
sizeEx = 0.55 * GUI_GRID_CENTER_H;
x = 0 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
y = 5 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
w = 40 * GUI_GRID_CENTER_W;
h = 10 * GUI_GRID_CENTER_H;
sizeEx = QUOTE(0.55 * GUI_GRID_CENTER_H);
x = QUOTE( 0 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X);
y = QUOTE( 5 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y);
w = QUOTE(40 * GUI_GRID_CENTER_W);
h = QUOTE(10 * GUI_GRID_CENTER_H);
colorBackground[] = {1,0.2,0,0.8};
};
};
Expand All @@ -29,22 +29,22 @@ class GVAR(watchInput): RscEdit {
autocomplete = "scripting";
shadow = 0;
font = "EtelkaMonospacePro";
x = 0.5 * GUI_GRID_W;
y = 11 * GUI_GRID_H;
w = 21 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
sizeEx = 0.7 * GUI_GRID_H;
x = QUOTE(0.5 * GUI_GRID_W);
y = QUOTE(11 * GUI_GRID_H);
w = QUOTE(21 * GUI_GRID_W);
h = QUOTE(1 * GUI_GRID_H);
sizeEx = QUOTE(0.7 * GUI_GRID_H);
};

class GVAR(watchOutput): RscEdit {
lineSpacing = 1;
style = ST_NO_RECT;
shadow = 0;
font = "EtelkaMonospacePro";
x = 0.5 * GUI_GRID_W;
y = 12 * GUI_GRID_H;
w = 21 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
x = QUOTE(0.5 * GUI_GRID_W);
y = QUOTE(12 * GUI_GRID_H);
w = QUOTE(21 * GUI_GRID_W);
h = QUOTE(1 * GUI_GRID_H);
colorBackground[] = {0,0,0,0.75};
sizeEx = 0.7 * GUI_GRID_H;
sizeEx = QUOTE(0.7 * GUI_GRID_H);
};
8 changes: 4 additions & 4 deletions addons/diagnostic/test_assertions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ private ["_a", "_b"];
ERROR("Testing that ERROR() is output correctly");
_a = false;

ASSERT_TRUE(_a,"Checking ASSERT_TRUE(" + str(_a) + ") outputs an error correctly");
ASSERT_TRUE(_a,"Checking AXSSERT_TRUE(" + str(_a) + ") outputs an error correctly");
BrettMayson marked this conversation as resolved.
Show resolved Hide resolved
_a = true;

ASSERT_FALSE(_a,"Checking ASSERT_FALSE(" + str(_a) + ")outputs an error correctly");
ASSERT_FALSE(_a,"Checking AXSSERT_FALSE(" + str(_a) + ")outputs an error correctly");
_a = 1;
_b = 2;

ASSERT_OP(_a,>,_b,"Checking ASSERT_OP(1>2) outputs an error correctly");
ASSERT_DEFINED("_imaginaryFox","Checking ASSERT_DEFINED() is output correctly");
ASSERT_OP(_a,>,_b,"Checking AXSSERT_OP(1>2) outputs an error correctly");
ASSERT_DEFINED("_imaginaryFox","Checking AXSSERT_DEFINED() is output correctly");

nil;
14 changes: 7 additions & 7 deletions addons/jr/config.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "script_component.hpp"

#define private 0 // hidden
Copy link
Member

Choose a reason for hiding this comment

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

This was the only one used in one place, I removed those defines, should be fine?

#define protected 1 // hidden but usable
#define public 2 // visible
#define private 0
#define protected 1
#define public 2

#define ReadAndWrite 0 //! any modifications enabled
#define ReadAndCreate 1 //! only adding new class members is allowed
#define ReadOnly 2 //! no modifications enabled
#define ReadOnlyVerified 3 //! no modifications enabled, CRC test applied
#define ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3

class CfgPatches {
class ADDON {
Expand Down
Loading