[Logged] Error in CMO Live "Pole Positions"

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
User avatar
Randomizer
Posts: 1508
Joined: Sat Jun 28, 2008 8:31 pm

[Logged] Error in CMO Live "Pole Positions"

Post 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
Attachments
PolePositionsError.jpg
PolePositionsError.jpg (244.46 KiB) Viewed 237 times
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Error in CMO Live "Pole Positions"

Post 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
 
Attachments
Pole Posit.._5048895.zip
(351.36 KiB) Downloaded 7 times
WSBot
Posts: 181
Joined: Sun Jan 17, 2021 9:31 pm

RE: Error in CMO Live "Pole Positions"

Post by WSBot »

0014665
User avatar
Randomizer
Posts: 1508
Joined: Sat Jun 28, 2008 8:31 pm

RE: Error in CMO Live "Pole Positions"

Post by Randomizer »

@KnightHawk75, Thanks for the fix!

-C
Post Reply

Return to “Tech Support”