OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: rozlander on 04 Dec 2004, 09:12:18
-
I've made a few buildings in O2, binarized them, place them on the map using Wrptool, but when I load the map in OFP to add units etc, I can't see the custom buildings in the map editor... When I preview the mission, I can see everything. Any idea's?
-
You have to make config files for the buildings so that the game will regonize them... With out config they are just objects wich can't be destroyed or anything... See "Commented config for that" it shouldn't be too difficult!
-
I can't see the custom buildings in the map editor
What do you mean?
Do you mean that when you place a building in the editor there is no icon marking its position?
Does the Geometry LOD of your buildings have the following named properties:
class house
dammage building
map building
Planck
-
Does that mean that houses don't need configs, that all is defined in the geo -LOD like with trees?! :o
-
No Epeli...........they still need configs also. ;D
Planck
-
I can see the addons in the game but not in the OFP map editor.
Example: You place a road piece in wrptool, then load up the map editor in OFP you can see the outline of the road.
I've done some more research... Does the problem have something to do
with mapSize=?; in the config.cpp?
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class AB_House
{
units[] = {};
weapons[] = {};
worlds[] = {};
requiredVersion = 1.85;
};
};
// ******************************************************************
// Civ Houses
// ******************************************************************
class Shed: Strategic {};
class Barracks: Shed {};
class ShedSmall : Shed {};
class House: NonStrategic {};
class AB_House: House
{
scope=2;
side = TCivilian;
vehicleClass = "AB_House";
model="\bank\anchorbank3.p3d";
displayName="Anchor Bank";
nameSound="house";
accuracy=0.20;
simulation="house";
destrType="DestructNo";
cost=0;
icon=""
mapSize=5
ladders[]={}; // default no ladder
};
-
You didn't answer my question about the named properties yet.
If your building models don't have the named properties I mentioned in my previous post in the Geometry LOD, add them in and see if that helps. Especially map building.
Planck
-
What do you mean by map:building?
-
At the risk of repeating myself from a previous post:
Does the Geometry LOD of your buildings have the following named properties:
class house
dammage building
map building
Planck
-
I didn't have the properties window open for the LOD! :-\ I put those in everything works. Thanks! :D I found out the mapSize works in conjunction with icon="...file.paa";