Page 1 of 1

[Logged] Error in CMO Live "Pole Positions"

Posted: Mon Jul 12, 2021 2:42 am
by Randomizer
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

RE: Error in CMO Live "Pole Positions"

Posted: Mon Jul 12, 2021 4:16 pm
by KnightHawk75
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.

Code: Select all

 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
 

RE: Error in CMO Live "Pole Positions"

Posted: Mon Jul 12, 2021 5:38 pm
by WSBot
0014665

RE: Error in CMO Live "Pole Positions"

Posted: Mon Jul 12, 2021 5:50 pm
by Randomizer
@KnightHawk75, Thanks for the fix!

-C