#Weird exporting bug?

1 messages · Page 1 of 1 (latest)

latent flume
latent flume
#

Anyone know what the issue is-

still ice
#

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.

latent flume
#

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

late grotto
#

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.

latent flume
#

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

late grotto
latent flume
#

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?

late grotto
#

Normally when referring to files you use user:// or res://

latent flume
#

well currentSongDirectory starts with res://