Problem with compiling windows game

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

Hi everybody
I try to compile my game in windows using directly function ‘export’ of tool. It seem run all good but when i lunch my .exe one button of my game don’t work. If i try to play inside tool with test mode “play the project(F5)” it run good.
Where is the problem?

sorry for my english

What does the button do?

eaglecat | 2016-04-25 07:36

It’s the button “play”. it reset some var in an autoload script and change scene.
the code is:

func _on_gioca_pressed():
	get_node("/root/stato_gioco").punti = 0
	get_node("/root/stato_gioco").incremento_velocita = 0
	get_node("/root/stato_gioco").livello = 0
	get_node("/root/stato_gioco").contatore = 0

Beccacorvo | 2016-04-25 07:43

try ‘pack into excutable’ pack mode
and check resources tab ‘Export all resources in project’ is checked

eaglecat | 2016-04-25 12:04

thanks for the answare.
I resolve alone. There was a problem with the texture of a node. I just reload and now work good.

Beccacorvo | 2016-04-25 12:38