Adding new objects to Map Editor.

ToshioSM

New Member
Hi all,

I have small problem with adding new objects, to map editor. I did see in folder "Addons", one file "rocks2.pbo".

It's list of files "rocks2.pbo:
PXnEnbX.png


Then extracted file "mbg_buildings_2.pbo" from "Addons" and unpacked config.bin with using unRAP from ArmA Tools: http://www.kegetys.fi/arma-tools/

Why unpacked mbg_buildings_2.pbo? Because mbg-buildings_2 is visible in Arma2OA Editor and i can add these objects.

I thought edit files from config.bin (mbg_buildings_2.pbo).

After unpacked "config.bin" i got 4 files:
- config.cpp
- CfgPatches.hpp
- CfgVehicleClasses.hpp
- CfgVehicles.hpp

Content "config.cpp"

Code:
#include "CfgPatches.hpp"
#include "CfgVehicleClasses.hpp"
#include "CfgVehicles.hpp"

Content "CfgPatches.hpp"

Code:
class CfgPatches {
class rocks {
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"rocks2"};
};
};


Content "CfgVehicles.hpp"

Code:
class CfgVehicles
{
class Static;

/////////////////////////////////////////////////////
class R2_Boulder1 : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Boulder #1";

};
class R2_Boulder2 : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Boulder #2";

};
class R2_Rock1 : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Rock #1";

};
class R2_Rock2 : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Rock #2";

};
class R2_RockTower : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Rock Tower";

};
class R2_RockWall : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Rock Wall";

};
class R2_Stone : Static
{
scope = 2;
vehicleClass = "rocks";
displayName = "Stone";

};
};


Content "CfgVehicleClasses.hpp"

Code:
class CfgVehicleClasses {
class rocks {
displayName = "Skaly - Obiekty";
};
};


What is ok?

In editor after selected option Vehicle i see option "Skaly - Obiekty" and sub-options under "Skaly - Obiekty".
As here:
BxV7yLY.png


But when i select for example "Boulder #1" from list objects and try put it on the map then i get info:
AlkP5cN.png


Any ideas and advices?
 
I have this addon and other addons as:
- MAP_EU
- OA_Editor
- Jon C5 Editor
- ASG Editor

and any small addons with russian buildings.

I tried add new buildings with .pbo files in folder "AddOns". I see they use addon "CA". But i need more Rocks/Roads/Plants and Furnitures.

Thanks for answer!
 
Back
Top