Home   Help Search Login Register  

Author Topic: Config help: No entry  (Read 2548 times)

0 Members and 1 Guest are viewing this topic.

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Config help: No entry
« on: 07 Aug 2009, 21:41:26 »
Ingame when I spawn the first custom particle in our new addon, I get this message:
Code: [Select]
No entry 'bin\config.bin/cfgModels.default'.
I remember reading somewhere that "default" is no longer a valid class? Can anyone shed any more light on this notion that I have?

after OKing the message, the mission plays out and all the particles are seen as expected. The first part of the Drop command looks like this:
Code: [Select]
Drop[["JTD_FireAndSmoke\smokegeneric2.p3d", 1, 0, 1], "", "Billboard"...etc
and currently the entire config looks like this:
Code: [Select]
#define private 0
#define protected 1
#define public 2

#define true 1
#define false 0

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define VSoft 0
#define VArmor 1
#define VAir 2

class CfgPatches
{
 class JTD_FireAndSmoke
 {
  units[] =   {};//"DMViewBlock4Vis","DMViewBlock4Inv","DMViewBlock8Vis","DMViewBlock8Inv",DMViewBlock12vis};
  weapons[] = {};
  requiredVersion = 1.00;
  requiredAddons[] = {"Extended_EventHandlers"};
 };
};


class Extended_Init_EventHandlers
{
// Define the classes to add inits to.

class All
{
JTDFAS_Init_All="(_this select 0) addEventHandler [""killed"", {_this execVM ""FireAndSmoke.sqf""}];";
//JTDFAS_Init_All="(_this select 0) addEventHandler [""killed"", {_this execVM ""\JTD_FireAndSmoke\Scripts\FireAndSmoke.sqf""}];";
};

};


class CfgVehicleClasses
{
 class JTD_Misc
 {
   displayName="JTD Misc";
 };
};


class CfgVehicles
{
class All;
class Air;
class Land;


 class Strategic;
/*
 class DMShockWave : Strategic
 {
  icon="";//\DMSmokeEffects\Images\DMShockWave.paa";
  displayName="DMShockWave";
  vehicleClass="JTD_Misc";
  armor=1000000;
  scope=public;
  model="\DMSmokeEffects\DMShockWave.p3d";
  autocenter = false;
 };
*/
 class DMViewBlock4Vis : Strategic
 {
  icon="";//\DMSmokeEffects\Images\DMViewBlockVis.paa";
  displayName="DMViewBlock 4m (visible)";
  vehicleClass="JTD_Misc";
  armor=1000000;
  scope=public;
  model="\JTD_FireAndSmoke\DMViewBlock4Vis.p3d";
  autocenter = false;
 };

 class DMViewBlock4Inv : DMViewBlock4Vis
 {
  displayName="DMViewBlock 4m (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock4Inv.p3d";
 };
 class DMViewBlock8Vis : DMViewBlock4Vis
 {
  displayName="DMViewBlock 8m (visible)";
  model="\JTD_FireAndSmoke\DMViewBlock8Vis.p3d";
 };
 class DMViewBlock8Inv : DMViewBlock4Vis
 {
  displayName="DMViewBlock 8m (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock8Inv.p3d";
 };
 class DMViewBlock12vis : DMViewBlock4Vis
 {
  displayName="DMViewBlock 12m (visible)";
  model="\JTD_FireAndSmoke\DMViewBlock12vis.p3d";
 };
 class DMViewBlock12inv : DMViewBlock4Vis
 {
  displayName="DMViewBlock 12m (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock12inv.p3d";
  icon="";
 };
 class DMViewBlock12_2_inv : DMViewBlock4Vis
 {
  displayName="DMViewBlock 12m 2 (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock12_2_inv.p3d";
  icon="";
 };
 class DMViewBlock24x12inv : DMViewBlock4Vis
 {
  displayName="DMViewBlock 24m x 12m (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock24x12inv.p3d";
  icon="";
 };
 class DMViewBlock24x12vis : DMViewBlock4Vis
 {
  displayName="DMViewBlock 24m x 12m (visible)";
  model="\JTD_FireAndSmoke\DMViewBlock24x12vis.p3d";
  icon="";
 };

 class DMViewBlock12inv_shadow : DMViewBlock4Vis
 {
  displayName="DMViewBlock 12m shadow (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock12inv_shadow.p3d";
  icon="";
 };
 class DMViewBlockTallinv : DMViewBlock4Vis
 {
  displayName="DMViewBlock Tall (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlockTallinv.p3d";
  icon="";
 };
 class DMViewBlockTallvis : DMViewBlock4Vis
 {
  displayName="DMViewBlock Tall (visible)";
  model="\JTD_FireAndSmoke\DMViewBlockTallvis.p3d";
  icon="";
 };
 class DMViewBlock24vis : DMViewBlock4Vis
 {
  displayName="DMViewBlock 24m (visible)";
  model="\JTD_FireAndSmoke\DMViewBlock24vis.p3d";
 };
 class DMViewBlock24inv : DMViewBlock4Vis
 {
  displayName="DMViewBlock 24m (invisible)";
  model="\JTD_FireAndSmoke\DMViewBlock24inv.p3d";
 };

};

//DMViewBlock objects


class cfgModels
{
// class Default;
class DMViewBlockBase
{
sectionsInherit = "";
sections[] = {};
};

class DMViewBlock4Vis : DMViewBlockBase {};
class DMViewBlock4Inv : DMViewBlockBase {};
class DMViewBlock8Vis : DMViewBlockBase {};
class DMViewBlock8Inv : DMViewBlockBase {};
class DMViewBlock12Inv : DMViewBlockBase {};
class DMViewBlock12vis : DMViewBlockBase {};
class DMViewBlock24Inv : DMViewBlockBase {};
class DMViewBlock24vis : DMViewBlockBase {};
class DMShockWave : DMViewBlockBase {};
};


class DM_SmokeViewBlock4
{
class Script {simulation="particles";type="DM_SmokeViewBlockType4";position[]={0,0,0};intensity=1;interval=1;lifeTime=1;};
};

class CfgCloudletShapes
{
JTD_smoke0 = "\JTD_FireAndSmoke\smoke0.p3d";
JTD_smoke1 = "\JTD_FireAndSmoke\smoke1.p3d";
JTD_smoke2 = "\JTD_FireAndSmoke\smoke2.p3d";
JTD_smoke3 = "\JTD_FireAndSmoke\smoke3.p3d";
JTD_smoke4 = "\JTD_FireAndSmoke\smoke4.p3d";
JTD_smoke5 = "\JTD_FireAndSmoke\smoke5.p3d";
JTD_smoke6 = "\JTD_FireAndSmoke\smoke6.p3d";
JTD_smoke7 = "\JTD_FireAndSmoke\smoke7.p3d";
JTD_smokegeneric1 = "\JTD_FireAndSmoke\smokegeneric1.p3d";
JTD_smokegeneric2 = "\JTD_FireAndSmoke\smokegeneric2.p3d";
};

class PreloadTextures
{
class CfgCloudletShapes
{
JTD_smoke0 = "@*";
JTD_smoke1 = "@*";
JTD_smoke2 = "@*";
JTD_smoke3 = "@*";
JTD_smoke4 = "@*";
JTD_smoke5 = "@*";
JTD_smoke6 = "@*";
JTD_smoke7 = "@*";
JTD_smokegeneric1 = "@*";
JTD_smokegeneric2 = "@*";
};
};

Question: what do I need to declare (and more importantly how ;)) in order to lose the error message?
« Last Edit: 07 Aug 2009, 21:45:50 by DMarkwick »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Config help: No entry
« Reply #1 on: 07 Aug 2009, 21:56:56 »
Forgetting for the moment that you are better off with a seperate model.cfg file for the cfgModels section, and then binarizing the lot for inclusion in the game ...........

'class Default' might need to be defined properly.

Try:

Code: [Select]
class cfgModels
{
class Default
{
sectionsInherit="";
sections[] = {};
skeletonName = "";
};
class DMViewBlockBase: Default {};
... etc
... etc
... etc
};


Planck
« Last Edit: 07 Aug 2009, 23:24:07 by Planck »
I know a little about a lot, and a lot about a little.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: Config help: No entry
« Reply #2 on: 07 Aug 2009, 22:25:57 »
Code: [Select]
class DMViewBlockBase: Default {};  :whistle:

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Config help: No entry
« Reply #3 on: 07 Aug 2009, 23:10:22 »
Thanks guys :) config is working OK with no errors now :)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Config help: No entry
« Reply #4 on: 07 Aug 2009, 23:23:06 »
Aye, I missed that, thanks kyu.    :P

Corrected


Planck
I know a little about a lot, and a lot about a little.