Jump to content
DoomSlayer

Game crash when killed by crawler

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

19EwgCM.jpg

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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)

 

Share this post


Link to post
Share on other sites

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())
 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...