Jump to content
Sign in to follow this  
randomdude

problem: 'clutterGrid/' is not a class ('model' accessed)

Recommended Posts

Hello

I have this warning when i load my map.

'clutterGrid/' is not a class ('model' accessed)

Anyone know what the problem is?

Thanks

Random

EDIT: Also, the game crashes when i try to load the map.

Here is my config.cpp:

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified3

class CfgPatches

{

class cayron

{

units[] = {};

weapons[] = {};

worlds[] = {cayron};

requiredVersion = 1.03;

requiredAddons[] = {"Utes"};

version = "2009-9-1";

fileName = "cayron.pbo";

author = "SgtAce";

mail = "Sgt.Ace@web.de";

};

};

class CfgWorlds

{

class CAWorld;

class Utes: CAWorld

{

class Grid;

class DefaultClutter;

};

class cayron: Utes

{

description = "Cayron";

worldName= "\bunt\cayron\cayron.wrp";

pictureShot = "\bunt\cayron\Data\cunt_Picture_ca.paa";

centerPosition[] = {2720,2462,500};

seagullPos[] = {2720,2462,500};

longitude = 30; // positive is east, in degrees?

latitude = -45; // positive is south, in degrees?

class Clutter

{

#include "cfgClutter.hpp"

};

class Names

{

#include "cayron.hpp"

};

};

};

class CfgWorldList

{

class cayron {};

};

class CfgMissions

{

class Cutscenes

{

class cayronIntro

{

directory = "bunt\cayron\Data\scenes\Intro.cayron";

};

};

};

//SURFACES

#include "cfgSurfaces.hpp"

Here is my cfgClutter.hpp

clutterGrid = 1.5;

clutterDist = 125;

noDetailDist = 40;

fullDetailDist = 10;

midDetailTexture = "bunt\cayron\Data\cunt_middle_mco.paa";

minTreesInForestSquare = 4;

minRocksInRockSquare = 3;

class bunt_GrassDry : DefaultClutter {

model = "ca\plants_E\Clutter\c_GrassDesert_GroupSoft_EP1.p3d";

affectedByWind = 0.7;

swLighting = 1;

scaleMin = 0.7;

scaleMax = 1.0;

};

class bunt_BrushHard : DefaultClutter {

model = "ca\plants_E\Clutter\c_Brush_Hard_EP1.p3d";

affectedByWind = 0.4;

swLighting = 1;

scaleMin = 0.9;

scaleMax = 1.3;

};

class bunt_PlantsWhite : DefaultClutter {

model = "ca\plants_E\Clutter\c_Plants_White_EP1.p3d";

affectedByWind = 0.7;

swLighting = 1;

scaleMin = 0.85;

scaleMax = 1.1;

};

class bunt_GrassDryLong : DefaultClutter {

model = "ca\plants_E\Clutter\c_GrassDryLong_EP1.p3d";

affectedByWind = 0.85;

swLighting = 1;

scaleMin = 0.75;

scaleMax = 1.0;

};

class bunt_GrassGreen : DefaultClutter {

model = "ca\plants_E\Clutter\c_GrassGreen_EP1.p3d";

affectedByWind = 0.7;

swLighting = 1;

scaleMin = 0.85;

scaleMax = 1.1;

};

class bunt_Weed1 : DefaultClutter {

model = "ca\plants_E\Clutter\c_Weed_1_EP1.p3d";

affectedByWind = 0.65;

swLighting = 1;

scaleMin = 0.65;

scaleMax = 1.0;

};

class bunt_WeedThistle : DefaultClutter {

model = "ca\plants_E\Clutter\c_Weed_Thistle_EP1.p3d";

affectedByWind = 0.7;

swLighting = 1;

scaleMin = 1.0;

scaleMax = 1.25;

};

class bunt_GrassGreenLong : DefaultClutter {

model = "ca\plants_E\Clutter\c_GrassGreenLong_EP1.p3d";

affectedByWind = 0.8;

swLighting = 1;

scaleMin = 0.75;

scaleMax = 1.0;

};

class bunt_PlantsViolet : DefaultClutter {

model = "ca\plants_E\Clutter\c_Plants_Violet_EP1.p3d";

affectedByWind = 0.7;

swLighting = 1;

scaleMin = 1.0;

scaleMax = 1.25;

};

class Subdivision {

class Fractal {

rougness = 5;

maxRoad = 0.02;

maxTrack = 0.5;

maxSlopeFactor = 0.05;

};

class WhiteNoise {

rougness = 2;

maxRoad = 0.01;

maxTrack = 0.05;

maxSlopeFactor = 0.0025;

};

minY = 0.0;

minSlope = 0.02;

};

Here is my cfgSurfaces.hpp

class CfgSurfaces

{

class Default {};

class buntHlina : Default {

access = ReadOnly;

files = "bunt_hlina_*";

rough = 0.1;

dust = 0.8;

soundEnviron = "dirt";

character = "Empty";

soundHit = "soft_ground";

};

class buntPlevel : Default {

access = ReadOnly;

files = "bunt_plevel_*";

rough = 0.11;

dust = 0.7;

soundEnviron = "drygrass";

character = "buntWeedsClutter";

soundHit = "soft_ground";

};

class buntPole : Default {

access = ReadOnly;

files = "bunt_pole_*";

rough = 0.12;

dust = 0.6;

soundEnviron = "grass";

character = "buntFieldGrassClutter";

soundHit = "soft_ground";

};

class buntSkala : Default {

access = ReadOnly;

files = "bunt_skala_*";

rough = 0.3;

dust = 0.5;

soundEnviron = "rock";

character = "Empty";

soundHit = "hard_ground";

};

};

class CfgSurfaceCharacters

{

class buntGrassClutter {

probability[] = {0.89, 0.03, 0.02};

names[] = {"bunt_GrassDry", "bunt_BrushHard", "bunt_PlantsWhite"};

};

class buntWeedsClutter {

probability[] = {0.6, 0.1, 0.15, 0.05, 0.05};

names[] = {"bunt_GrassDry", "bunt_GrassDryLong", "bunt_Weed1", "bunt_WeedThistle", "bunt_BrushHard"};

};

class buntForestClutter {

probability[] = {0.05, 0.2, 0.05};

names[] = {"bunt_BrushHard", "bunt_GrassGreen", "bunt_Weed1"};

};

class buntFieldGrassClutter {

probability[] = {0.6, 0.3, 0.02, 0.01, 0.02};

names[] = {"bunt_GrassGreen", "bunt_GrassGreenLong", "bunt_PlantsWhite", "bunt_PlantsViolet", "bunt_Weed1"};

};

};

Please someone help, been trying to get this to work for a week. When i try to pack this file with binpbo or what ever the software is, it returns no errors, but crashes while binarizing p3ds. If someone could help i would be very happy.

Thank you.

EDIT: from the packing program log:

Updating base class -> UAV, by c:\users\master\documents\armawork\bunt\ca\air2\MQ9PREDATORB\config.cpp/CfgVehicles/MQ9PredatorB/(crap loads of these lines and no errors)

<world = "c:\users\master\documents\armawork\bunt\cayron\cayron.wrp">

Edited by randomdude

Share this post


Link to post
Share on other sites

This bit...


clutterGrid = 1.5;
clutterDist = 125;
noDetailDist = 40;
fullDetailDist = 10;
midDetailTexture = "bunt\cayron\Data\cunt_middle_mco.paa";
minTreesInForestSquare = 4;
minRocksInRockSquare = 3;

shouldn't be in cfgClutter.hpp.... cut it out of there and paste it into your main config... after the longitude and latitude entries will do...

add this line there too...

  cutscenes[] = {"cayronIntro"};

cunt_middle_mco.paa

is this an "unfortunate" typo? ;)

worldName= "\bunt\cayron\cayron.wrp";
pictureShot = "\bunt\cayron\Data\cunt_Picture_ca.paa";

remove the leading "\" from both these paths...

apart from those points - the rest looks OK at first glance.... try fixing those bits and binarizing again...

B

Edited by Bushlurker

Share this post


Link to post
Share on other sites

nah it's not a typo, i just got so upset while i was getting errors after errors that when i made a new project i actually used that word... :( (i edited it away from the post ofc, but missed that line). Kinda akward.... but i'm a honest man so could not lie about it.

---------- Post added at 04:40 PM ---------- Previous post was at 04:34 PM ----------

Alright..

I made the changes, but still the BinPBO crashes when doing the p3ds, it still packs the stuff, but i get windows error from the crash. I see if the warning went out in game.

Thank you for your help, mate.

---------- Post added at 04:44 PM ---------- Previous post was at 04:40 PM ----------

