Jump to content
EAF_Starfire

Is is possible to have AI aircrafts in Deathmatch?

Recommended Posts

Is it possible to have AI aircrafts flying around in a Deathmatch mission hosted on the Dedicated server?

 

I ask becourse I have managed to an AI aircraft to takeoff and land in a Single player mission, but I have no such luck with a Deathmatch mission.  

Share this post


Link to post
Share on other sites

Yes, you can have AI flying routes in deathmatch. If you have too many though, it may impact the performance of your mission.

 

Can you post your deathmatch mission and I can have a look.

Share this post


Link to post
Share on other sites
This one is a copy of my Single player test, but I did this after not getting it to work on an open (Kuban) map for navigation. That mission is to large for the forum so I have pasted a link.
 
 
Thanks for want to look at my mission files.
 

# Mission File Version = 1.0;
 
Options
{
  LCName = 0;
  LCDesc = 1;
  LCAuthor = 2;
  PlayerConfig = "";
  MultiplayerPlaneConfig = "LuaScripts\WorldObjects\Planes\i16t24.txt";
  MultiplayerPlaneConfig = "LuaScripts\WorldObjects\Planes\lagg3s29.txt";
  Time = 12:30:0;
  Date = 25.8.1942;
  HMap = "graphics\LANDSCAPE_summer\height.hini";
  Textures = "graphics\LANDSCAPE_summer\textures.tini";
  Forests = "graphics\LANDSCAPE_summer\trees\woods.wds";
  Layers = "";
  GuiMap = "lapino-summer";
  SeasonPrefix = "su";
  MissionType = 2;
  AqmId = 0;
  CloudLevel = 500;
  CloudHeight = 200;
  PrecLevel = 0;
  PrecType = 0;
  CloudConfig = "summer\00_clear_00\sky.ini";
  SeaState = 0;
  Turbulence = 0;
  TempPressLevel = 0;
  Temperature = 25;
  Pressure = 760;
  WindLayers
  {
    0 :     0 :     0;
    500 :     0 :     0;
    1000 :     0 :     0;
    2000 :     0 :     0;
    5000 :     0 :     0;
  }
  Countries
  {
    0 : 0;
    101 : 1;
    201 : 2;
  }
}
 
Block
{
  Name = "misc_3";
  Index = 2;
  LinkTrId = 0;
  XPos = 24427.356;
  YPos = 148.379;
  ZPos = 30279.169;
  XOri = 0.00;
  YOri = 307.94;
  ZOri = 0.00;
  Model = "graphics\blocks\meh_01.mgm";
  Script = "LuaScripts\WorldObjects\Blocks\meh_01.txt";
  Country = 0;
  Desc = "";
  Durability = 5000;
  DamageReport = 50;
  DamageThreshold = 1;
  DeleteAfterDeath = 1;
}
 
 
 
