Exporting Game as .EXE

In this tutorial, you will learn how to export your game as an .exe in Blender.

Step 1: Preparation
Open up your game, and go to File -> Pack Data. This will pack all of your data, so you don’t have to put all of your pictures,
sounds, and whatnot into  the same directory.

Step 2: Exporting
You will need to go to File -> Save Runtime. Save it to a file you can find easily. Now, browse to where you have Blender installed. Copy(Ctrl+C) the following:

  • avcodec-51.dll
  • avformat-51.dll
  • avutil-49.dll
  • pthreadVC2.dll
  • python24.dll
  • python25.dll
  • SDL.dll
  • tk84.dll
  • zlib.dll
  • MSVCR71.dll

Now, browse to where you saved the runtime, and paste the files(Ctrl+V).

Step3: Finalizing
All that is left is for you to do, is to test it. Then you can zip it and you will have successfully exported your game as an .exe.

Problems?
Sometimes, we can get errors when exporting the game. One of the biggest issues is with python script. If you have some scripts not working in the .exe, then you can just put those scripts in the same directory. 

About these ads

20 Responses to “Exporting Game as .EXE”

  1. Shad Says:

    When i go to copy those files Most of them are not listed, and it won’t let me copy or paste them. When I push Ctr+C it says ERROR ‘no second fileselect’

  2. BGE Tutorials Says:

    Sounds very odd. What Operating System are you using?

    If you’re using Windows, be sure that you’re going to where you installed Blender (usually “C:\Program FIles\Blender Foundation\Blender\”). If you are missing those files, I recommend that you reinstall Blender. Also, make sure that you hit Ctrl + C, and not Ctrl + X, because the later will delete the file, and you possibly will not be able to paste those files.

  3. Tor Says:

    For mac all you need to do is save runtime and it makes the standalone game file for you.

  4. BGE Tutorials Says:

    You still have to include all of the .DLLs, right?

  5. RH2 Says:

    how do you change the icon of the runtime?

  6. BGE Tutorials Says:

    You will need a resource hacker (such as XN Resource Editor), then open the executable file, browse for the icon, and then replace that with your own image.

  7. David Says:

    You have to copy all the mechanics from blender internals. Not just the ones listed here. Also, I think some files listed here don’t exist in blender 246 version.
    I just made my first blenderexe game;) Thanks for your help and time posting this tut.

  8. Blayzeing Says:

    I didn’t have most of the files I needed, so I downloaded the latest type, but that is completely different!?

    PLEASE HELP ME!!!

  9. Arthur Says:

    It seems to be working for me, but when I run the game it doesn’t play with any shading, it’s just solid colors, and my background. The lights I’m using are on the right layer, but it still doesn’t look like it effects the game. Anybody know what the problem might be?

  10. Sly Says:

    i have the same problem as Arthur…the game is not rendered it’s…unrecognizable..anyone know how to fix this?

  11. Sly Says:

    i have the same problem as Arthur, the game is just not rendered….what could cause this?

  12. mercc1 Says:

    well i have levels on mine and when i do this the block that you touch to move to next level doesnt work now only in blender idk how get work

  13. kadri Says:

    thanks my friend i was very usefull for me :)

  14. Lockwert Says:

    Please guys, HELP ME!!!!
    When i try to run my game this error message pops up in the screen!!!

    “The application failed to initialize properly (0xc0150002). Click ok to terminate the application.”

    AAAAAArghaarahajrhjahrjhaaaaaaaarrrrrrrrrarhjahjhjhhagjgjghgh!!!!!!!!!!!!!!!

    HELP MEEEEEEEEEE!!!!!!!!!

  15. BlenderGuy Says:

    Arthur:
    You can go to the lamps panel to choose which layers a light affects.

  16. Nathan Says:

    You are the king!!!
    Thanks!!

  17. Aaron Says:

    I found i had the same problem as Arthur. I found that the lamps had no effect. I found that you need to unwrap the mesh (U) and then press Ctrl+Alt+B. Then you select the ‘Full Render’. This saves the normal colours and shadows as a Texture. Save the texture, re-pack the external data, then give it a go. Hope this helps =)

  18. Aaron Says:

    I found i had the same problem as Arthur. The lamps had no effect. I found somewhere that you need to unwrap the mesh (U) and then press Ctrl+Alt+B. Then you select the ‘Full Render’. This saves the normal colours and shadows as a Texture. Save the texture, re-pack the external data, then give it a go. Hope this helps =)

  19. Aneske Says:

    Hi, Thanks for the help regarding the dll files… My first game is working..yeah


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: