0
$\begingroup$

I have a game with textures and I want to export the game into an executable file. I know how to export it but when I run it, it hasn't got any textures? Please help.

$\endgroup$
  • $\begingroup$ Are you using these instructions? $\endgroup$ – user9513 Jan 12 '16 at 16:15
  • $\begingroup$ Yes, I export using File>>Export>>Save as game engine runtime $\endgroup$ – Xavier Pedros Jan 12 '16 at 16:51
  • $\begingroup$ Are you packing external data before you export, as per the instructions? $\endgroup$ – fergal Jan 12 '16 at 17:09
  • $\begingroup$ Yes, and the texture in the game turns black $\endgroup$ – Xavier Pedros Jan 12 '16 at 17:11
  • $\begingroup$ Never used BGE, but have you tried to make all paths relative? (File->External Data) $\endgroup$ – bortran Jan 12 '16 at 18:12
1
$\begingroup$

When you want your application file include the textures then you need to perform Mainmenu/File/External Data/Pack All Into .blend before creating the application file.

enter image description here

Each asset that is not included will not be found and therefore not be displayed.

$\endgroup$
0
$\begingroup$

When you do not want your application file to include external assets you need to perform Mainmenu/File/External Data/Make All Paths Relative before creating the application file.

enter image description here

Do not forget to deliver the files with the application file at the same relative position as at the moment of path change.

Each asset that is not found will not be displayed.

Remarks:

  • You need to deliver with relative paths as the end-user will not use your local paths.
  • It is easier to develop with absolute paths. This allows to move the linking .blend file around without the need to adjust the paths.
  • Moving linked .blend files around always requires to update the paths withing the linking .blend files regardless if the paths are relative or absolute.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.