AggrorJorn Posted February 13, 2017 Share Posted February 13, 2017 We have seen it many many times on the forum: People are linking a CSG bursh to another entity script, but the script fails on startup because the linked in entity is nil. The reason: the CSG brush does not have mass or an entity script attached and is being collapsed at the start of the scene for performance. http://www.leadwerks.com/werkspace/topic/15761-entity-gets-has-stopped-working-error/ This 'collapsing' has caused a lot of headache for a lot of people. People often don't know that CSG collapses when the scene starts and what the result of this is. Also, the workaround for setting a mass or attaching a script is still unknown by a lot of people. Since people are not aware of the technical reason of the CSG collapsing, I would say, make sure that linked CSG brushes are not collapsed. Even if they do not contain a script or have a mass. 5 Quote Link to comment Share on other sites More sharing options...
Rick Posted February 13, 2017 Share Posted February 13, 2017 +1. If it's a quick workaround Josh could just attach a dummy script himself to linked CSG brushes when the map is loaded from the game. Seems like a cheap and easy way to do it. 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted February 14, 2017 Share Posted February 14, 2017 Yes, this must be added. Someone must get on this immediately! Oh wait... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted February 14, 2017 Share Posted February 14, 2017 Okay, I implemented a fix that will prevent this in the future... 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 15, 2017 Author Share Posted February 15, 2017 Thanks Josh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.