Jump to content
Sign in to follow this  
abs

Addon Doesn't Load In Editor Preview

Recommended Posts

Hi all,

I'm working on bringing one of my addons in to the game, and so far I have it so that it actually shows up in the editor on the side that I want with my custom faction, but no matter what I do it doesn't show up in the preview. I'm thinking it's a config issue, but I don't know what I'm doing wrong. Anyone who has worked on planes before got any ideas?

Here is my config:

#define true    1#define false    0


enum {
DESTRUCTENGINE = 2,
DESTRUCTDEFAULT = 6,
DESTRUCTWRECK = 7,
DESTRUCTTREE = 3,
DESTRUCTTENT = 4,
STABILIZEDINAXISX = 1,
STABILIZEDINAXESXYZ = 4,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
DESTRUCTNO = 0,
STABILIZEDINAXESNONE = 0,
DESTRUCTMAN = 5,
DESTRUCTBUILDING = 1,
};


class CfgPatches
{
   class STA3_Vehicles {
       units[] = {"ClassFShuttle"};
       weapons[] = {};
       requiredAddons[] = {"A3_Characters_F"};
       requiredVersion = 0.1;
   };
};
class CfgMods {
   class STA3 {
       dir = "A3";
       picture = "A3\Ui_f\data\Logos\arma3_expansion_alpha_ca";
       action = "http://alpha.arma3.com/";
       hideName = 0;
       hidePicture = 0;
       name = "$STR_A3_CfgMods_A31";
   };
};


class CfgWorlds {
   class GenericNames {
       class EarthMen {
           class FirstNames {
               James = "James";
           };
           class LastNames {
               Kirk = "Kirk";
           };
       };
   };
};


class CfgFactionClasses
{
   class STA3_Federation
   {
       displayName = "Federation";
       priority = 1;
       side = TWestwe;
       primaryLanguage = "EN";
   };
};
class CfgVehicleClasses {
   class STA3_StarfleetShips {
       displayName = "Starfleet Ships";
   };
};


class CfgVehicles
{
   class AllVehicles; // External class reference
   class Air; // External class reference
   class ClassFShuttle: Air
   {
       // Begin A3 config
       _generalMacro = "Air";
       mapSize = 8.83;
       waterLeakiness = 100;
       maxFordingDepth = 0.001;
       waterResistance = 1;
       impactEffectsSea = "ImpactEffectsAir";
       accuracy = 0;    // accuracy needed to recognize type of this target
       type = VAir;
       supplyRadius = 1.2;

