Blender_bevy_components_workflow icon indicating copy to clipboard operation
Blender_bevy_components_workflow copied to clipboard

registry in assets?

Open DasLixou opened this issue 1 year ago • 7 comments
trafficstars

Just a simple question: Why is the registry.json in the assets folder instead of the art folder? I don't have to ship it when releasing the game, do I?

DasLixou avatar Aug 10 '24 12:08 DasLixou

That is actually a very good point ! I'll check if anything needs the registry outside of dev, and if not , I'll move the export to "art"

kaosat-dev avatar Aug 10 '24 18:08 kaosat-dev

I use ”assets_src” as the ”art” directory. I like the suggestion on Discord to put it in target (although it feels like it’s a file that should be under version control?). Either way, the best would be if it was somehow configurable.

mmatvein avatar Aug 10 '24 21:08 mmatvein

Other weird thought right now, when we would put it in the art or target folder, and someone would run the shipped game, would that create an art or target folder with the registry? O.o or is it debug mode only?

EDIT: just saw that the plugin is only enabled on debug_assert

DasLixou avatar Aug 11 '24 09:08 DasLixou

Working through the quickstart guide, registry.json never gets created and the reload registry step produces this error:

Screenshot from 2024-08-17 12-38-17

Barugon avatar Aug 17 '24 19:08 Barugon

@Barugon make sure that you run in debug, or make a profile where you still have debug_assertions

DasLixou avatar Aug 17 '24 20:08 DasLixou

@Barugon make sure that you run in debug, or make a profile where you still have debug_assertions

I did that. Running it a second time did the trick.

Barugon avatar Aug 17 '24 20:08 Barugon

The reason the registry.json was not created for me was that I have a workspace and was using cargo run from the workspace root. Running cargo run in the crates root caused the file to be created. It would be nice if it could work out of the workspace root.

marijanp avatar Nov 16 '24 00:11 marijanp