Group
{
  Name = "lay_cnt_tcr_02";
  Index = 3;
  Desc = "";
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 4;
    LinkTrId = 0;
    XPos = 24347.020;
    YPos = 150.426;
    ZPos = 29496.179;
    XOri = 0.00;
    YOri = 282.62;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_2.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_2.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 5;
    LinkTrId = 0;
    XPos = 24669.093;
    YPos = 150.426;
    ZPos = 29708.557;
    XOri = 0.00;
    YOri = 282.23;
    ZOri = 0.00;
    Model = "graphics\blocks\country_100x100_1.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_100x100_1.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 6;
    LinkTrId = 0;
    XPos = 24770.334;
    YPos = 150.426;
    ZPos = 29729.921;
    XOri = 0.00;
    YOri = 11.96;
    ZOri = 0.00;
    Model = "graphics\blocks\country_100x100_2.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_100x100_2.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 7;
    LinkTrId = 0;
    XPos = 24875.693;
    YPos = 150.426;
    ZPos = 29618.080;
    XOri = 0.00;
    YOri = 13.29;
    ZOri = 0.00;
    Model = "graphics\blocks\country_100x100_4.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_100x100_4.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 8;
    LinkTrId = 0;
    XPos = 24732.338;
    YPos = 150.426;
    ZPos = 29584.573;
    XOri = 0.00;
    YOri = 103.57;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_1.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_1.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 9;
    LinkTrId = 0;
    XPos = 24544.659;
    YPos = 150.426;
    ZPos = 29539.175;
    XOri = 0.00;
    YOri = 102.44;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_6.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_6.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 10;
    LinkTrId = 0;
    XPos = 24489.124;
    YPos = 150.426;
    ZPos = 29667.009;
    XOri = 0.00;
    YOri = 103.34;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_4.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_4.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 11;
    LinkTrId = 0;
    XPos = 24303.464;
    YPos = 150.426;
    ZPos = 29625.906;
    XOri = 0.00;
    YOri = 103.40;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_3.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_3.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 12;
    LinkTrId = 0;
    XPos = 24859.962;
    YPos = 150.426;
    ZPos = 29746.956;
    XOri = 0.00;
    YOri = 192.41;
    ZOri = 0.00;
    Model = "graphics\blocks\country_100x100_4.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_100x100_4.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 13;
    LinkTrId = 0;
    XPos = 24495.233;
    YPos = 150.426;
    ZPos = 29827.172;
    XOri = 0.00;
    YOri = 193.41;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_3.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_3.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 14;
    LinkTrId = 0;
    XPos = 24534.902;
    YPos = 150.426;
    ZPos = 30201.194;
    XOri = 0.00;
    YOri = 105.23;
    ZOri = 0.00;
    Model = "graphics\blocks\country_100x100_4.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_100x100_4.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 15;
    LinkTrId = 0;
    XPos = 24628.294;
    YPos = 150.426;
    ZPos = 29857.579;
    XOri = 0.00;
    YOri = 193.41;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_3.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_3.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 16;
    LinkTrId = 0;
    XPos = 24458.387;
    YPos = 150.426;
    ZPos = 29983.164;
    XOri = 0.00;
    YOri = 283.39;
    ZOri = 0.00;
    Model = "graphics\blocks\country_m_corner_block4.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_m_corner_block4.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 17;
    LinkTrId = 0;
    XPos = 24427.894;
    YPos = 150.426;
    ZPos = 30099.377;
    XOri = 0.00;
    YOri = 283.39;
    ZOri = 0.00;
    Model = "graphics\blocks\country_m_corner_block3.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_m_corner_block3.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "lay_cnt_tcr_02";
    Index = 18;
    LinkTrId = 0;
    XPos = 24575.057;
    YPos = 150.426;
    ZPos = 30060.151;
    XOri = 0.00;
    YOri = 14.69;
    ZOri = 0.00;
    Model = "graphics\blocks\country_200x100_3.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\country_200x100_3.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
}
 
 
 
