Game crashes when using change_portalgun_linkage_id in co-op
Hey guys, I'm encountering a strange crash and I believe that you more experienced developers could know how to fix it.
Here's the weird crash:
- If the player controlling PBody dies after Atlas had shot a portal, the game running PBody's session will CRASH "as soon as he dies". The same weird bug happens if PBody walks over a spare "weapon_portalgun" entity on the level after Atlas had shot a portal.
There might be other things that could cause this crash, but I could only detect these two.
There's a really easy way to replicate the crash:
- Join a "Standard Co-Op" game using the internet (any map).
- The player controlling Atlas should open the console and enter:
2 a) "sv_cheats 1"
2 b) "change_portalgun_linkage_id 2" - Atlas should open a portal (I used the left mouse button).
- PBody should kill himself.
- DONE! PBody will crash and the game will close up.
Strangely this crash doesn't seem to happen if I test the map alone, simulating a co-op session via the "ss_map <mapname>" command.
Here's a screenshot of the crash (sometimes the game will simply close up without showing this):
"Assert: Assertion Failed: !m_bNeedsSort"
I tried clicking in "Break in Debugger" hoping that some useful information would show up, but the game simply closed (it was already crashed anyway...) and nothing else happened.
Extra details:
- I'm testing this using my computer and my brother's computer. Both are in the same bedroom, using the same internet connection.
- The co-op map was opened by joining a "Standard Co-op Game" and using the console command "changelevel <mapname>".
So are there any alternatives/ fixes?
Thanks in advance.
I would use the setlinkagegroupid command instead of change_portalgun_linkage_id to link different portals together. I have never gotten the game to crash with this command, however it did sometimes leave the other player's portal behind so in the map so I had to force the portals to fizzle when the relevant player died (logic_eventlistener -> player_death).
http://www.youtube.com/watch?v=fxMXJiul ... page#t=50s
Is it happening on all maps or just on one level - and is this affecting your normal gameplay or just if you wanted to change the linkage of your portals?
&
) the support!That crash happens on all maps and only if I change the linkage of the portals.
But apparently I won't need this command anymore