View unanswered posts | View active topics It is currently Wed Dec 11, 2024 8:30 am



Reply to topic  [ 5 posts ] 
 Does anyone NOT have brain Vs Brain crash? 
Author Message
User avatar

Joined: Tue Dec 03, 2013 11:26 pm
Posts: 53
Location: Hunched over a laptop
Reply with quote
Post Does anyone NOT have brain Vs Brain crash?
so there have been a couple of complaints with Brain vs Brain crashing when you lose, I have this problem and I am surprised that there isn't more out there about it. I have to assume that not everyone is having this problem, so I just wanted a head count is anyone NOT having any problems with BVB?


Wed Sep 24, 2014 6:37 pm
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post 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


Last edited by Abdul Alhazred on Thu Sep 25, 2014 8:17 pm, edited 1 time in total.



Thu Sep 25, 2014 7:08 am
Profile
User avatar

Joined: Tue Dec 03, 2013 11:26 pm
Posts: 53
Location: Hunched over a laptop
Reply with quote
Post Re: Does anyone NOT have brain Vs Brain crash?
umm, did you mean BrainVsBrain.lua? I added the code to bunker breach just in case but it didn't change anything.


Thu Sep 25, 2014 3:04 pm
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post Re: Does anyone NOT have brain Vs Brain crash?
Oops, I did not read your post properly... But BvsB and BB had the exact same bug and I have added the fix for BvsB in my previous post.


Thu Sep 25, 2014 8:16 pm
Profile
User avatar

Joined: Tue Dec 03, 2013 11:26 pm
Posts: 53
Location: Hunched over a laptop
Reply with quote
Post Re: Does anyone NOT have brain Vs Brain crash?
Woohoo it works any chance we can get this info stickied somewhere until the next patch? also on the steam forum since there is a topic there.


Thu Sep 25, 2014 8:45 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.021s | 14 Queries | GZIP : Off ]