First module now working via 3den placement syncing. Visible in Zeus, but not functional.

This commit is contained in:
Clarky committed 2026-08-29 00:37:37 +10:00
1 parent c5755fb259
commit 00eee092c3
34 files changed
+154 -45

No files matched your search

Binary file not shown.
+21 -3
View File
@@ -1,8 +1,26 @@
class Extended_PreStart_EventHandlers
{
class ADDON
{
// init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'";
init = QUOTE(call COMPILE_SCRIPT(XEH_preStart));
};
};
class Extended_PreInit_EventHandlers class Extended_PreInit_EventHandlers
{ {
class CLF_PreInit class ADDON
{ {
// init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'"; // init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'";
init = QUOTE(call COMPILE_SCRIPT(XEH_preInit)); init = QUOTE(call COMPILE_SCRIPT(XEH_preInit));
} };
} };
class Extended_PostInit_EventHandlers
{
class ADDON
{
// init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'";
init = QUOTE(call COMPILE_SCRIPT(XEH_postInit));
};
};
+12 -2
View File
@@ -1,6 +1,7 @@
class CfgFactionClasses { class CfgFactionClasses {
class NO_CATEGORY; //class NO_CATEGORY;
class CLF: NO_CATEGORY { class CLF //: NO_CATEGORY
{
displayName = "Clarkson's Logi"; displayName = "Clarkson's Logi";
priority = 2; priority = 2;
side = 7; side = 7;
@@ -8,4 +9,13 @@ class CfgFactionClasses {
//class CLF_Logistics: CLF { //class CLF_Logistics: CLF {
// displayName = "CLF - Logistics"; // displayName = "CLF - Logistics";
//}; //};
/*
class GVAR(Logistics)
{
displayName = "Clarkson's Logi";
priority = 2;
side = 7;
};
*/
}; };
+22 -21
View File
@@ -1,3 +1,4 @@
//diag_log "LOGISTICS XEH_PREP RUNNING";
// Root folder functions // Root folder functions
PREP(vehicleLoadMateriel); PREP(vehicleLoadMateriel);
@@ -6,26 +7,26 @@ PREP(vehicleUnloadMateriel);
PREP(vehicleUnloadOre); PREP(vehicleUnloadOre);
// Init folder functions // Init folder functions
PREP_S(initEngineeringBay,init) PREP_S(initEngineeringBay,init);
PREP_S(initEngineeringBayInteractions,init) PREP_S(initEngineeringBayInteractions,init);
PREP_S(initFactory,init) PREP_S(initFactory,init);
PREP_S(initFactoryInteractions,init) PREP_S(initFactoryInteractions,init);
PREP_S(initFOB,init) PREP_S(initFOB,init);
PREP_S(initFOBInteractions,init) PREP_S(initFOBInteractions,init);
PREP_S(initHQ,init) PREP_S(initHQ,init);
PREP_S(initHQInteractions,init) PREP_S(initHQInteractions,init);
PREP_S(initMaterielDepot,init) PREP_S(initMaterielDepot,init);
PREP_S(initMaterielDepotInteractions,init) PREP_S(initMaterielDepotInteractions,init);
PREP_S(initOreDepot,init) PREP_S(initOreDepot,init);
PREP_S(initOreDepotInteractions,init) PREP_S(initOreDepotInteractions,init);
PREP_S(initSupplyVehicle,init) PREP_S(initSupplyVehicle,init);
PREP_S(initSupplyVehicleInteractions,init) PREP_S(initSupplyVehicleInteractions,init);
// Module folder functions // Module folder functions
PREP_S(moduleInitEngineeringBay,modules) PREP_S(moduleInitEngineeringBay,modules);
PREP_S(moduleInitFactory,modules) PREP_S(moduleInitFactory,modules);
PREP_S(moduleInitFOB,modules) PREP_S(moduleInitFOB,modules);
PREP_S(moduleInitHQ,modules) PREP_S(moduleInitHQ,modules);
PREP_S(moduleInitMaterielDepot,modules) PREP_S(moduleInitMaterielDepot,modules);
PREP_S(moduleInitOreDepot,modules) PREP_S(moduleInitOreDepot,modules);
PREP_S(moduleInitSupplyVehicle,modules) PREP_S(moduleInitSupplyVehicle,modules);
+2
View File
@@ -12,6 +12,8 @@
] call CBA_settings_fnc_init; ] call CBA_settings_fnc_init;
*/ */
#include "XEH_PREP.hpp"
// Setting up for auto-naming of new bases etc. in mission // Setting up for auto-naming of new bases etc. in mission
GVAR(baseNames) = [ GVAR(baseNames) = [
"Alpha", "Alpha",
+7 -6
View File
@@ -22,7 +22,7 @@ class CfgVehicles
}; };
// Base module class for any initialisation modules // Base module class for any initialisation modules
class CLF_Init_Base: Module_F class CLF_initBase: Module_F
{ {
scope = 2; scope = 2;
scopeCurator = 2; scopeCurator = 2;
@@ -31,18 +31,19 @@ class CfgVehicles
isDisposable = 1; isDisposable = 1;
// is3DEN = 1; // is3DEN = 1;
curatorCanAttach = 1; curatorCanAttach = 1;
//curatorInfoType = "";
canSetArea = 0; // Allows for setting the area values in the Attributes menu in 3DEN canSetArea = 0; // Allows for setting the area values in the Attributes menu in 3DEN
canSetAreaShape = 0; // Allows for setting "Rectangle" or "Ellipse" in Attributes menu in 3DEN canSetAreaShape = 0; // Allows for setting "Rectangle" or "Ellipse" in Attributes menu in 3DEN
canSetAreaHeight = 0; // Allows for setting height or Z value in Attributes menu in 3DEN canSetAreaHeight = 0; // Allows for setting height or Z value in Attributes menu in 3DEN
}; };
class CLF_Init_HQ: CLF_Init_Base class GVAR(initHQ): CLF_initBase
{ {
author = "Clarky"; author = "Clarky";
displayName = "Initialise HQ"; displayName = "Initialise HQ";
//icon = ""; //icon = "";
category = "CLF" category = "CLF";
function = FUNC(moduleInitHQ); function = QFUNC(moduleInitHQ);
functionPriority = 1; functionPriority = 1;
class Attributes : AttributesBase class Attributes : AttributesBase
@@ -60,7 +61,7 @@ class CfgVehicles
class westSide { name = "$STR_WEST"; value = 1; }; class westSide { name = "$STR_WEST"; value = 1; };
class eastSide { name = "$STR_east"; value = 2; }; class eastSide { name = "$STR_east"; value = 2; };
class indSide { name = "$STR_guerrila"; value = 3; }; class indSide { name = "$STR_guerrila"; value = 3; };
class civSide { name = "$STR_civilian"; value = 4; } class civSide { name = "$STR_civilian"; value = 4; };
}; };
}; };
@@ -69,7 +70,7 @@ class CfgVehicles
class ModuleDescription : ModuleDescription class ModuleDescription : ModuleDescription
{ {
description = "Initialises HQ object for given side." description = "Initialises HQ object for given side.";
}; };
}; };
}; };
+11 -2
View File
@@ -2,12 +2,21 @@
class CfgPatches class CfgPatches
{ {
class ClarkonsLogisticsFramework class ADDON
{ {
units[] = { /*CLF_Init_Base*/ }; units[] = {
QGVAR(initHQ),
QGVAR(initFOB),
QGVAR(initFactory),
QGVAR(initEngineeringBay),
QGVAR(initMaterielDepot),
QGVAR(initOreDepot),
QGVAR(initSupplyVehicle)
};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { requiredAddons[] = {
"A3_Modules_F",
"cba_main", "cba_main",
"cba_xeh" "cba_xeh"
}; };
+1
View File
@@ -1,3 +1,4 @@
#include "..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,4 @@
#include "..\script_component.hpp"
/* /*
Author: Clarky Author: Clarky
Usage: Usage:
@@ -1,3 +1,4 @@
#include "..\script_component.hpp"
/* /*
Author: Clarky Author: Clarky
Usage: Usage:
@@ -1,3 +1,4 @@
#include "..\script_component.hpp"
/* /*
Author: Clarky Author: Clarky
Usage: Usage:
@@ -1,3 +1,4 @@
#include "..\script_component.hpp"
/* /*
Author: Clarky Author: Clarky
Usage: Usage:
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,18 @@
#include "..\..\script_component.hpp"
/*
* Author: Clarky
* Description:
* Describe the function
*
* Arguments:
* 0: Linked HQ <OBJECT>
* 1: Engineering Bay <OBJECT>
*
* Usage:
* [_object, _integer] call CLF_fnc_template
*
*/
/* /*
* Author: Clarky * Author: Clarky
* Usage: * Usage:
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -37,35 +38,35 @@ _hq setVariable [
true true
];*/ ];*/
private _name = "" private _name = "";
switch (_side) switch (_side) do
{ {
case west: case 1:
{ {
_name = GVAR(baseNames) select GVAR(bluforBaseIndex); _name = GVAR(baseNames) select GVAR(bluforBaseIndex);
_hq setVariable ["baseName", _name, true]; _hq setVariable ["baseName", _name, true];
INC(GVAR(bluforBaseIndex)); INC(GVAR(bluforBaseIndex));
} };
case east: case 2:
{ {
_name = GVAR(baseNames) select GVAR(opforBaseIndex); _name = GVAR(baseNames) select GVAR(opforBaseIndex);
_hq setVariable ["baseName", _name, true]; _hq setVariable ["baseName", _name, true];
INC(GVAR(opforBaseIndex)); INC(GVAR(opforBaseIndex));
} };
case independent: case 3:
{ {
_name = GVAR(baseNames) select GVAR(independentBaseIndex); _name = GVAR(baseNames) select GVAR(independentBaseIndex);
_hq setVariable ["baseName", _name, true]; _hq setVariable ["baseName", _name, true];
INC(GVAR(independentBaseIndex)); INC(GVAR(independentBaseIndex));
} };
case civilian: case 4:
{ {
_name = GVAR(baseNames) select GVAR(civilianBaseIndex); _name = GVAR(baseNames) select GVAR(civilianBaseIndex);
_hq setVariable ["baseName", _name, true]; _hq setVariable ["baseName", _name, true];
INC(GVAR(civilianBaseIndex)); INC(GVAR(civilianBaseIndex));
} };
} };
private _baseMarker = createMarker [format ["%1 [HQ]", _name], _hq]; private _baseMarker = createMarker [format ["%1 [HQ]", _name], _hq];
_baseMarker setMarkerShape "ICON"; _baseMarker setMarkerShape "ICON";
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,4 @@
#include "..\..\script_component.hpp"
/* /*
* Author: Clarky * Author: Clarky
* Description: * Description:
@@ -1,3 +1,5 @@
#include "..\..\script_component.hpp"
params [ params [
["_logic", objNull, [objNull]], // Argument 0 is module logic ["_logic", objNull, [objNull]], // Argument 0 is module logic
["_units", [], [[]]], // Argument 1 is a list of affected units (affected by value selected in the 'class Units' argument)) ["_units", [], [[]]], // Argument 1 is a list of affected units (affected by value selected in the 'class Units' argument))
@@ -11,3 +13,18 @@ private _side = _logic getVariable ["Side", -1];
{ {
[_x, _side] remoteExec [QFUNC(initHQ), 2]; [_x, _side] remoteExec [QFUNC(initHQ), 2];
} forEach synchronizedObjects _logic; } forEach synchronizedObjects _logic;
diag_log format [
"Synced objects: %1",
synchronizedObjects _logic
];
diag_log format [
"Synced units: %1",
_units
];
diag_log format [
"Attached objects: %1",
attachedObjects _logic
];
@@ -0,0 +1,24 @@
class RscControlsGroup;
class RscControlsGroupNoScrollbars;
class RscText;
class RscListBox;
class RscCombo;
class RscEdit;
class RscXSliderH;
class RscCheckBox;
class RscActivePicture;
class RscPicture;
class ctrlToolbox;
class RscButton;
class RscDisplayAttributes {
class Controls {
class Background;
class Title;
class Content: RscControlsGroup {
class controls;
};
class ButtonOK;
class ButtonCancel;
};
};