KoBeWi / Metroidvania-System

General-purpose framework for creating metroidvania games in Godot.
https://godotengine.org/asset-library/asset/2301
MIT License
1.04k stars 50 forks source link

scenes not loading properly on exported project #10

Closed dehboxturtle closed 10 months ago

dehboxturtle commented 10 months ago

Hello! Thanks for sharing this add-on, it is great! I was just curious if you've run into any issues in the past when exporting your project?

When I test things in Godot everything seems to work just fine, however when I tried exporting a windows build the game script seems to be failing to properly load scenes. I am using the game script from your sample project with some very minor tweaks. This is the first time I've made a game in Godot so apologies if I'm missing something obvious.

Here is a video showing what I mean (sorry it won't let me upload more than 10 MB) https://www.dropbox.com/scl/fi/ks8br1xs419k5mro25316/metsys_scene_loading_issue.mp4?rlkey=vwniia72m2sevlzq37ek08bci&dl=0

Happy to provide more info if it seems like it might be related to metsys or open a bug in Godot github if it seems like a more general issue.

dehboxturtle commented 10 months ago

Dug around a bit more and figured out how to export projects with debug enabled. It prints out this error WARNING: Map data file does not exist. I updated it to print the path that it is trying to find the file at and it says: Map data file does not exist. location: res://levels/MapData.txt Although it is definitely located there in the project so I'm not sure why it is failing to find it. I'll keep playing with it for now. Right now I suspect maybe some permissions issue or something?

image
dehboxturtle commented 10 months ago

Ah ok, figured it out! Apparently Godot does not export .txt files by default when you export your project. You have to manually specify it in the export settings.

image

So I guess it ended up being a basic thing after all :P sorry for the noise! Hopefully this will help other new Godot users that are trying to use MetSys as well!