Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using assets will fail on export with path not found #10

Closed
rand0m-cloud opened this issue Aug 28, 2022 · 2 comments
Closed

Using assets will fail on export with path not found #10

rand0m-cloud opened this issue Aug 28, 2022 · 2 comments

Comments

@rand0m-cloud
Copy link
Owner

Bevy's asset server first checks if the file exists at the path and then continues the loading. A workaround is placing an empty file at the paths not found.

Not sure how we can work around this as we need Bevy's asset server to not care if the file exists because we map the filepath into the Godot res:// paths.

@rand0m-cloud
Copy link
Owner Author

From the AssetPlugin:

        if !app.world.contains_resource::<AssetServer>() {
            let source = create_platform_default_asset_io(app);
            let asset_server = AssetServer::with_boxed_io(source);
            app.insert_resource(asset_server);
        }

Using AssetIo should work as we replace File I/O with Godot's resource pack system.

@rand0m-cloud
Copy link
Owner Author

Closed by 04cc76d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant