Jump to content

Recommended Posts

Posted

I have come across something weird. When I spawn artillery units (with the coalition.addGroup), clients crash when trying to add a target to the spawned artillery, while the host has no problem. The client does not crash with a unit placed in the ME, though, only with the spawned one.

 

I was wondering if there is something more that should be set for artillery, that maybe doesn't get set by the addGroup, of if it could just be a plain bug (in which case, this topic should go to the Combined Arms Bugs section, perhaps).

 

It would be great if someone else could confirm that crash. Attached is a simple mission file with one artillery unit placed in the ME, and one that spawns after 5 seconds.

 

Here is the script that I have used:

 

  local unitTable = {
       ["visible"] = false,
                               ["route"] = 
                               {
                                   ["spans"] = 
                                   {
                                   }, -- end of ["spans"]
                                   ["points"] = 
                                   {
                                       [1] = 
                                       {
                                           ["alt"] = 10,
                                           ["type"] = "Turning Point",
                                           ["ETA"] = 0,
                                           ["alt_type"] = "BARO",
                                           ["formation_template"] = "",
                                           ["y"] = 631021.42857143,
                                           ["x"] = -328250,
                                           ["ETA_locked"] = true,
                                           ["speed"] = 5.5555555555556,
                                           ["action"] = "Off Road",
                                           ["task"] = 
                                           {
                                               ["id"] = "ComboTask",
                                               ["params"] = 
                                               {
                                                   ["tasks"] = 
                                                   {
                                                       [1] = 
                                                       {
                                                           ["enabled"] = true,
                                                           ["auto"] = true,
                                                           ["id"] = "WrappedAction",
                                                           ["number"] = 1,
                                                           ["params"] = 
                                                           {
                                                               ["action"] = 
                                                               {
                                                                   ["id"] = "EPLRS",
                                                                   ["params"] = 
                                                                   {
                                                                       ["value"] = true,
                                                                       ["groupId"] = 1,
                                                                   }, -- end of ["params"]
                                                               }, -- end of ["action"]
                                                           }, -- end of ["params"]
                                                       }, -- end of [1]
                                                   }, -- end of ["tasks"]
                                               }, -- end of ["params"]
                                           }, -- end of ["task"]
                                           ["speed_locked"] = true,
                                       }, -- end of [1]
                                   }, -- end of ["points"]
                               }, -- end of ["route"]
                               ["groupId"] = 10,
                               ["tasks"] = 
                               {
                               }, -- end of ["tasks"]
                               ["hidden"] = false,
                               ["units"] = 
                               {
                                   [1] = 
                                   {
                                       ["y"] = 631021.42857143,
                                       ["type"] = "M-109",
                                       ["name"] = "New Unit",
                                       ["unitId"] = 10,
                                       ["heading"] = 0,
                                       ["playerCanDrive"] = true,
                                       ["skill"] = "Average",
                                       ["x"] = -328250,
                                   }, -- end of [1]
                               }, -- end of ["units"]
                               ["y"] = 631021.42857143,
                               ["x"] = -328250,
                               ["name"] = "New Group",
                               ["start_time"] = 0,
                               ["task"] = "Ground Nothing",
  }
      
coalition.addGroup(country.id.USA, Group.Category.GROUND, unitTable)

 

PS: I tried it with 1 other guy, both ways. Each of us crashed when trying to add a target as client.

Arty test.miz

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...