Results 1 to 5 of 5

Thread: Config.cpp causing ctd

  1. #1
    Can anyone see the problem?

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">/*
    Animation tutorial &#40;#9&#41; by BRSSEB, 23.07.03
    */

    #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 BRSSEB_TUTMODEL
    {
    units&#91;&#93; = {JFWHutstilts1};
    weapons&#91;&#93; = {};
    requiredVersion = 1.85;
    };
    };

    class CfgVehicles
    {
    class All{};
    class Static&#58; All{};
    class Building&#58; Static{};
    class Strategic&#58; Building{};
    class Fortress1&#58; Strategic{};

    class JFWHutstilts1 &#58; Fortress1
    {

    model=&#34;&#92;JFWhutstilts1&#92;JFWhutstilts1&#3 4;;
    armor=900;
    scope=2;
    displayName=&#34;Hooch, Stilts 1&#34;;

    animated=1;
    class Animations
    {
    // Door animation class
    class ani_Door
    {
    type=&#34;rotation&#34;;
    animPeriod=5;
    selection=&#34;door&#34;;
    axis=&#34;door_axis&#34;;
    angle0=0;
    angle1=-1.5;
    };


    };
    }; /* Animation class end */


    // Useraction class
    class UserActions
    {

    class OpenDoor
    {
    displayName=&#34;Open Door&#34;;
    position=&#34;pos1&#34;;
    radius=2.000000;
    condition=&#34;this animationPhase &#34;&#34;ani_Door&#34;&#34; &#60; 0.5&#34;;
    statement=&#34;this animate &#91;&#34;&#34;ani_Door&#34;&#34;, 1&#93;&#34;;
    };

    class CloseDoor
    {
    displayName=&#34;Close Door&#34;;
    position=&#34;pos1&#34;;
    radius=2.000000;
    condition=&#34;this animationPhase &#34;&#34;ani_Door&#34;&#34; &#62;= 0.5&#34;;
    statement=&#34;this animate &#91;&#34;&#34;ani_Door&#34;&#34;, 0&#93;&#34;;
    };



    }; /* Useraction class end */


    }; /* Model class end*/

    }; /* CfgVehicle class end*/[/QUOTE]

    Thanks in advance.
    Never forget your shovel. Remember: A sanitary battlefield is a happy battlefield.

  2. #2
    Wardog - If it CTD&#39;s when you start a mission with the
    addon placed on a map, 90% of the time, the path to
    the p3d (model=) is wrong.

  3. #3
    Master Gunnery Sergeant Stag's Avatar
    Join Date
    Oct 20 2001
    Posts
    1,275
    Author of the Thread
    Quote Originally Posted by (Footmunch @ Oct. 02 2003,15:34)
    Wardog - If it CTD&#39;s when you start a mission with the
    addon placed on a map, 90% of the time, the path to
    the p3d (model=) is wrong.
    No, Mr. F. When I actually start OFP it crashes.

    The model path is okay, I had it ingame before I added the door animation; I guess it&#39;s the animation code that&#39;s causing the bother.

  4. #4
    Ah, I see it now: you&#39;ve got 10 "};" and 9 "{" - and the
    extra one is just above the line with the

    }; /* Animation class ends */

    Delete the line, and you&#39;re golden.

  5. #5
    Master Gunnery Sergeant Stag's Avatar
    Join Date
    Oct 20 2001
    Posts
    1,275
    Author of the Thread

    Thumbs up

    DOH&#33;

    Many thanks&#33;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •