Page MenuHomeFeedback Tracker

Please move custom skeleton definition to cfgMods in config.cpp
Assigned, UrgentPublic

Description

When implementing custom creature(animal) with own new skeleton right now I must create new cpp file outside mod with path to skeleton. Will be logical that this path will be inside mod (pbo).

Right now when build mod which is stored in pbo format in addon folder I must create another cpp file which contains this line:

skeletonDefinitions = "Bird/Skeletons/Bird_Skeleton.anim.xml";

My proposal is move that to logical place which is in my opinion config.cpp inside mod.

Example:

class CfgMods
{
	class Bird
	{
		dir="Bird";
		name="Bird";
		type="mod";
		hideName=1;
		hidePicture=1;
                skeletonDefinitions = "Bird/Skeletons/Bird_Skeleton.anim.xml"; 
		dependencies[]=
		{
			"World"
		};
		class defs
		{
			class gameScriptModule
			{
				files[]=
				{
					"Bird/Scripts/3_Game"
				};
			};
			class worldScriptModule
			{
				files[]=
				{
					"Bird/Scripts/4_World"
				};
			};
			class missionScriptModule
			{
				files[]=
				{
					"Bird/scripts/5_Mission"
				};
			};
		};
	};
};

Also in meantime will be good that old way will works too, to not break mods with custom skeletons instantly.

Details

Severity
Tweak
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

Geez changed the task status from New to Assigned.Oct 24 2022, 12:29 PM