Jump to content
Vandeanson

Cfgfunction - set folder path & leave fnc paths undefined

Recommended Posts

Hi all,

 

I am a bit puzzled with regards to how cfgFunctions are added (when not defining the path-to-.sqf file for each function).

 

I am trying to merge my functions defined in a test missions description.ext into my mods config.cpp.

The below worked in description.ext.

 

Spoiler

class CfgFunctions
{

	class VA
	{

    class TL
    {
     class Nourishment
          {
            file = "VA3\VA\functionsTL";
            class TLaddKey {};
            class hungerLoop {};
            class thirstLoop {};
            class actionSelect {};
            class placeFireplace {};
            class AVMInjector {};
            class AVMPill {};
            class bandage {};
            class fillBloodbag {};
            class useBloodbag {};
            class eat {};
            class drink {};
            class gatherMil {};
            class gatherRessources {};
            class planting {};
            class gatherPumpkin {};
            class gatherApple {};
            class butcherGame {};
            class selectRecipes {};
            class itemCheck {};
            class snackCheck {};
            class drinkCheck {};
            class mealCheck {};
            class ingredCheck {};
            class utilCheck {};
            class addRecipees {};
            class recipeArray {postInit = 1;};
            class drinkBottle {};
            class fillBottle {};
            class smokeEmitter {};
            class frying {};
            class boiling {};
            class placeCookUtil {};
            class cookFirePlace {};
            class BoilWaterFP {};
            class boilWater {};
          };
    };  };  };

 

 

"VA3" is the root folder of my mod, containing the "VA" folder.

config.cpp is in the "VA" folder

 

I am trying to follow this guide:

https://community.bistudio.com/wiki/Arma_3_Functions_Library#Adding_a_Function

 

more precisely, I am trying to get this to work: 

https://imgur.com/a/k0Z5IWa

 

Any idea what I am doing wrong? 

 

I appreciate any help, thanks!

Cheers

VD

Share this post


Link to post
Share on other sites

This is my mod's cfgFunctions (at least part of it):

class CfgFunctions
{
	class TER
	{
		class 3den
		{
			file="\TER_Editing\fnc";
			class exportCfg
			{
			};
			class findHouseType
			{
			};
			class showBuildingPos
			{
			};
			class exportMarker
			{
			};
			class clearInventory
			{
			};
		};
	};
};

Where TER_Editing is the pbo folder.

Share this post


Link to post
Share on other sites

I reckon file = "VA3\VA\functionsTL"; is missing a slash :

file = "\VA3\VA\functionsTL";

 

Share this post


Link to post
Share on other sites

Thanks gents, will check and confirm back. Wouldnt be the first time a missing \ or ; gets me:) 

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

×