0 votes

Guys, help! I'm exporting my game to windows but it just opens a black screen and closes quickly, I do not know what to do
enter image description here
I exported another game from Godot and it worked perfectly, this error in my view is inside the project, I already disabled the singletons to see if it was but it was not, I already exported previous versions of this project and everything was fine, besides me not I'm trying to get the problem out of the box, but I'm not sure how to do it. questions to know if someone knew how to solve ... but nobody knows what to do

EDIT: I ran the game by CMD and something appears now, that error-filled message what is it?

enter image description here

asked Feb 19, 2018 in Projects by NaythanFox (24 points)
edited Feb 19, 2018 by NaythanFox

Please don't replace your previous images next time. This will get hard to understand for users having the same problem but could'nt understand the whole story.

Could you please provide more insights of your project? Interesting infos:

  • The structure of your project files
  • The code you have written
  • A zip containing your project files to investigate it on another machine

Thanks for the project files. I investigated them and updated my answer - just see my edit. By the way: Nice effects and project structure :)

Thank You :) , I continue to work to make a better game

1 Answer

0 votes

Change your savepath to user://save.data instead of using res://.
This is explained in the Filesystem docs. You can find further information in the Saving games Tutorial.

Even if it is not always recommended you can use print-debugging to check your projects when getting errors or when it shows strange behavior. Insert a print("App quitted because the save.data file could not be found.") right before your return statement and you will see that something is happening there.

I looked into your project files and you clearly messed something up with your filepaths. I'm not sure why it is not recognized when starting the game in the editor but if you export you can see that files couldn't be found. This is because you used CamelCase once but your files and folders were renamed or something like that. You only have to recheck all your filepaths in your code.

Following is a list of lines that I had to adapt till the exported game started correctly. The main problem was that you used "Scene" instead of "scene" in arguments for your preload() and change_scene() statements:


game - scenes/game.gd


var punch = preload ("res://scenes/gameobjs/socoBox.tscn")










answered Feb 19, 2018 by rolfpancake (1,006 points)
edited Feb 20, 2018 by rolfpancake

Unfortunately it did not work, but when I start the project it appears

enter image description here

This message is normal behavior. See my comment below the question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.