some assets aren't exporting with my game for some reason? I genuinly have no idea why
the images and music both dont load for my friend who tried out the game
the same issue happened to me when I ran the exported version
1 messages · Page 1 of 1 (latest)
some assets aren't exporting with my game for some reason? I genuinly have no idea why
the images and music both dont load for my friend who tried out the game
the same issue happened to me when I ran the exported version
Anyone know what the issue is-
I'd need to know more but it sounds like the references to your files got broken. If you run with the debug console you should seen an output. Probably something about being unable to find a file.
I got a bunch of errors here (ignore some of the weird ones I have to run this through wine, issue still persists on normal windows tho since my friend had the issue)
all of the data for these is stored in the charts folder, my friend was having issues with exporting jsons one time so I think the json files may be part of the issue
I see mixed cases here: res://Objects/Menus/song_selection.gd
It's strongly recommended to keep everything lower-case as different OSes don't handle these the same. Windows is case-insensitive, mac/linux is case-sensitive, and I think "Godot internal" is case-sensitive too.
I suggest to only use lower case everywhere, and then try again.
ok I checked using a linux export and the issue persists there
so this isn't an os issue I'm pretty sure this is just an issue with exporting
Godot might still have trouble to find the right files given the cases. 🤷♂️
ok so I found where the issue is being caused
nothing to do with the json files
if directory.file_exists("track1.ogg"):
chartData.songs.push_back(load(currentSongDirectory+"/track1.ogg"))
if directory.file_exists("track2.ogg"):
chartData.songs.push_back(load(currentSongDirectory+"/track2.ogg"))
if directory.file_exists("CoverTop.png"):
chartData.jackets.push_back(load(currentSongDirectory+"/CoverTop.png"))
if directory.file_exists("CoverBottom.png"):
chartData.jackets.push_back(load(currentSongDirectory+"/CoverBottom.png"))```
this code specifically is the point where it's messing up
my guess is because the directory doesnt exist because its embedded in the pck?