Why does my casino game crash right after I launch it?

Hi! just released my slot game and crashing directly from opening the .exe file? What could cause that? Is it some kind of conflict with a program on your system? Are you running another version of [game engine/tech]? It works fine when I run it from the editor. Anyone else have trouble opening a casino game? Need help figuring out what to do.

5 Answers

LowSpecTesting
LowSpecTestingAnswered on 12/22
Best Answer

usual suspects for crashes when you run from an EXE - no runtimes or wrong permissions. If it runs fine in the editor, then make sure you've bundled everything you need. Perhaps the EXE is missing a DLL that the engine needs. Run as admin to see if the problem is permissions. It could also be antivirus or firewall blocking something. Make sure you aren't using features that require a particular runtime version. Try running the game on another computer to rule out local configuration problems. If you are making a slots game for a casino, then don't use anything platform specific that wouldn't allow it to run without the editor. The EXE may also be looking for a config file or resources in the wrong place. Try stripping down your project to the bare minimum and re-building to narrow down the problem to either your code or your assets.

OnboardingCritic
OnboardingCriticAnswered on 12/22

A possible cause of problems with a game that runs in the editor but not on launch is incomplete dependencies or corruption. Make sure all necessary DLLs are present alongside the .exe. Re-build the release version and ensure there aren’t any missing files. Then, try running the game with administrative privileges and look for error messages. Your antivirus software or system settings may be preventing the game from opening; disable it temporarily or set compatibility mode to Windows 10/8.1.

ExploitOrFeature
ExploitOrFeatureAnswered on 12/23

Well, I have good news for you – it’s almost always a dll or anti-cheat problem. Most likely, you’re not installing all of the appropriate game engine runtime packs on your host. If it works when launched from the editor but fails as an .exe, then clearly it’s not being included in your build process. Ensure that all the appropriate libs / frameworks are included. Run as an administrator. Try running in safe mode (if that works, you know you need to clean up some of your other apps! )

NarrativeSystems
NarrativeSystemsAnswered on 12/24

If it works fine in the editor, but explodes when running the .exe, it is probably a build issue. Make sure you have all required files and resources bundled correctly. Are you using some editor-only functionality? Can you run the .exe file as administrator? Did you include all required DLLs/external libs? Does it work with a new build? Some users reported issues due to not linking DLLs correctly or using an old version of the engine. Go through all the basics: clean your project, rebuild, run on another computer.

CombatTheory
CombatTheoryAnswered on 12/25

It runs fine in the editor but doesn’t launch! What could possibly be going wrong? Are you sure you’ve packaged all the required DLLs, engine runtime libraries, and other assets with your game? Have you tried running as administrator? Could something else be hogging the port? Do you remember whether your players will also need Visual C++ Redistributables or .NET runtimes installed? Or maybe try running it from a different PC. Probably just forgot a DLL or have a permissions problem…

Your Answer