ResourceLoader fails to load a saved binary resource

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RainCatalyst

I’m saving and loading my resources like this:

ResourceSaver.save(SAVE_PATH, simulation_data)
simulation_data = ResourceLoader.load(SAVE_PATH)

It works fine with .tres resources, but when I try to load a binary (.res) resource, the load function returns an empty resource (even though the file exists).
Are there any solutions to this issue? Do I need to put some extra flags when saving the resource as binary? I didn’t find anything useful in the docs.