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

Can't build without example/assets folder #261

Open
ViK0s opened this issue Apr 17, 2024 · 2 comments
Open

Can't build without example/assets folder #261

ViK0s opened this issue Apr 17, 2024 · 2 comments
Assignees

Comments

@ViK0s
Copy link

ViK0s commented Apr 17, 2024

I cannot build my projects without copying the examples/assets directory from the repo. While trying to build for desktop it steers me to the rich_text.gui with this error:

/druid/custom/rich_text/rich_text.gui
The file '/example/assets/fonts/game.font' could not be found.
The file '/example/assets/images/kenney.atlas' could not be found.

I tried to fix that by changing the default font used by it. While that fixes it for the desktop build, it makes me unable to build HTML5 with the error:

/game.project
Unable to find resource example/assets/fonts/game.fontc

I have already checked if it could be because of different libraries by running inside a new project with only druid, but the errors persist.
I use defold version 1.7.0 and druid version 0.11.0

@Insality
Copy link
Owner

Thanks for the issue!

To solve it now, you can make a copy the rich_text.gui to your game folder, adjust the textures/font it used and use it instead of the library template

This is more correct way to use it, honestly

@Insality Insality self-assigned this Apr 18, 2024
@ViK0s
Copy link
Author

ViK0s commented Apr 18, 2024

Ah, makes sense 😅

Thank you for help!

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

2 participants