OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: rozlander on 04 Dec 2004, 09:12:18

Title: Can't see custom objects on the in-game editor
Post 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?

Title: Re:Can't see custom objects on the in-game editor
Post by: Peter_Bullet on 04 Dec 2004, 10:36:04
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!
Title: Re:Can't see custom objects on the in-game editor
Post by: Planck on 04 Dec 2004, 14:47:06
Quote
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
Title: Re:Can't see custom objects on the in-game editor
Post by: Peter_Bullet on 04 Dec 2004, 19:21:23
Does that mean that houses don't need configs, that all is defined in the geo -LOD like with trees?!  :o
Title: Re:Can't see custom objects on the in-game editor
Post by: Planck on 04 Dec 2004, 21:51:25
No Epeli...........they still need configs also.   ;D


Planck
Title: Re:Can't see custom objects on the in-game editor
Post by: rozlander on 05 Dec 2004, 00:03:03
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
   };
Title: Re:Can't see custom objects on the in-game editor
Post by: Planck on 05 Dec 2004, 03:32:54
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
Title: Re:Can't see custom objects on the in-game editor
Post by: rozlander on 06 Dec 2004, 01:12:24
What do you mean by map:building?
Title: Re:Can't see custom objects on the in-game editor
Post by: Planck on 06 Dec 2004, 03:56:52
At the risk of repeating myself from a previous post:

Quote
Does the Geometry LOD of your buildings have the following named properties:

class    house
dammage    building
map    building


Planck
Title: Re:Can't see custom objects on the in-game editor
Post by: rozlander on 06 Dec 2004, 18:45:34
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";