Jump to content
Sign in to follow this  
g50st

pbo Project cfg clutter.h

Recommended Posts

Hey im having some problems with compiling my map its been a while since i have done this and forget what to do and cant seem to find the answer 

error: 

class santry_BigFallenBranches_pine: DefaultClutter
In File santry\cfgclutter.h: Line 3 rap: missing inheritence class(es)
rapify failed. View->output (santry)

 

clutter: https://pastebin.com/57A5cbPn

 

Share this post


Link to post
Share on other sites

You are referring to "DefaultClutter", therefor this class has to be defined in the beginning, so it can be found.

 

Something like this:

class Clutter  
{ 
	class DefaultClutter;
  	class santry_BigFallenBranches_pine: DefaultClutter
    	{
		etc.... 

 

Share this post


Link to post
Share on other sites

I'm not an expert but maybe it should be defined more like this......

class CfgWorlds
{
            class CAWorld;
            class Altis: CAWorld
            {
                          class DefaultClutter;
                          class Clutter  
                          {
                                       class santry_BigFallenBranches_pine: DefaultClutter
                                       {
                                                        model = "A3\Plants_F\Clutter\c_bigFallenBranches_pine.p3d";
                                                        affectedByWind = 0.0;
                                                        swLighting = "false";
                                                        scaleMin = 0.3;
                                                        scaleMax = 0.7;
                         };

etc....

Share this post


Link to post
Share on other sites

That may be, yes. I included my clutter-configs directly in my config.cpp. In my case the DefaultClutter was defined together with rest in the CAWorld, like you showed above. I am not sure how detailed  it has to be if you do this in your clutter.hpp.

 

Maybe try out both, pboproject will tell you when something is wrong :whistle:

  • 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  

×