Hi guys. I’m at the final version of my game.
I tried to remove all the errors as possible as I can to package my game.
But suddenly my Player’s camera view functions wrong…
it looks like Camera moves it’s location inside the player’s body I guess.
Oh boy. This could literally be anything. And you know the game better than anyone.
The first thing I would suggest is to track the world position of the camera with a print string and event tick. You can try doing the same with the location of the boom/spring arm component, but I am unsure if it will actually give you any changes in value.
The next thing I would do is to deactivate that camera, and add another camera to your character, activating that one, and see if you have the same issue.
-If you do have the same issue, there could be a collision somewhere forcing the camera into the player… or wherever the camera is actually located.
-If you do not have the same issue, you’ll need to troubleshoot any code that is attached to that camera.
I figured out what’s happening.
I test with my backup file, when I delete the saved folder for decrease the size of project,
that weird camera view happens …
My developer friends said it’s ok to delete that saved folder but…
yeap I guess not haha…
if the game is not running with no problems. They are temp folders that are recreated on project build.
Saved will hold save game files and config files though.
As for the problem I would look into the camera boom & camera setup. Your camera is probably detecting a collision on the character itself causing it to move.
Did you add the weapon during the time when the weird behavior started? Try setting the weapons collision and trace response to none and see if the behavior changes.
Did you change anything in the collision settings of the camera and capsule component?
You could also be getting an error where your character isn’t even spawning. The camera then spawns at 0,0,0 with no player character. This could be due to a level override setting for the game mode if the player character is set to none and no possession occurs during gameplay.
Actually I tried with my Backup Project to not delete the ‘Saved’ Folder
and Packaging.
Most interest thing is… Everything works perfect in Unreal Editor.
So I assume the Camera setting is good to go
Just after Packaged, Camera works weirdy, Even it works perfectly as Standalone mode in Unreal Editor.
Don’t know any idea why it different between Standalone mode and Packaged game.
On the level Level2_school go into world settings and try expanding “Selected Game Mode” and see if all of the parameters are correct (player character and controller are set etc)
Try ejecting from the game mid play (can’t be in PIE only in the viewport) and see if your default character spawns in the problematic level. Select him in the outliner and focus on him and see if his hierarchy is intact.