Jump to content

Recommended Posts

Posted (edited)

It looks like mist is expecting a table for the 'msgFor' variable, not a string. Try placing braces {} around the coalition in the msgFor variable in each of your task scripts.

 

I am not at my computer so I haven't been able to test this myself.

 

For example:

 

EDIT: I got it working with this code syntax:

 

mist.msgMGRS{
   units = mist.makeUnitTable({ "R9", "R9_1", "R9_2", "R9_3", "R9_4", "R9_5" }),
   acc = 6,
   displayTime = 40,
   msgFor = {coa = {'all'}},
   text = "Pontiac, UZI, We have found a large fuel depot. Destroy it!!\n ",
}

Edited by AlaskanGrizzly
Posted

Hi, AG,

What pointed you to this --

"It looks like mist is expecting a table for the 'msgFor' variable"

 

 

This is what's in use --

 

mist.msgMGRS{
   units = { "R1", "R1_1", "R1_2", "R1_3", "R1_4", "R1_5" },
   acc = 6,
   displayTime = 40,
   msgFor = blue,
   text = "Pontiac, UZI, We have spotted a large convoy south of Novopavlovsk heading our way. Go destroy them! ",
}

 

I'll try your suggestion.

 

Blooze -- I'll update and post it here in a bit.

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted

Eureka!!! I ran a test and everything was working fine. I added all my voice overs back to it and everything works great. One of my favorite missions is running again and I appreciate ya'lls help more than you know.

Salute!:thumbup:

Posted

You are welcome -- glad it is working!

 

AG, what other corrections did you make? I looked at it in v1.2 but the events are messed up in that old version after a save in the new 1.5.

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted

AG, what other corrections did you make? I looked at it in v1.2 but the events are messed up in that old version after a save in the new 1.5.

 

I used mist.makeUnitTable{} for the units table in the mist.msgMGRS calls. I am not sure if that was really necessary or not, but according to the documentation that is what was required.

 

Also I noticed the mist.msgMGRS message in game was overwriting the FAC informational message that was supposed to appear after the mist call, so I combined that text into the mist.msgMGRS message. That required that I put in the correct string break and newline syntax in each string.

 

   mist.msgMGRS{
   units = mist.makeUnitTable({ "R5", "R5_1", "R5_2", "R5_3", "R5_4", "R5_5" }),
   acc = 6,
   displayTime = 40,
   msgFor = {coa = {'all'}},
   text = "Pontiac, UZI, We have spotted a large enemy force to the west of our FOB. Go get em!\n We have a ground FAC \"Eyeball 6\" on 41.80 FM for this task.\n",
}

 

Which events were messed up when you saved in 1.5? I didn't really look at anything else other than the mist.msgMGRS calls.

Posted

Thanks, that function is new to me.

 

I'm still on v1.2, so when I opened your saved mission the arguments in the events were unreadable. I'll get v1.5 this week...

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

  • Recently Browsing   0 members

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