matson48 / sglscript-godot

Lightweight framework for making cutscenes in video games.
MIT License
13 stars 1 forks source link

Exported game crashes #1

Open JeriahJ opened 7 years ago

JeriahJ commented 7 years ago

I tried including this in my project, but anything I export crashes to desktop. I then tried exporting the sample projects provided in the download and have the same problem.

matson48 commented 7 years ago

Hi. Thanks for using SGLscript. If you could tell me what version of Godot you're using, on what operating system, and the text of any error messages that show up, that may help me narrow down the problem.

I do remember running into a similar problem when I tried exporting a game using SGLscript, so maybe this will help:

I was using Godot 2.1.2 on Windows 7, and the problem turned out to be that the *.sglscript files were not being included in the exported game, so the file loading functions were failing. In the "Project Export Settings" window, on the "Resources" tab, I had to set the "Export Mode" to "Export all files in the project directory." I tried using the other settings to manually include the files, but for some reason, those didn't seem to work—I wasn't sure if I was doing something wrong, or if it was a glitch in Godot. Since I wasn't quite sure what was causing the problem myself, I forgot to document this, sorry.

I haven't tested SGLscript with Godot 3 yet, so if you're using Godot 3, there may be different reasons why it's crashing. I'm waiting for Godot 3 to have stables before I upgrade SGLscript for it.

My entry for the Dec 2016/Jan 2017 Godot Game Jam is probably the best real-world example of SGLscript in action, and has the export settings set up in the way I described.

Hope that helps.