Blooze Posted November 6, 2015 Posted November 6, 2015 Can anyone tell me what this error means and if there is an easy solution. MP mission and error message attached.Operation_Saturn_V2.1 WC12v7.mizerror.txt [sIGPIC][/sIGPIC]
AlaskanGrizzly Posted November 6, 2015 Posted November 6, 2015 (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 November 6, 2015 by AlaskanGrizzly
Blooze Posted November 6, 2015 Author Posted November 6, 2015 Thanks but that's way over my head. I should have said easy solution for dummies. [sIGPIC][/sIGPIC]
Wrecking Crew Posted November 6, 2015 Posted November 6, 2015 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.
Wrecking Crew Posted November 6, 2015 Posted November 6, 2015 This has the {} like -- msgFor = { blue } WC 1 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.
AlaskanGrizzly Posted November 6, 2015 Posted November 6, 2015 Apparently I didn't have the syntax quite right and there were a few other errors in the scripts as well. It seems to be working correctly now.Operation_Saturn_V2.1 WC12v9.miz 1
Blooze Posted November 6, 2015 Author Posted November 6, 2015 Thanks guys, I just finished a 2 hour MP mission so I'll run a test a bit later and report back ASAP. [sIGPIC][/sIGPIC]
Blooze Posted November 6, 2015 Author Posted November 6, 2015 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: [sIGPIC][/sIGPIC]
AlaskanGrizzly Posted November 7, 2015 Posted November 7, 2015 Glad it is working for you. Looks like a fun one, I will have to give it a go.
Wrecking Crew Posted November 7, 2015 Posted November 7, 2015 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.
AlaskanGrizzly Posted November 7, 2015 Posted November 7, 2015 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.
Wrecking Crew Posted November 8, 2015 Posted November 8, 2015 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.
Recommended Posts