       // Begin A2 Config
       vehicleClass = "STA3_StarfleetShips";
       faction = "STA3_Federation";
       side = 1;
       displayName = "Shuttlecraft Class F";
       model = "\STA3_Federation\STA3_Vehicles\STA3_ClassF\STA3_ClassF.p3d";
       picture = "\STA3_Federation\STA3_Vehicles\Ico\ClassFIco_ca.paa";
       Icon = "\STA3_Federation\STA3_Vehicles\map_ico\ClassF_ca.paa";
       scope = 2;
       crew = "B_Soldier_F";
       transportSoldier = 7;
       DriverAction = "UH60_Pilot";
       getInAction = "GetInLow";
       cargoIsCoDriver[] = {1,0};
       cargoAction[] = {"Mi8_Cargo","Mi17_Cargo02"};
       fuelCapacity = 520;
       maxSpeed = 14200;
       aileronSensitivity = 1.3;
       elevatorSensitivity = 0.8;
       destrType = "DestructWreck";
       vtol = 3;
       gearUpTime = 2;
       gearDownTime = 2;
       class MarkerLights
       {
           class RedStill
           {
               name = "zluty pozicni";
               color[] = {0.99,0.69,0.17,1.0};
               ambient[] = {0.099,0.099,0.099,1.0};
               intensite = 0.01; // Used to be brightness?
               blinking = 0;
           };
       };
       class Sounds
       {
           class EngineLowOut
           {
               sound[] = {"\STA3_Federation\STA3_Vehicles\data\sound\interior.ogg",2.23872,1.2,700};
               frequency = "1.0 min (rpm + 0.5)";
               volume = "engineOn*(rpm factor[0.85, 0])";
           };
           class EngineHighOut
           {
               sound[] = {"\STA3_Federation\STA3_Vehicles\data\sound\interior.ogg",2.23872,1.6,700};
               frequency = "1";
               volume = "engineOn*(rpm factor[0.55, 1.0])";
           };
           class ForsageOut
           {
               sound[] = {"\STA3_Federation\STA3_Vehicles\data\sound\interior.ogg",2.23872,1.1,1800};
               frequency = "1";
               volume = "engineOn*(thrust factor[0.5, 1.0])";
               cone[] = {3.14,3.92,2.0,0.5};
           };
           class WindNoiseOut
           {
               sound[] = {"ca\sounds\Air\AV8\ext\ext-jetair-wind1",0.562341,1.0,100};
               frequency = "(0.1+(1.2*(speed factor[1, 150])))";
               volume = "(speed factor[1, 150])";
           };
           class EngineLowIn
           {
               sound[] = {"\STA3_Federation\STA3_Vehicles\data\sound\interior.ogg",0.316228,1.0};
               frequency = "1.0 min (rpm + 0.5)";
               volume = "(1-camPos)*(engineOn*(rpm factor[0.85, 0]))";
           };
           class EngineHighIn
           {
               sound[] = {"\STA3_Federation\STA3_Vehicles\data\sound\interior.ogg",0.316228,1.0};
               frequency = "1";
               volume = "(1-camPos)*(engineOn*(rpm factor[0.55, 1.0]))";
           };
           class ForsageIn
           {
               sound[] = {"\STA3_Federation\STA3_Vehicles\data\sound\interior.ogg",0.316228,1.1};
               frequency = "1";
               volume = "(1-camPos)*(engineOn*(thrust factor[0.5, 1.0]))";
           };
           class WindNoiseIn
           {
               sound[] = {"ca\sounds\Air\AV8\int\int-jetair-wind1",0.316228,1.0};
               frequency = "(0.1+(1.2*(speed factor[1, 150])))";
               volume = "(1-camPos)*(speed factor[1, 150])";
           };
       };
       class Library
       {
           libTextDesc = "The Class F Shuttlecraft was the shuttle of prefrence assigned to all Constitution class starships in the Federation fleet.";
       };
   };


   class ClassFShuttle_slow: ClassFShuttle
   {
       displayName = "Shuttlecraft Class F (Slow)";
       maxSpeed = 1420;
       aileronSensitivity = 1.3;
       elevatorSensitivity = 0.8;
   };
   class Wreck;
   class ClassFShuttleWreck : Wreck
   {
       scope = 1;
       class Armory
       {
           disabled = 1;
       };
       model = "\STA3_Federation\STA3_Vehicles\STA3_ClassF\STA3_ClassF_wreck.p3d";
       typicalCargo[] = {};
       irTarget = 0;
       transportAmmo = 0;
       transportRepair = 0;
       transportFuel = 0;
       transportSoldier = 1;
       class Eventhandlers{};
   };
};

Any help is much appreciated.

Abs

Edit: I should add that there are no errors regarding this addon in the rpt file.

Edited by Abs
Solved.

Share this post


Link to post
Share on other sites

Not sure but... I just checked and isnt it suppose to be "side = TWest;" not "side = TWestwe;" ? if not never knew you could make your own sides :P

Share this post


Link to post
Share on other sites

Good catch...but that wasn't it. Also, I find it strange that despite that typo it actually showed up in the correct side. :/

Abs

Share this post


Link to post
Share on other sites

So I guess it kinda worked out since you wrote "it actually showed up in the correct side" well if not, newbie like me tried his best ;)

Share this post


Link to post
Share on other sites

Yea, like I said...It shows up in the editor under Blue > Federation > Starfleet Ships, etc...but the moment I click on preview I don't see it. If I make myself the unit, then I get this camera view of the island from really high in the sky, with no units in sight.

Abs

Share this post


Link to post
Share on other sites

Meh....solved it myself, finally. Had to add the class of Plane to cfgVehicles.

class CfgVehicles
{ 
  class AllVehicles; // External class reference 
  class Air; // External class reference 
  class Plane; 
  class ClassFShuttle: Plane 
  {

Just thought I'd add it here for anyone else who came across this thread.

Abs

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×