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

"Could not load project ... ← Resource ... already exists" error if there are resourses' names differ only in letter case #244

Closed
AlexGovr opened this issue Jul 4, 2024 · 1 comment

Comments

@AlexGovr
Copy link

AlexGovr commented Jul 4, 2024

Hi!
Not a big issue but still seems to be a bug.

The issue

My project had two resources: a sprite named Big_Tree and a tileset named Big_tree. Names are almost identical yet differ only in one letter case. This causes an error with message "Could not load project <project_name> ← Resource big_tree already exists"

The issue can be easily fixed by using "non-case-sensetive" different names. In my case I renamed those two assets to sBig_Tree and tsBit_Tree

@adam-coster
Copy link
Member

Due to some legacy weirdness and platform-specific behavior around casing, Stitch just takes the simplest and most-compatible strategy of requiring all assets to be uniquely named in a case-independent way. Unfortunately that is baked into a lot of Stitch functionality, so it'll probably have to stay that way.

Asset type prefixes are useful in GameMaker anyway since everything is global.

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