Ok, now we have a new error:

No entry

'bin\config.bin/CfgWorlds/cayron/Clutter/Subdivision.model'

Also OA crashes if i try to load the map and gives this error:

Problem signature:

Problem Event Name: APPCRASH

Application Name: arma2OA.exe

Application Version: 1.59.79.384

Application Timestamp: 4d8cde6f

Fault Module Name: arma2OA.exe

Fault Module Version: 1.59.79.384

Fault Module Timestamp: 4d8cde6f

Exception Code: c0000005

Exception Offset: 00512938

OS Version: 6.1.7600.2.0.0.256.1

Locale ID: 1035

Additional Information 1: 0a9e

Additional Information 2: 0a9e372d3b4ad19135b953a78882e789

Additional Information 3: 0a9e

Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:

http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:

C:\Windows\system32\en-US\erofflps.txt

---------- Post added at 04:53 PM ---------- Previous post was at 04:44 PM ----------

ok i removed the subdivison part from the config, that fixed it. BUT

now we have a new problem, when i enter the map in OA, i see the map, but it gives this error:

Cannot load material file:

bunt\cayron\data\layers\p_000-000_l00.rvmat

When i import the map, it creates the layers and when i open buldozer it converts em. The map seems ok in buldozer, but do i need to do something with the rvmats? I changed the 2 paths in each, but didnt do anything else to them.

Edited by randomdude

Share this post


Link to post
Share on other sites

aaah jeez....

I should've looked more closely...

I just sorta guessed you lifted a readymade cfgClutter from somewhere and tagged all the definitions with "_bunt"...

Didn't notice this bit...

class Subdivision {
class Fractal {
rougness = 5;
maxRoad = 0.02;
maxTrack = 0.5;
maxSlopeFactor = 0.05;
};

class WhiteNoise {
rougness = 2;
maxRoad = 0.01;
maxTrack = 0.05;
maxSlopeFactor = 0.0025;
};
minY = 0.0;
minSlope = 0.02;
};

which totally doesn't belong there at all! - this looks like a fragment of a lighting definition or something... I dunno... just delete it for now and... try again...

Sorry - shoulda spotted that obvious one on my first look...

B

Share this post


Link to post
Share on other sites

Cannot load material file:

bunt\cayron\data\layers\p_000-000_l00.rvmat

I just cannot figure this one out, i changed the paths for the rvmats like this:

bunt\cayron\Data\bunt_hlina_nopx.paa

Share this post


Link to post
Share on other sites

did you change the path in Visitors "project preferences"?

Is there a "Layers" folder inside bunt\cayron\data\ ??

load project into visitor

choose Tools\Project Preferences

check that "Folder - Textures" is pathed to (P:\) bunt\cayron\data

reimport satellite and mask to create the layers folder

open buldozer to view it and - while buldozer is open - choose project\export world

that'll create a new .wrp file

close everything and try binarizing again

B

Share this post


Link to post
Share on other sites

nope didnt work, still crashes.

yes there is layers folder, also the file that is missing ingame, is there in the folder.

---------- Post added at 06:02 PM ---------- Previous post was at 05:55 PM ----------

Hmm.. i sometimes get this, and i think it might be the problem. It's a windows window.

Location is not available

p:\refers to a location that is unavailable. It could be on a hard drive on this computer, or on a network. Check to make sure that the disk is properly inserted, or that you are connected to the internet or your network, and then try again. If it still cannot be located, the information might been moved to a different location.

Windows 7, does not like this p: drive. Sometimes it works and sometimes it does not.

---------- Post added at 06:04 PM ---------- Previous post was at 06:02 PM ----------

btw, i have changed the base layer of the textures from 5m to 20m, could this affect end result?

Edited by randomdude

Share this post


Link to post
Share on other sites

Maybe it's BinPbo settings...

"Addon Source Directory" in the main BinPbo window should read...

p:\bunt\cayron

and if you click the "options" button...

"path to temporary folder" should read

p:\bin_temp

"path to project folder" should read

p:\bunt

B

Share this post


Link to post
Share on other sites

a) upload the binpbo log

b) upload your configs

c) your P setup seems faulty

d) binpbo crashes normally if you try to binarize ODOL p3d (already binarized files)

Share this post


Link to post
Share on other sites

I will start over a new project and go through everything in detail. If it does not work i make a new thread with more detailed information.

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  

×