Re: Does anyone NOT have brain Vs Brain crash?
I didn't, otherwise i would have caught it before release. The good news is that Wegee already fixed the bug for me, and here is how you apply that fix:
Find this code around line 356 in
\Missions.rte\Activities\Brain vs Brain.lua:
Code:
if not MovableMan:IsActor(Brain) then
Brain = MovableMan:GetUnassignedBrain(self:GetTeamOfPlayer(player))
if Brain then
self:SetPlayerBrain(Brain, player)
self:SetObservationTarget(Brain.Pos, player)
end
end
...and replace it with this:
Code:
if not MovableMan:IsActor(Brain) then
Brain = MovableMan:GetUnassignedBrain(self:GetTeamOfPlayer(player))
if Brain then
self:SetPlayerBrain(Brain, player)
self:SetObservationTarget(Brain.Pos, player)
else
-- Need to nullify dead brain or when activity ends it may crash CC
self:SetPlayerBrain(nil, player)
end
end
Find this code (somewhere near line 245 in
Cortex Command\Missions.rte\Activities\Bunker Breach.lua):
Code:
Brain = MovableMan:GetUnassignedBrain(Activity.TEAM_1)
if Brain then
self:SetPlayerBrain(Brain, player)
self:SwitchToActor(Brain, player, self:GetTeamOfPlayer(player))
end
And replace with this:
Code:
Brain = MovableMan:GetUnassignedBrain(Activity.TEAM_1)
if Brain then
self:SetPlayerBrain(Brain, player)
self:SwitchToActor(Brain, player, self:GetTeamOfPlayer(player))
else
self:SetPlayerBrain(nil, player)
end