Car move on editor but not in the packaged game

Hi,

My game works fine on the editor and I can build my car and move it when finished. All good.

But when I build the .exe file and run the game the car doesn’t move at all…

I even set a key to remove constraints just to make sure that wasn’t the problem, but it didn’t change anything.

Hey @kayorx!

I hate to bug you about it, but we’re going to need a lot more details to be able to help :frowning: Things like:

Is the car the primary pawn or do you have a character that gets in the vehicle?
What is the code for the vehicle itself? (Screenshots)
If you’re boarding a vehicle, how do you go about this process?
Is the vehicle set as the default pawn in the gameMode?

Any and all screenshots and video you can supply will greatly increase not only your visibility, but also the likelihood that someone will be able to help! Gather up some things and get back to us! :slight_smile:

It sounds like there may be an issue with the car’s movement code or input handling when running the game as a standalone executable. Here are a couple of things you can try to troubleshoot the issue:

  • Verify that the input bindings for the car’s movement are set correctly in the project settings. Make sure that the keys you are using to move the car are properly bound to the corresponding inputs in the project settings.
  • Make sure that the car’s movement code is being executed. You can do this by adding some debug print statements in the code or by using the Unreal Engine’s built-in debugging tools like “breakpoints” to see if the code is being executed.
  • Make sure that the input is being properly received. You can check this by adding a print statement in the input event or by using the “Get Key Value” node to check if the key is being pressed.
  • Make sure that the car’s physics and collision settings are set up correctly. If the car is not colliding with the environment, it will not be able to move.
  • Make sure that the car’s movement component is not set to disabled or inactive.
  • Make sure that the car’s movement component is not being overridden by another component or script.
  • Check the log files for errors or warnings and look for any error messages related to the car’s movement.
  • Finally, it’s possible that there is an issue with the build configuration of your project. Try building the project with a different configuration or with a different version of the engine.

Try following these steps and see if it resolves the issue. If not, please let me know and I’ll help you further.