Jump to content
Sign in to follow this  
jimmybulmer

Mod Development - model.cfg & config.cpp help

Recommended Posts

I am trying to work on some assets for a mod but cant seem to get it to work properly. Everything works fine the model appears in the model viewer from O2 with textures and everything, however when I put it into Arma 3 I cant find the model in the editor. 

Bellow are my model.cfg and an image of it in the model viewer. Any help is appreciated

 

class CfgPatches
{
	class Survive_Level1_Structures
	{
		units[] = {"Land_BushCraftWall_1"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};
};

class CfgVehicles
{
	class Static;
	class Land_BushCraftWall_1 : Static
	{
		scope = 2;
		model = "\Survive_Level1Structures\BushCraftWall01.p3d";
		displayName = "Bushcraft Wall 1";
		vehicleClass = "survive";
	};
};

c772fe4bf4c7bb38a1053e933f1382f2

Share this post


Link to post
Share on other sites

remove 'vehicleClass = "survive";' or define the custom vehicle class

also static might not have editor categories for Eden configured

Share this post


Link to post
Share on other sites

remove 'vehicleClass = "survive";' or define the custom vehicle class

also static might not have editor categories for Eden configured

tried this and it didnt work. 3den is the only editor now (they have disabled the 2d editor from what I can see and i've had it work with this config before. 

any other suggestions?

Share this post


Link to post
Share on other sites

tried this and it didnt work. 3den is the only editor now (they have disabled the 2d editor from what I can see and i've had it work with this config before. 

any other suggestions?

Hi Jimmy,
 
Try this, obviously rename all to fit your mod project folder.
 
Config.cpp
 
Model.cfg
 
Care to ignore the animation stuff, as it looks as your gate thing doesn't need to animate. Hope I helped :)
 
Regards,
Heisen
 
p.s. In the future, try be more specific when naming your topics for help such as : "config.cpp/model.cfg help?".

Share this post


Link to post
Share on other sites

 

Hi Jimmy,
 
Try this, obviously rename all to fit your mod project folder.
 
Config.cpp
 
Model.cfg
 
Care to ignore the animation stuff, as it looks as your gate thing doesn't need to animate. Hope I helped :)
 
Regards,
Heisen
 
p.s. In the future, try be more specific when naming your topics for help such as : "config.cpp/model.cfg help?".

 

Have just tried this and had the same outcome.

I will do that in the future I just threw this together quickly in hope to get responses ASAP. 

Share this post


Link to post
Share on other sites

Oh also when i try to spawn it in using the class name like this: 

createVehicle ["land_bushcraft_wall_1_f", position player, [], "0", "0"];

and get the error: 'Error type string, expected Number

Share this post


Link to post
Share on other sites

Oh also when i try to spawn it in using the class name like this: 

createVehicle ["land_bushcraft_wall_1_f", position player, [], "0", "0"];

and get the error: 'Error type string, expected Number

 

Your last two parameters ("0") are incorrect. Wrapping a number in quotes will turn it into a string. Also, the last parameter does not have a correct value, check the BIKI:

 

https://community.bistudio.com/wiki/createVehicle

Share this post


Link to post
Share on other sites

Your last two parameters ("0") are incorrect. Wrapping a number in quotes will turn it into a string. Also, the last parameter does not have a correct value, check the BIKI:

 

https://community.bistudio.com/wiki/createVehicle

Oh whoops, me being dumb lol. 

Did that anyway and get no errors but still nothing spawns in? I get no errors at anypoint throughout launching the game all the way to closing it. 

Share this post


Link to post
Share on other sites

I didn't notice it before but why are you trying to spawn in "land_bushcraft_wall_1_f"? Your class is called "Land_BushCraftWall_1"

Share this post


Link to post
Share on other sites

I didn't notice it before but why are you trying to spawn in "land_bushcraft_wall_1_f"? Your class is called "Land_BushCraftWall_1"

changed it to that after 

 

Share this post


Link to post
Share on other sites

I am now going to crawl into a hole and cry because of how stupid I have been today....

I FORGOT TO PUT THE PBO IN AN ADDONS FOLDER... im so dumb im at a loss for words XD 

Thread can be closed this is fixed thanks everyone for the help 

  • Like 2

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  

×