You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I setup some images in directory structure like this:
assets
images
button.png
menu
button.png
In my mantle config, I specify my images like this:
assets:
- assets/images/**/*.png
Mantle tries to generate the same asset alias for both button.png. It is worth noting that image are successfully published, it's just the asset alias part that fails.
To Reproduce
Steps to reproduce the behavior:
Setup some images like described above
Run mantle deploy
See error Failed: Roblox error (409 Conflict): An alias with the provided name already exists.
Expected behavior
I have not used mantle a lot, but it seems like the alias could probably be made up from the image path instead of just the image name?
Side question: what is even the alias used for? I can already get the image id from the mantle outputs using the image path. In my setup I don't think I even need the alias.
Environment (please complete the following information):
OS: Windows
Mantle Version [e.g. 0.11.13]
The text was updated successfully, but these errors were encountered:
Side question: what is even the alias used for? I can already get the image id from the mantle outputs using the image path. In my setup I don't think I even need the alias.
Aliases are a way to mark the images (and other assets) as your game's assets and name them. You may browse those "aliased" assets in Asset Manager widget within studio.
You may also reference those assets within that game by an alias instead of asset id, eg: rbxgameasset://Images/people
structure is rbxgameasset://Images/(imageAliasHere) [Images is not an asset folder name but a default category assigned by Roblox]
instead of rbxassetid://(asset id which changes everytime)
This way you can keep the images in-game kept up to date without redeploying the game few times everytime (1st to push assets, then 2nd to update the asset ids)
I'm not sure why mantle does not use the full path to generate the alias though (Roblox limits perhaps?)
This definitely feels like a bug. I do not remember why I made that decision initially - is it possible that aliases are not allowed to have additional / characters? Even if that is the case, we should probably use the full path and replace slashes with dashes or something.
Describe the bug
When I setup some images in directory structure like this:
In my mantle config, I specify my images like this:
Mantle tries to generate the same asset alias for both
button.png
. It is worth noting that image are successfully published, it's just the asset alias part that fails.To Reproduce
Steps to reproduce the behavior:
mantle deploy
Failed: Roblox error (409 Conflict): An alias with the provided name already exists.
Expected behavior
I have not used mantle a lot, but it seems like the alias could probably be made up from the image path instead of just the image name?
Side question: what is even the alias used for? I can already get the image id from the mantle outputs using the image path. In my setup I don't think I even need the alias.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: