I can't export to windows

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ZeBirosca
:warning: Old Version Published before Godot 3 was released.

Read the answer

On the editor everything works just fine, but when I try a exported version I get bunch of errors and the game just pops up and close.

Here’s the console


full here: http://i.imgur.com/WDUSKqu.png

I’m using the godot 2.1.3 stable and the export template 2.1.3 stable too.

Can someone help me? The export was working in the last time I tried it.

On which operating system are you running godot?

In case of windows:
Did you select a project & output directory with sufficient access rights? (So you project is not stored somewhere in c:\Program files.…)

wombatstampede | 2017-08-22 14:05

Windows 7 64 bits.

My project is stored at C:\Users\UserName\Desktop\Godot Projects\Projects/Project
I have access rights there.

I don’t know if this can help, but here is my exe file:


ZeBirosca | 2017-08-22 17:27

:bust_in_silhouette: Reply From: ZeBirosca

Ok, I figured out why I was getting the errors.
Inside my code I had this:


I load a texture in run time using preload. Looking at the console I discovered that I was putting the wrong path. Isn’t “res://sprites/UI/box_green.png” is “res://sprites/ui/box_green.png”. Did you see the diference? Only the UI in uppercase.
The engine didn’t give me any warning about this on the editor. Everything worked just fine in lowercase.

Oh, sure. That is a pitfall. :slight_smile: Good that you found it!

See here under “Drawbacks”:
File system — Godot Engine (stable) documentation in English

…, it will work just fine on their platorm, but not on other
platforms, such as Linux, Android, etc. This may also apply to
exported binaries, which use a compressed package to store all

wombatstampede | 2017-08-23 06:33