Group
{
  Name = "lay_vil_tcr_02";
  Index = 19;
  Desc = "";
  Block
  {
    Name = "Block";
    Index = 20;
    LinkTrId = 0;
    XPos = 20644.588;
    YPos = 149.887;
    ZPos = 31512.162;
    XOri = 0.00;
    YOri = 167.40;
    ZOri = 0.00;
    Model = "graphics\blocks\village_tcross_200_block2.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\village_tcross_200_block2.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "Block";
    Index = 21;
    LinkTrId = 0;
    XPos = 21082.726;
    YPos = 149.887;
    ZPos = 31467.833;
    XOri = 0.00;
    YOri = 348.71;
    ZOri = 0.00;
    Model = "graphics\blocks\village_200_block1.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\village_200_block1.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "Block";
    Index = 22;
    LinkTrId = 0;
    XPos = 20871.870;
    YPos = 149.887;
    ZPos = 31464.128;
    XOri = 0.00;
    YOri = 259.04;
    ZOri = 0.00;
    Model = "graphics\blocks\village_200_block2.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\village_200_block2.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "Block";
    Index = 23;
    LinkTrId = 0;
    XPos = 20554.809;
    YPos = 149.887;
    ZPos = 31319.944;
    XOri = 0.00;
    YOri = 78.40;
    ZOri = 0.00;
    Model = "graphics\blocks\village_200_block1.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\village_200_block1.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "Block";
    Index = 24;
    LinkTrId = 0;
    XPos = 20646.909;
    YPos = 149.887;
    ZPos = 31717.083;
    XOri = 0.00;
    YOri = 78.40;
    ZOri = 0.00;
    Model = "graphics\blocks\village_200_block1.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\village_200_block1.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
}
 
 
 
Block
{
  Name = "Block";
  Index = 25;
  LinkTrId = 0;
  XPos = 24492.123;
  YPos = 149.887;
  ZPos = 30607.806;
  XOri = 0.00;
  YOri = 150.73;
  ZOri = 0.00;
  Model = "graphics\blocks\arf_dugouts_3.mgm";
  Script = "LuaScripts\WorldObjects\Blocks\arf_dugouts_3.txt";
  Country = 0;
  Desc = "";
  Durability = 5000;
  DamageReport = 50;
  DamageThreshold = 1;
  DeleteAfterDeath = 1;
}
 
 
 
Group
{
  Name = "Group";
  Index = 26;
  Desc = "";
  Block
  {
    Name = "Block";
    Index = 27;
    LinkTrId = 0;
    XPos = 22608.575;
    YPos = 149.887;
    ZPos = 30900.194;
    XOri = 0.00;
    YOri = 38.43;
    ZOri = 0.00;
    Model = "graphics\blocks\tacinskaya_1.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\tacinskaya_1.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "Block";
    Index = 28;
    LinkTrId = 0;
    XPos = 22911.838;
    YPos = 149.887;
    ZPos = 30566.986;
    XOri = 0.00;
    YOri = 37.53;
    ZOri = 0.00;
    Model = "graphics\blocks\tacinskaya_2.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\tacinskaya_2.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
  Block
  {
    Name = "Block";
    Index = 29;
    LinkTrId = 0;
    XPos = 23194.521;
    YPos = 149.887;
    ZPos = 30319.831;
    XOri = 0.00;
    YOri = 38.31;
    ZOri = 0.00;
    Model = "graphics\blocks\tacinskaya_3.mgm";
    Script = "LuaScripts\WorldObjects\Blocks\tacinskaya_3.txt";
    Country = 0;
    Desc = "";
    Durability = 5000;
    DamageReport = 50;
    DamageThreshold = 1;
    DeleteAfterDeath = 1;
  }
  
 
}
 
 
 
Plane
{
  Name = "LaGG-3_01";
  Index = 30;
  LinkTrId = 31;
  XPos = 22870.245;
  YPos = 151.387;
  ZPos = 31213.057;
  XOri = 0.00;
  YOri = 307.78;
  ZOri = 12.80;
  Script = "LuaScripts\WorldObjects\Planes\lagg3s29.txt";
  Model = "graphics\planes\lagg3s29\lagg3s29.mgm";
  Country = 101;
  Desc = "";
  Skin = "lagg3s29\lagg3s29_skin_01.dds";
  AILevel = 3;
  CoopStart = 1;
  NumberInFormation = 0;
  Vulnerable = 1;
  Engageable = 1;
  LimitAmmo = 1;
  StartInAir = 1;
  Callsign = 1;
  Callnum = 0;
  Time = 60;
  DamageReport = 50;
  DamageThreshold = 1;
  PayloadId = 0;
  WMMask = 1;
  AiRTBDecision = 0;
  DeleteAfterDeath = 0;
  Spotter = -1;
  Fuel = 0.5;
}
 
 
 
MCU_TR_Entity
{
  Index = 31;
  Name = "Plane entity";
  Desc = "";
  Targets = [];
  Objects = [];
  XPos = 22870.245;
  YPos = 151.587;
  ZPos = 31213.057;
  XOri = 0.00;
  YOri = 0.00;
  ZOri = 0.00;
  Enabled = 1;
  MisObjID = 30;
  OnEvents
  {
    OnEvent
    {
      Type = 6;
      TarId = 33;
    }
  }
}
 
 
 
MCU_CMD_TakeOff
{
  Index = 34;
  Name = "command Take off";
  Desc = "";
  Targets = [];
  Objects = [31];
  XPos = 22947.963;
  YPos = 149.887;
  ZPos = 31233.110;
  XOri = 0.00;
  YOri = 347.25;
  ZOri = 0.00;
}
 
 
 
MCU_Waypoint
{
  Index = 33;
  Name = "Trigger Waypoint 1";
  Desc = "";
  Targets = [36];
  Objects = [31];
  XPos = 26201.737;
  YPos = 200.000;
  ZPos = 26865.249;
  XOri = 0.00;
  YOri = 300.00;
  ZOri = 0.00;
  Area = 200;
  Speed = 150;
  Priority = 2;
}
 
 
 
MCU_Waypoint
{
  Index = 36;
  Name = "Trigger Waypoint 2";
  Desc = "";
  Targets = [38];
  Objects = [31];
  XPos = 23376.242;
  YPos = 225.000;
  ZPos = 26897.713;
  XOri = 0.00;
  YOri = 218.00;
  ZOri = 0.00;
  Area = 200;
  Speed = 250;
  Priority = 2;
}
 
 
 
MCU_Waypoint
{
  Index = 38;
  Name = "Trigger Waypoint 3";
  Desc = "";
  Targets = [40];
  Objects = [31];
  XPos = 20125.075;
  YPos = 250.000;
  ZPos = 31477.066;
  XOri = 0.00;
  YOri = 132.00;
  ZOri = 0.00;
  Area = 200;
  Speed = 250;
  Priority = 1;
}
 
 
 
MCU_Waypoint
{
  Index = 40;
  Name = "Trigger Waypoint 3";
  Desc = "";
  Targets = [42];
  Objects = [31];
  XPos = 21950.610;
  YPos = 225.000;
  ZPos = 32330.619;
  XOri = 0.00;
  YOri = 50.00;
  ZOri = 0.00;
  Area = 200;
  Speed = 250;
  Priority = 2;
}
 
 
 
MCU_CMD_Land
{
  Index = 42;
  Name = "command Land";
  Desc = "";
  Targets = [];
  Objects = [31];
  XPos = 22852.729;
  YPos = 149.887;
  ZPos = 31230.301;
  XOri = 0.00;
  YOri = 307.00;
  ZOri = 0.00;
  Priority = 2;
}
 
 
 
MCU_TR_MissionBegin
{
  Index = 44;
  Name = "Translator Mission Begin";
  Desc = "";
  Targets = [45];
  Objects = [];
  XPos = 22990.770;
  YPos = 149.887;
  ZPos = 31459.801;
  XOri = 0.00;
  YOri = 0.00;
  ZOri = 0.00;
  Enabled = 1;
}
 
 
 
MCU_Timer
{
  Index = 45;
  Name = "Trigger Timer";
  Desc = "";
  Targets = [34];
  Objects = [];
  XPos = 23016.451;
  YPos = 149.887;
  ZPos = 31326.897;
  XOri = 0.00;
  YOri = 0.00;
  ZOri = 0.00;
  Time = 60;
  Random = 50;
}
 
 
 
Block
{
  Name = "Block";
  Index = 47;
  LinkTrId = 0;
  XPos = 23111.173;
  YPos = 149.887;
  ZPos = 30794.312;
  XOri = 0.00;
  YOri = 0.00;
  ZOri = 0.00;
  Model = "graphics\blocks\static_horch830.mgm";
  Script = "LuaScripts\WorldObjects\Blocks\static_horch830.txt";
  Country = 0;
  Desc = "";
  Durability = 25000;
  DamageReport = 50;
  DamageThreshold = 1;
  DeleteAfterDeath = 1;
}
 
 
 
Block
{
  Name = "Block";
  Index = 48;
  LinkTrId = 0;
  XPos = 22960.940;
  YPos = 149.887;
  ZPos = 31166.782;
  XOri = 0.00;
  YOri = 227.90;
  ZOri = 0.00;
  Model = "graphics\blocks\static_t34-76.mgm";
  Script = "LuaScripts\WorldObjects\Blocks\static_t34-76.txt";
  Country = 0;
  Desc = "";
  Durability = 25000;
  DamageReport = 50;
  DamageThreshold = 1;
  DeleteAfterDeath = 1;
}
 
 
 
Block
{
  Name = "Block";
  Index = 49;
  LinkTrId = 0;
  XPos = 22877.775;
  YPos = 149.887;
  ZPos = 31127.648;
  XOri = 0.00;
  YOri = 56.02;
  ZOri = 0.00;
  Model = "graphics\blocks\static_t70.mgm";
  Script = "LuaScripts\WorldObjects\Blocks\static_t70.txt";
  Country = 0;
  Desc = "";
  Durability = 25000;
  DamageReport = 50;
  DamageThreshold = 1;
  DeleteAfterDeath = 1;
}
 
 
 
Airfield
{
  Name = "Airfield";
  Index = 50;
  LinkTrId = 51;
  XPos = 22781.328;
  YPos = 149.887;
  ZPos = 31138.963;
  XOri = 0.00;
  YOri = 0.00;
  ZOri = 0.00;
  Model = "graphics\airfields\fakefield.mgm";
  Script = "LuaScripts\WorldObjects\Airfields\fakefield.txt";
  Country = 101;
  Desc = "";
  Durability = 25000;
  DamageReport = 50;
  DamageThreshold = 1;
  DeleteAfterDeath = 1;
  Callsign = 0;
  Callnum = 0;
  Planes
  {
    Plane
    {
      SetIndex = 0;
      Number = 10;
      AILevel = 2;
      StartInAir = 2;
      Engageable = 1;
      Vulnerable = 1;
      LimitAmmo = 1;
      AIRTBDecision = 1;
      Renewable = 1;
      PayloadId = 0;
      WMMask = 1;
      Fuel = 1;
      RouteTime = 0;
      RenewTime = 1800;
      Altitude = 500;
      Spotter = -1;
      Model = "graphics\planes\i16t24\i16t24.mgm";
      Script = "LuaScripts\WorldObjects\Planes\i16t24.txt";
      Name = "";
      Skin = "";
      AvMods = "";
      AvSkins = "";
      AvPayloads = "";
      Callsign = 0;
      Callnum = 0;
    }
  }
  ReturnPlanes = 0;
  Hydrodrome = 0;
  RepairFriendlies = 0;
  RearmFriendlies = 0;
  RefuelFriendlies = 0;
  RepairTime = 0;
  RearmTime = 0;
  RefuelTime = 0;
  MaintenanceRadius = 1000;
}
 
 
 
MCU_TR_Entity
{
  Index = 51;
  Name = "Airfield entity";
  Desc = "";
  Targets = [];
  Objects = [];
  XPos = 22781.328;
  YPos = 150.087;
  ZPos = 31138.963;
  XOri = 0.00;
  YOri = 0.00;
  ZOri = 0.00;
  Enabled = 1;
  MisObjID = 50;
}
 
 
# end of file

 

 

Edited by EAF_Starfire

Share this post


Link to post
Share on other sites

Can you provide more details on the problem in deathmatch please. Is it both the Ju-52 and the Pe-2 having the problem? What is the problem; taking off, landing, flying the route properly? Any other details?

Edited by JimTM

Share this post


Link to post
Share on other sites

Jim, i didn't have a look in the mission, but check the taxi path, something tell me that the problem is here. ;)

  • Upvote 1

Share this post


Link to post
Share on other sites

Can you provide more details on the problem in deathmatch please. Is it both the Ju-52 and the Pe-2 having the problem? What is the problem; taking off, landing, flying the route properly? Any other details?

The problem is that they won't spawn in multiplayer.

I checked both the Ju52 and the Pe2; Same problem.

 

I suspect that I am using a wrong combination of triggers.

The current one are _Translator Mission Begin -> Trigger Timer (3min) -> command Take off

Share this post


Link to post
Share on other sites

The combination seems goods.

 

Are your planes define as Entities ?

 

Do you use advanced properties of the leader and use the On plane took off link to the first waypoint ?

 

Which link do you use to link the command takeoff to the leader's plane. You link an Entity, so you have to use an Add Object.

Share this post


Link to post
Share on other sites

The problem is that they won't spawn in multiplayer.

I checked both the Ju52 and the Pe2; Same problem.

 

I suspect that I am using a wrong combination of triggers.

The current one are _Translator Mission Begin -> Trigger Timer (3min) -> command Take off

 

As Habu mentions, your MCU combination seems good. Also, your links and advanced properties are good.

 

Try selecting each plane and clicking the "Set on Ground" button (green down arrow in toolbar). When I looked at each plane, they were half buried in the ground.

Share this post


Link to post
Share on other sites

Jim, i didn't have a look in the mission, but check the taxi path, something tell me that the problem is here. ;)

Does the Taxi path affect the AI aircraft even if they dont taxi?

Share this post


Link to post
Share on other sites

The combination seems goods.

 

Are your planes define as Entities ?

 

Do you use advanced properties of the leader and use the On plane took off link to the first waypoint ?

 

Which link do you use to link the command takeoff to the leader's plane. You link an Entity, so you have to use an Add Object.

 

Lets drop troubleshoting on the Pe2 and concentrate on the Ju52. If we can get the Ju52 to fly, I will have a place to start for ALL future AI flight  ;)

 

Are your planes define as Entities ? Yes!

Do you use advanced properties of the leader? Yes! (Both flights are singletons)

and use the On plane took off link to the first waypoint ? Yes!

Which link do you use to link the command takeoff to the leader's plane? Object Link!

You link an Entity, so you have to use an Add Object.

Do you use advanced properties of the leader and use the On plane took off link to the first waypoint ?

As Habu mentions, your MCU combination seems good. Also, your links and advanced properties are good.

 

Try selecting each plane and clicking the "Set on Ground" button (green down arrow in toolbar). When I looked at each plane, they were half buried in the ground.

 

Set on ground enabled on the aircraft! Check!

 

(Thx. Dident knew about this button  :salute:  )

Share this post


Link to post
Share on other sites

Yes, because in the taxi path, you have the take off and landing path. But if it was teh problem, you'll see planes which do no't respect the runway and take off in the nature.

 

May you enclose your mission, it will be easier to find the problem for us.

 

I read again what you wrote.

 

Is the problem a spawn problem, do you use spawn, activated command, or none of these.

Share this post


Link to post
Share on other sites

...

 

May you enclose your mission, it will be easier to find the problem for us.

 

...

 

Habu, you can get the mission from the link here.

Share this post


Link to post
Share on other sites

Jim, i think he did some change. I would like to work on the last version.

Share this post


Link to post
Share on other sites

Ok, as i though and wrotte in my first post, the problem is in the taxi path. The PE2 begin to takeoff but out the taxiway.

 

I enclose 2 missions which are your mission which work now (i tested the debug 01 on my server).

 

The 2 missions are the same, but there is one which use group. You have to learn to use group. If you don't when you build future mission which will be more complex, it will be awfull to find one element and to debug it.

 

Kuban_nav_training_v30_debug_01 = your mission without groups

 

Kuban_nav_training_v30_debug_PX = Your mission with groups.

 

https://www.dropbox.com/s/v2hcjf4n2v5clsq/Kuban_nav_training_v30_debug_01.zip?dl=0

 

Here are what i found too :

 

1- In multiplayer : Do not put the Airfiled (player spawn) in shelter. it works for one player, but the second player will spawn into the sheleter and his plane will be damaged. It's cool but useless in multiplayer (you could do it when the coop mod will be there, if it works like in RoF). I changed the location of the spawn on Krasnodar airfield. It will be easier to select it in MP when you zoom.

 

2- I edit the taxi path for both airfield on krasnodar. (that was the problem for you AI)

 

3- In the Advanced properties of you PE2 :

  • I uncheck Cooperative start : Do not use that untill the coop mod will be there, and never use it for AI.
  • I set the AI return plane. With that option, the plane will go on its own to an airfield to land if it's damaged, low fuel, etc, even if you don't give it any Landing command.

4- No group in your mission.

 

5- i set the Timer for te take off order to 5 minutes, because with less time when you enter the server, you see nothing. And teh PE2 begin to move outside teh rinway, then crash into a shelter, then disappear. So you can't see nothing, and can't detect the real problem.

Edited by Habu
  • Upvote 1

Share this post


Link to post
Share on other sites

Thanks!

That was a lot of hard lessons I wouldent have found on my own.

 

I need to learn to work with different spawn triggers so the AI wont be depending on the mission start, but can start when a human spawns in (eye candy).

Share this post


Link to post
Share on other sites

Thanks!

That was a lot of hard lessons I wouldent have found on my own.

 

I need to learn to work with different spawn triggers so the AI wont be depending on the mission start, but can start when a human spawns in (eye candy).

You'll need the OnPlaneSpawned event from an airfield object to detect when a human spawns in.

  • Upvote 1

Share this post


Link to post
Share on other sites

Thanks!

That was a lot of hard lessons I wouldent have found on my own.

 

I need to learn to work with different spawn triggers so the AI wont be depending on the mission start, but can start when a human spawns in (eye candy).

You want to go to fast. ;)

 

About your new problem, you have to think about it.

 

Question : I want to activate the Ai when my player spawn

Answer : Use the Complex trigger

 

Question : but if i have 2 players which spawn ?

Answer : 2 solutions :

  • Use a counter and deactivate the complex trigger
  • Use a named planed in the filter of the complex trigger
Edited by Habu
  • Upvote 1

Share this post


Link to post
Share on other sites

Thanks for the tip JimTM. 

I had expected to do some reading, but I apriciate the timesaving shortcuts :salute: 

 

@HABU

Fast and fast....

My choice of timer trigger was due to some reading in the two mission building pdf's I found in the forum. I went with it because it looked like the easiest way to learn about it.

All I wanted was a quick success I could build on.

 

I was quite sure that it would be possible to control AI actions by human spawns as I essentially think that the limits are our idears. I we can think it! We can do it! All it takes is time and effort.

But I need to learn baby steps. To learn/get the logic.

 

Besides building some training senaries for the Dserver , I plan on building a library of Demo missions. That way I can always see how the basics are done.

So one baby step of the time  :-)

Share this post


Link to post
Share on other sites

Thanks for the tip JimTM. 

I had expected to do some reading, but I apriciate the timesaving shortcuts :salute:

 

...

 

You're welcome Starfire. 

 

You can also use the complex trigger translator, as Habu mentions. For that, you need the OnObjectSpawned event from the translator.

Share this post


Link to post
Share on other sites

First thing before testing trigger, learn the group. If you know that, you can earn many time in the buiding process.

 

  • How to do a group

Put any element on the map. then, Left click and select all these element. Thn right click and select Group

  • How to work in a group

The active group is in bold, by default when you load the mission, the ttitle of the mission is in bold. To work with a specific group, Slect the group in the left colon, then right click and select Set group as working. If it's ok, you should see the name of the group in bold.

  • Save a group as library

Select the icon of the group (be carefull to not move it), To go qickly to the icon, select the name of the group in the left column, then right click and select Move camera to object.

Right click on it, then select Save selection to files and give a name which talk to you and that path Data/Mission, it's teh same location where you have the single mission (even if you want to use it for multiplayer, do not use any other sub directory)

If all right well, Use the button group in the right column. You should see the name you gave at the previous point.

 

  • How to use group in the library

Click on the button Groups on the right colonn, then click on the object and click on the map. As you can do when you want to put any plane/vehicles, elements,... on the map.

 

For exemple, have a look on the version of the mission i debug.

 

1- Go to the PE2 location quickly

2- Do a group with your PE2 and all it need to fly, waypoint order (do not add airfield and windsocks). To select elements, you can use left click, or like with the windows explorer, hold the control key.

3- Save the group (using the icon of the group) in the bibliotheque

4- Move the map to another airfield.

5- Go in the Group button.

6- Select the name of the group you did.

7- Clik on the map

8- Adjust the group position

9- In the left column, select the group (Set group as working)

10- Select the plane and finish to position it on the runway. And Use the button Set on ground (icons on the top of the editor).

11- Adjust the waypoint.

 

Here it is, you have another Ai which will take off and which work in a few click without to build from scratch.

 

Another trick.

 

You have the AI group with the PE2.

 

After point 11

12- Select the planes, or planes in the group.

13- On the properties windows of the planes, you have the button Model. Use it and Select a JU52.

14- You should see a JU52 on the runway.

15- Use the button Set on ground

 

I think that's all. ;)

Edited by Habu
  • Upvote 1

Share this post


Link to post
Share on other sites

@HABU

You forgot the mission files (.Mission)

You don't need it.

 

Mission file in Bos have 2 formats .mission and .msnbin. You can run a mission with only one of that file + the language file. By default the . mission will be load if both files are present. Loading a .mission take more time.

 

You have the msnbin, and you can open it with the editor.

 

In the editor do Open, then in the field, writte the first key of the mission name, for you K, you should have some proposition, then select the file which finished by msnbin (it will take more time to open). Once you open it, save, and the mission file will be created.

 

With that, you can open any multiplayer mission you joined.

Edited by Habu
  • Upvote 1

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

×