nick.ace Posted January 1, 2015 Share Posted January 1, 2015 Whenever I try to get the position of a CSG cyclinder, the game crashes. If I replace it with another object, it runs fine. Quote Link to comment Share on other sites More sharing options...
DerRidda Posted January 1, 2015 Share Posted January 1, 2015 The old "CSG geometry without either a script or mass attached gets 'collapsed' into nothingness" behavior has bit you in the arse, welcome to the club, I can still feel where it bit me. Either add a mass or a script (a blank one is fine) to the CSG in question and you will be fine. 1 Quote Link to comment Share on other sites More sharing options...
Ma-Shell Posted January 1, 2015 Share Posted January 1, 2015 How are you trying to determine the position? Likely your problem is caused by the fact that all CSG gets collapsed unless they have a script attached or a mass. Quote Link to comment Share on other sites More sharing options...
nick.ace Posted January 1, 2015 Author Share Posted January 1, 2015 Ah ok, I didn't know that. Thanks for the help! I guess this thread can be deleted then. Quote Link to comment Share on other sites More sharing options...
MarkusR Posted January 2, 2015 Share Posted January 2, 2015 today i had the same problem, should be fixed, i waste hours for find the reason. instead of crash there should be a message appear. today i had also the problem that i can't start in debug mode... if i call a simple command i expect it works and gave me the result. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
Josh Posted January 2, 2015 Share Posted January 2, 2015 How are you getting the CSG object in the first place? 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...
nick.ace Posted January 2, 2015 Author Share Posted January 2, 2015 I was parenting the CSG object to a pivot and then accessing the child of the pivot in the code. Quote Link to comment Share on other sites More sharing options...
MarkusR Posted January 2, 2015 Share Posted January 2, 2015 for me i using a csg /\ as respawn point, there from GetPosition() crash the game. i replaced it with a pivot. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
Josh Posted January 2, 2015 Share Posted January 2, 2015 Yeah, but how were you getting the entity in the first place? It sounds like your entity variable would be NULL. 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...
MarkusR Posted January 2, 2015 Share Posted January 2, 2015 what means? i add a blue object from toolbar into the scene. i drag the object from scene view into a player entity property var. inside player script i call a function Respawn, there i test if the spawn point object is set and want get his position. replaced with a pivot works. -- drag from scene tree view into this property field Script.entityrespawnpoint = "" --entity "Respawn Point" function Script:Respawn()--in if self.entityrespawnpoint ~= "" then self.alive=true self.health=self.maxHealth --crash!? local pos = self.entityrespawnpoint:GetPosition() end end Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
nick.ace Posted January 3, 2015 Author Share Posted January 3, 2015 @MarkusR The point DerRidda was making above is that the CSG gets collapsed at runtime. Basically what this means is that it doesn't behave like an entity, but more or less part of the terrain. It then becomes inaccessible at that point. Quote Link to comment Share on other sites More sharing options...
MarkusR Posted January 3, 2015 Share Posted January 3, 2015 @nick what ever he said, i selected a object shape from toolbar and put it into scene, its looks good in editor. i do not expect any strange behavior. its a entity it have a position, this .getposition crash my game today. objects do not need a script, object falling down if they have a mass, my was mass 0. i replaced it with a pivot and everything was fine then. Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
nick.ace Posted January 3, 2015 Author Share Posted January 3, 2015 That's the thing though, it's not supposed to be an entity. It's actually part of a brush? (idk if I'm using the right terminology). Anyway, all of those CSG shapes aren't actually entities. You can also edit the terrain in the editor, but that's not an entity. It's just a little misleading since you can attach a script to it and do things like that, but you can't use standard entity commands. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 3, 2015 Share Posted January 3, 2015 Okay, so we found a new situation where brushes should be prevented from being collapsed...when they are used as a parameter in another entity's script. 3 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...
MarkusR Posted January 3, 2015 Share Posted January 3, 2015 @nick, yo , must be a entity, seems Josh fixed it :-) Quote PC : Win 10 Pro 64 Bit , 4x cores ~2 GHz , 8 GB RAM , AMD R7 265 2D : Photoline , Zooner Photo Studio 13 , Art Rage Studio 3.5.4 , Ashampoo Snap 7 , ... 3D : Shade 15 Basic , Carrara 8.5 & DAZ Studio 4.8 , Cheetah 3D 6.3.2 , Via Cad 8 Music : Samplitude Music Studio , Music Creator 7 IDE : Leadwerks Engine 3.x , Unity 5.x , (Unreal 4.8.x) , AGK v2.x , Construct 2 , (Clickteam Fusion 2.5) , ShiVa 1.9 , Game Maker Studio , MS Visual Studio .Net , Android Studio , Monkey , ... Link to comment Share on other sites More sharing options...
Rick Posted January 3, 2015 Share Posted January 3, 2015 That's a great idea Josh. Would love that "don't collapse" flag as well. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 3, 2015 Share Posted January 3, 2015 I recall there already was an option somewhere in the appearance tab that was called something like 'Collapse'. I don't see it anymore though. 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.