UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.39k stars 177 forks source link

Upbge Crashes when i try to make a Fps game #1835

Closed MigrelNB closed 11 months ago

MigrelNB commented 11 months ago

So, i'm new to GitHub and i don't know if it's here that i report errors about upbge. But i was trying to make a fps game but when i tried to parent an object to the camera, upbge crashed. But that was in 0.3.0, now on 0.3.6, i just make a basic fps controller, the camera becomes very laggy, only the camera, everything else runs smoothly, like if i pressed w to move fowards, it would move foward normally but when i move the mouse to control the camera it becomes laggy, and it still crashes if i parent an object to the camera.

youle31 commented 11 months ago

About the lag, it can come from true pulse not enabled on movement sensor.

About the crash, could you share a test file? Thanks

MigrelNB commented 11 months ago

ok so, i tried enabled true pulse on the movement sensor, and not only did that fix the laggy movement, but somehow it doesn't crash anymore, thanks for the help.

youle31 commented 11 months ago

ok, I close this report for now then, and if you have a crash and a file to test file and reliable steps to reproduce the crash, i'll reopen

MigrelNB commented 11 months ago

no wait, i'm very confused now, i tried to parent it to the camera and it didn't crash, but then i added an animation to the object i parented, and it crashed, so here's the file Cartoon game.zip

youle31 commented 11 months ago

This crash has been fixed in 0.4 alpha. It has also been fixed in 0.36 but after first release. There will be a corrective 0.36 release in next weeks with this bug fixed. It comes from it is not allowed to have a parent and a child not in the same layer (scene.objects and scene.objectsInactive). In your scene, cube has the eye unchecked (which will make it inactive) whereas camera has the eye checked. It is something which is not allowed.

after the fix, you will have a warning like that: Capture d’écran 2023-08-10 162304

MigrelNB commented 11 months ago

now it works, thanks.