DooMAGE Posted September 12, 2017 Share Posted September 12, 2017 Hello friends, I don't know what is going on, but when the player is killed by the crawler, the game hangs up and crash. To reproduce just create a new first person shooter project and load the map "07-AI and Events.map", let the crawlers kill you My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Marcousik Posted September 15, 2017 Share Posted September 15, 2017 I could confirm this, though this does not appear in LE4.3 Link to comment Share on other sites More sharing options...
DooMAGE Posted September 15, 2017 Author Share Posted September 15, 2017 Yeah, I'm using LE 4.4 and sometimes there is no crash. It's very hard to track why this happens since looks like the debugger is broken in LE4.4 My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Marcousik Posted September 15, 2017 Share Posted September 15, 2017 Ok problem found after a few tests but I can't explain it. Look at the kill() function on FPSPlayer.lua. Comment the last line in the function: -- self.entity:SetPhysicsMode(Entity.RigidBodyPhysics) And the bug doesn't occur anymore. This "RigidBodyPhysics" seems not to be supported anymore. 1 Link to comment Share on other sites More sharing options...
DooMAGE Posted September 15, 2017 Author Share Posted September 15, 2017 Hey Marcousik thank you for looking into my problem I tried do the same but the game still crashes for me, I'll take another look at the code. My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Marcousik Posted September 15, 2017 Share Posted September 15, 2017 True. The bug occurs again here too; strange. It is difficult to test it properly because it is not always occuring under the same conditions ????? But I think it is something in the kill() function. Try to comment the 2 last lines in the kill() function, it seems to run..? -- self.entity:SetMass(0) -- self.entity:SetPhysicsMode(Entity.RigidBodyPhysics) Link to comment Share on other sites More sharing options...
DooMAGE Posted September 15, 2017 Author Share Posted September 15, 2017 Commenting also self.entity:SetMass(0) seems to work. So its a confirmed bug My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Marcousik Posted September 15, 2017 Share Posted September 15, 2017 There is for sure an incompatibility between a few lines in the kill() function. Commenting only these line solves the problem too: -- self.corpse:SetMatrix(self.camera:GetMatrix()) Link to comment Share on other sites More sharing options...
DooMAGE Posted September 17, 2017 Author Share Posted September 17, 2017 1 hour ago, jen said: Try printing the line number after every 5 line of codes or so and see at which line number the game stops. You should be able to determine the breakpoint by doing that. so the debugger is not working for you too? My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Josh Posted February 28, 2019 Share Posted February 28, 2019 I can't produce this error. 1 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...
Recommended Posts