Home   Help Search Login Register  

Author Topic: Can't see custom objects on the in-game editor  (Read 1438 times)

0 Members and 1 Guest are viewing this topic.

rozlander

  • Guest
Can't see custom objects on the in-game editor
« 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?


Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Can't see custom objects on the in-game editor
« Reply #1 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!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Can't see custom objects on the in-game editor
« Reply #2 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
« Last Edit: 04 Dec 2004, 14:47:34 by Planck »
I know a little about a lot, and a lot about a little.

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Can't see custom objects on the in-game editor
« Reply #3 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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Can't see custom objects on the in-game editor
« Reply #4 on: 04 Dec 2004, 21:51:25 »
No Epeli...........they still need configs also.   ;D


Planck
I know a little about a lot, and a lot about a little.

rozlander

  • Guest
Re:Can't see custom objects on the in-game editor
« Reply #5 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
   };

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Can't see custom objects on the in-game editor
« Reply #6 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
I know a little about a lot, and a lot about a little.

rozlander

  • Guest
Re:Can't see custom objects on the in-game editor
« Reply #7 on: 06 Dec 2004, 01:12:24 »
What do you mean by map:building?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Can't see custom objects on the in-game editor
« Reply #8 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
I know a little about a lot, and a lot about a little.

rozlander

  • Guest
Re:Can't see custom objects on the in-game editor
« Reply #9 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";