Jump to content
Sign in to follow this  
alleycat

Addon builder crashing

Recommended Posts

Addon builder crashes.

This is a weapon model but I first want to export it as a simple static object. I followed the bunker tutorial and this is the setup:

config.cpp

/*
Colt Detective .38
created by cat
*/
class CfgPatches	
{
class CAT_colt_detective
{
	units[] = {CAT_colt_detective};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {};
};
};


class CfgVehicles
{
class All {};
class Static : All {};
class Building : Static {};
class NonStrategic : Building {};
class TargetGrenade: TargetTraining {};

class CAT_colt_detective
{
	model="\CAT_colt_detective\CAT_colt_detective_01.p3d";
	armor=20000;
	scope=2;
	displayName="CAT_colt_detective_01";
	faction = "Empty";
	vehicleClass = "Objects";
};
};

The project source folder:

I:\Arma3 Mods\colt_detective\colt_detective dev\CAT_colt_detective

Inside of it there is 2 files:

CAT_colt_detective_01.p3d

config.cpp

The addonbuilder is pointing to

I:\Arma3 Mods\colt_detective\colt_detective dev\CAT_colt_detective

for the source folder and to

I:\Arma3 Mods\colt_detective\release pbo\@CAT_colt_detective\Addons

It crashes instantly after clicking pack

The model p3d shows correctly in Object builder. I do not have set up any textures to go with it in the folder

Share this post


Link to post
Share on other sites

Trying to isolate what causes the crash I grabbed a random p3d from the samples folder (boat) an attempted compile with the same files. Now it says some error with build code = 1.

What is the most basic minimum requirement for a p3d file to pass packing? Does it need any specific bones

Share this post


Link to post
Share on other sites

do you have a model.cfg? Do you binarise when packing?

Share this post


Link to post
Share on other sites

In the configFile >> "CfgPatches" >> "CAT_colt_detective", units[] must be an array of strings, eg:

units[] = {"CAT_colt_detective"};

In addition, I invite you to take a look at the weapon sample from the tools (Samples_F\Test_Weapon_01) because, among others, in the CfgPatches, you shouldn't add your weapon class in the units array but in the weapons array.

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  

×