[Logged] Error in CMO Live "Pole Positions" (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


Randomizer -> [Logged] Error in CMO Live "Pole Positions" (7/12/2021 5:42:24 AM)

Thought to fire up an oldie but a goody, the Live scenario Pole Positions but received the error message below. Presumably the fix is a simple edit of the offending script but I could not find the error. No save is included as the message appears at scenario loading, thank you in advance for a fix. To reproduce in Build 1147.28:
Select scenario Pole Positions;
Select Side Russia
Start scenario.

-C


[image]local://upfiles/29576/BB94AD78DA384133B3968185E4BEEE48.jpg[/image]




KnightHawk75 -> RE: Error in CMO Live "Pole Positions" (7/12/2021 7:16:31 PM)

Yup
In the Lua action with the name "Start - Ohio" the mission names are all missing " - " 's in the mission name.

Temp fix:
1. Load original distributed scene.
2.Replace that action's code in whole with below.
3.Mark event "Scenario Start", isActive property as true (checkbox selected).
4.Clear message log
5.Save as a NEW file name (so you don't overwrite the bugged one). and reload from that one.
a = math.random(1,4)
if a == 1 then
  ScenEdit_SetUnit({type='Submarine', side='US', name='SSGN 726 USS Ohio', heading=000, latitude='64.9895121619844', longitude='-168.937832188155'})
	if not ScenEdit_GetSideIsHuman('US') then
		ScenEdit_AssignUnitToMission('SSGN 726 USS Ohio', 'Cluster Lance - CH1')
	end
elseif a == 2 then
	ScenEdit_SetUnit({type='Submarine', side='US', name='SSGN 726 USS Ohio', heading=280, latitude='84.4880900702697', longitude='-114.928506179473'})
	if not ScenEdit_GetSideIsHuman('US') then
		ScenEdit_AssignUnitToMission('SSGN 726 USS Ohio', 'Cluster Lance - SV1')
	end
elseif a == 3 then
	ScenEdit_SetUnit({type='Submarine', side='US', name='SSGN 726 USS Ohio', heading=300, latitude='86.9702037593431', longitude='-162.632642174002'})
	if not ScenEdit_GetSideIsHuman('US') then
		ScenEdit_AssignUnitToMission('SSGN 726 USS Ohio', 'Cluster Lance - LP1')
	end
elseif a == 4 then
	ScenEdit_SetUnit({type='Submarine', side='US', name='SSGN 726 USS Ohio', heading=030, latitude='56.9920221149834', longitude='-174.868595650648'})
	if not ScenEdit_GetSideIsHuman('US') then
		ScenEdit_AssignUnitToMission('SSGN 726 USS Ohio', 'Cluster Lance - ES1')	
	end
end





WSBot -> RE: Error in CMO Live "Pole Positions" (7/12/2021 8:38:19 PM)

0014665




Randomizer -> RE: Error in CMO Live "Pole Positions" (7/12/2021 8:50:39 PM)

@KnightHawk75, Thanks for the fix!

-C




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.34375