Home   Help Search Login Register  

Author Topic: Building Animation Prob  (Read 7783 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #45 on: 29 Nov 2004, 23:58:45 »
Sorry    ;D

I have to admit that was just a shot in the dark.

The problem must lie with the radar model in my opinion, check the rotation axis points and make sure they are lined up correctly.

Did it work properly when placed through the editor?


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

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #46 on: 30 Nov 2004, 00:07:48 »
That's ok     :)

I've just discovered the problem probably lies somewhere in the config.  I tried adjusting the armor levels, and none of the adjustments took place.  So for some reason the .wrp placed model isn't reading the config.  

Yes, the animations for the Radar do work with mission editor placed objects.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #47 on: 30 Nov 2004, 00:18:42 »
 I think I know what the problem might be.

You changed the Objects into its own PBO and you moved it to Addons instead of Res\Addons.

Did you change the object path for the .wrp file and also the texture paths.


What I mean is......did you load the objects into Oxygen and edit the texture paths to suit........and also load the island into WrpTool and edit the paths for your objects?



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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #48 on: 30 Nov 2004, 00:24:50 »
Is this bit of the config for the radar correct?

angle1="-50000 * 3.141592654";


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

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #49 on: 30 Nov 2004, 00:29:08 »
Yes, I corrected the texture paths for the object, and I also corrected the object path in my .wrp.

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #50 on: 30 Nov 2004, 00:31:35 »
Quote
Is this bit of the config for the radar correct?

angle1="-50000 * 3.141592654";

Yes, it's correct.  It's the code that makes the radar spin for a looooong time

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #51 on: 30 Nov 2004, 00:33:01 »
OK......Let me see your objects config.cpp then plz.


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

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #52 on: 30 Nov 2004, 00:35:26 »
Here it is:

Code: [Select]
#define TEast 0
#define TWest 1
#define TGuerrila 2
#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 LarsenOBJ
   {
        worlds[] = {};
      units[] = {Tower, Apartment, Radar, BrickPath, ParkingLot, Shops};
        requiredVersion = 1.85;
   };
};
class cfgModels
{
  class Default
    {
          sections[]={""};
          sectionsInherit="";
    };
  class All {};
      class Static: All {};
      class Building: Static {};
      class NonStrategic: Building  {};
  class TowerBalcony : NonStrategic
  {
          sectionsInherit="";
      sections[]={"beacon"};
  };
  class Apartment : NonStrategic {};
  class Radar : NonStrategic
  {
          sectionsInherit="";
      sections[]={"radar"};
  };
  class BrickPath : NonStrategic {};
  class ParkingLot : NonStrategic {};
  class Shops : NonStrategic {};
};
class CfgVehicles
{
   class All{};
   class Static: All{};
   class Building: Static{};
   class NonStrategic: Building{};

   class Tower: NonStrategic
   {
      model="\LarsenOBJ\TowerBalcony.p3d";
      armor=1000;
      scope=2;  
      displayName="Tower";
      vehicleClass="Tom's Stuff";
      ladders[]={{"start","end"},{"start1","end1"}};
      animated=1;
      class Animations
      {
         class ani_beacon
         {
            angle0=0;
            angle1="-20000 * 3.141592654";
            multiplyer=20;
            type="rotation";
            animperiod=100000;
            selection="beacon";
            axis="beacon_axis"
         };
      };
      class eventhandlers
      {
         init="(_this select 0) animate [""ani_beacon"", 1]";
      };
   };
   class Apartment: NonStrategic
   {
      model="\LarsenOBJ\Apartment.p3d";
      armor=1500;
      scope=2;      
      displayName="Apartment";
      vehicleClass="Tom's Stuff";
   };        
   class Radar: NonStrategic
   {
      model="\LarsenOBJ\Radar.p3d";
      armor=300;
      scope=2;    
      displayName="Radar";
      vehicleClass="Tom's Stuff";
      animated=1;
      class Animations
      {
         class ani_radar
         {
            angle0=0;
            angle1="-30000 * 3.141592654";
            multiplyer=20;
            type="rotation";
            animperiod=100000;
            selection="radar";
            axis="radar_axis"
         };
      };
      class eventhandlers
      {
         init="(_this select 0) animate [""ani_radar"", 1]";
      };
   };      
   class BrickPath: NonStrategic
   {
      model="\LarsenOBJ\BrickPath.p3d";
      scope=2;      
      displayName="Brick Path";
      vehicleClass="Tom's Stuff";
   };        
   class ParkingLot: NonStrategic
   {
      model="\LarsenOBJ\ParkingLot.p3d";
      scope=2;      
      displayName="Parking Lot";
      vehicleClass="Tom's Stuff";
   };        
   class Shops: NonStrategic
   {
      model="\LarsenOBJ\Building.p3d";
      scope=2;      
      displayName="Building";
      vehicleClass="Tom's Stuff";
   };
};

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #53 on: 30 Nov 2004, 00:37:50 »
Hahahahaha...

I did a config for your objects also.........guess what........I called it LarsenObj also.


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

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #54 on: 30 Nov 2004, 00:40:35 »
lol!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #55 on: 30 Nov 2004, 00:45:19 »
Both the animations are continuous rotations are they not?

I only ask because they both have different angle1 values.

angle1="-30000 * 3.141592654";.........for Radar

angle1="-20000 * 3.141592654";.......for Beacon

It probably doesn't make much difference though


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

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #56 on: 30 Nov 2004, 00:49:05 »
Yes, I want the Radar and the Beacon to spin at different speeds.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Building Animation Prob
« Reply #57 on: 30 Nov 2004, 00:50:33 »
I can't see anything wrong with the config, but its getting late I will look at it with fresh eyes tomorrow.

I would try this though.

Load your island into WrpTool again and remove the radar object......then load it again from its new location in Addons.

Apart from that I can't think of anything at the moment.


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

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #58 on: 30 Nov 2004, 00:56:06 »
Ok, I will try it.

Offline Pilot

  • Contributing Member
  • **
Re:Building Animation Prob
« Reply #59 on: 30 Nov 2004, 01:33:17 »
I GOT IT!!! :D

The problem was with the 3d model.  I didn't have a map or class defined in the named properties section.  I properly defined them, and now the radar animation works!  
Thank you Planck for all of your help!  You have answered all of my questions, and thanks to you, everything works!  
I now consider this this topic solved!