Please or Register to create posts and topics.

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:

1. Join a "Standard Co-Op" game using the internet (any map).
2. The player controlling Atlas should open the console and enter:
2 a) "sv_cheats 1"
2 b) "change_portalgun_linkage_id 2"
3. Atlas should open a portal (I used the left mouse button).
4. PBody should kill himself.
5. 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):
http://i.imgur.com/lJt8j.jpg

"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.

Portfolio: anselmo.gd
DevBlog: blog.anselmo.gd

Why would you want to use that command anyway? It's for changing which portals links to another portal. I can see how when the player dies and the portal tries to fizzle, it will crash the game. Having stable portals while switching their linked id's is a pretty hard thing to do.

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?

?????????????????????????????TWP Releases | My Workshop

Thank you for (all :)) 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 ;)

Portfolio: anselmo.gd
DevBlog: blog.anselmo.gd