Jump to content
Sign in to follow this  
_SCAR

Circular Dependency Error while building addon

Recommended Posts

I have two mods:

 

  • A mod that contain houses, properly named with Land_* prefixes.
  • A terrain mod.

  
From Terrain Builder I have imported the houses, and I can place them and render them with Buldozer - no problems here.
Problems arise when I build the terrain mod, I get a:

 

19:10:37 ------------------------------------------------------------------------------------------------------------------
19:10:37 Circular addon dependency detected (2 addons).
19:10:37 List of addons that can't be resolved and their dependencies:
19:10:37 ----------------------------------------------------
19:10:37  my_terrain
19:10:37    - My_Terrain_Houses
19:10:37 ----------------------------------------------------
19:10:37  My_Terrain_Houses
19:10:37    - my_terrain
19:10:37 ------------------------------------------------------------------------------------------------------------------
ErrorMessage: Circular addon dependency detected, check Rpt for details.
=======================================================

This is CfgPatches for my_terrain:

class CfgPatches
{
	class my_terrain
	{
		units[] = {my_terrain};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Data_F","A3_Roads_F","A3_Map_Data","A3_Map_Stratis","A3_Structures_F"};
		fileName = "my_terrain.pbo";
		author[] = {"_SCAR"};
		versionDesc = "My Terrain";
		version = "1.00";
		versionStr = 1.0;
		versionAr[] = {1, 0, 0};
		magazines[] = {};
		ammo[] = {};
	};	
};

 

This is CfgPatches for My_Terrain_Houses:

 

class CfgPatches
{
    class My_Terrain_Houses
    {
        // author
        name = "My Terrain Houses";
        author = "_SCAR";
        // settings
        weapons[] = {};
        requiredVersion = 0.1;
        units[] =
        {
            "Land_Colored_House_01_F"
        };
        requiredAddons[] = {"A3_Structures_F"};
    };
};

 

This generates 2 pbo: 

  • @my_terrain\Addons\my_terrain.pbo
  • @my_terrain\Addons\my_terrain_houses.pbo


Any ideas of what I may be doing wrong? Or, alternatively, how to generate a *single* pbo which contains everything?
 

Share this post


Link to post
Share on other sites

You have a class name or are using a name that leads back to its self in the config.  

 

units[] = {my_terrain}; // try changing the name in these curly brackets.

You already have my_terrain defined in the class above.

 

Circular dependency errors work the same in MS excel as well. You have a cell with data or formula or in your case in the config pointing back to its self.  Causes an error every time.

 

Hope that helps.

 

Scott Out !

 

 

Share this post


Link to post
Share on other sites
12 hours ago, swtx said:

You have a class name or are using a name that leads back to its self in the config.  

 


units[] = {my_terrain}; // try changing the name in these curly brackets.

You already have my_terrain defined in the class above.

 

Thank you swtx for your response. That's how you define terrain worlds though, so it has to be there.

I was actually able to solve this by first repackaging My_Terrain_Houses, then My Terrain. I guess this has to do with having the My_Terrain_Houses inside of the temp directory?... Will do some more tries.

Share this post


Link to post
Share on other sites

That tells you a lot about my terrain building knowledge, lol.

 

I'm glad you got it !

 

Scott Out !

  • Like 1

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  

×