Jump to content
Sign in to follow this  
Hiddens

My module don't spawn in editor

Recommended Posts

Hello everyone,

I am trying to create a module addon. However, after having correctly followed the subject of arma 3, it is well detected in game but the module does not appear in the editor menu. need you help me understand please?

 

config.cpp

class CfgPatches
{
	class myTag_addonName
	{
		units[] = {"hds_systemes_operations"};
		requiredVersion = 1.0;
			requiredAddons[] = {
	      "A3_Modules_F",
				//"CBA_main"
	    	};
	};
};

class CfgFactionClasses
{
	class NO_CATEGORY;
	class hds_systemes_operations: NO_CATEGORY
	{
		displayName = "Hiddens systèmes opérations";
	};
};

class CfgVehicules
{
	class Logic;
	class Module_F:Logic
	{
		class AttributesBase
		{
			class Default;
			class Edit; // Default edit box (i.e., text input field)
			class Combo; // Default combo box (i.e., drop-down menu)
			class Checkbox; // Default checkbox (returned value is Bool)
			class CheckboxNumber; // Default checkbox (returned value is Number)
			class ModuleDescription; // Module description
			class Units; // Selection of units on which the module is applied
		};
		class ModuleDescription
		{
			class EmptyDetector;
		};
	};
	class hds_systemes_occupations: Module_F
	{
		scope = 2; // Editor visibility; 2 will show it in the menu, 1 will hide it.
		displayName = "Secteur occupé"; // Name displayed in the menu
		icon = ""; // Map icon. Delete this entry to use the default icon
		is3DEN = 0;
		function = "hds_generations_occupations";
		functionPriority = 1;
		isGlobal = 0;
		isTriggerActivated = 1;
		isDisposable = 1;

		class Attributes: AttributesBase
		{
			class Yield: Combo
  			{
				// Unique property, use "<moduleClass>_<attributeClass>" format to make sure the name is unique in the world
				property = "hds_generations_occupations_factions_Yield";
				displayName = "Faction"; // Argument label
				tooltip = "Veuillez sélectionner la faction qui sera généré dans le secteur"; // Tooltip description
				typeName = "NUMBER"; // Value type, can be "NUMBER", "STRING" or "BOOL"
				defaultValue = "0"; // Default attribute value. WARNING: This is an expression, and its returned value will be used (50 in this case)
				class Values
				{
					class le_csat	{name = "csat";	value = 0;};
					class le_fia	{name = "fia"; value = 1;};
				};
			};
		};
		class ModuleDescription: ModuleDescription
		{
			description = "Généré une occupations dans le secteur"; // Short description, will be formatted as structured text
		};
	};
};
class CfgFunctions
{
	class hds
	{
		class hds_functions
		{
			file = "\hds_occupations_ops\fonctions";
			class hds_generations_occupations{};
		};
	};
};

 

Share this post


Link to post
Share on other sites

Cfgvehicles  not cfgvehicule you silly frog! (Je te taquine suis français aussi (

  • Haha 1

Share this post


Link to post
Share on other sites

Indeed lol, thank you bro (c'est con en effet) j'ai un problème maintenant avec ma fonction qui ne retour aucune erreur et ne fait rien mais je vais chercher un peu.

thank you again

Share this post


Link to post
Share on other sites

well, my function Don't work and i Don't know why.

nothing error messages

 

fn_genetationsoccupations.sqf

 

private ["_module","_unites","_activer"];

// Module specific behavior. Function can extract arguments from logic and use them.

if (_this select 2) then {
	 // Attribute values are saved in module's object space under their class names
   _position = getpos (_this select 0);
	 _faction = (_this select 0) getVariable ["hds_generations_occupations_factions_Yield",0]; //(as per the previous example, but you can define your own.)
   _taille = 100;
   _nombres_equipes = 4;

   //création du marqueur
   _secteur = [(format ["hds_occups_%1",round random 900]),_position,"Ellipse",[_taille,_taille],
   "BRUSH:","Border",
   "COLOR:","colorOPFOR"
   ] call cba_fnc_createmarker;
   for "_i" from 1 to _nombres_equipes do {
     _equipe = [(_secteur call bis_fnc_randomPosTrigger),
               east,
               (configfile >> "CfgGroups" >> "East" >> "OPF_F" >> "UInfantry" >> "OIA_GuardSquad")
               ] call BIS_fnc_spawnGroup;
    [_position,nil,(units _equipe),_taille,1,false,true] call ace_ai_fnc_garrison;
   };

};
true

help me plz 

Note my _faction variable no used

Share this post


Link to post
Share on other sites

oh common, i am un stupid boy. IsEDEN = 1 … well the parameter chang.. logic

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×