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

[Mac] Wrong character replacement in the path #13

Open
Purfakt opened this issue Feb 14, 2023 · 4 comments
Open

[Mac] Wrong character replacement in the path #13

Purfakt opened this issue Feb 14, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Purfakt
Copy link

Purfakt commented Feb 14, 2023

OS: macOS Monterey Version 12.5 (M1)

The name of our project is: Spirits: Seeds of Dreams. The Storyteller.
EDIT:
The name of the project is The Storyteller..
The company name is: Spirits: Seeds of Dreams..

The generated path replaces the : as a _:
image
But in the actual path the : is replaced as /:
image

This is certainly related to #4 .

@Dysman
Copy link
Owner

Dysman commented Feb 14, 2023

Thanks for this bug report.
Will check it out so soon as possible (need to organise a Mac)

@Dysman Dysman self-assigned this Feb 14, 2023
@Dysman Dysman added the bug Something isn't working label Feb 14, 2023
@Dysman
Copy link
Owner

Dysman commented Feb 18, 2023

Have try to reproduce in general. From Unity perspectife is th ':' character not allowed in project names.
grafik

Maybe you project is older so that this guard in the UnityHub was not available at this time.

For me it's not possible to create a project with the name "Spirits: Seeds of Dreams. The Storyteller" at all. Not vis UnityHub or directly over the Engine.

But it was possible to get you filepath over redefine the project name in the project settings. So I can validate that tehre is an issue.

The Mac that I have access to is a bit older and have a diffrend behaviour as you one.
Configured project name:
unity.BG Tools.Spirits: Seeds of Dreams. The Storyteller.plist
Actual file name:
unity.BG Tools.Spirits: Seeds of Dreams. The Storyteller.plist
Plugin replacement:
unity.BG Tools.Spirits_ Seeds of Dreams. The Storyteller.plist

In may case her the filename is exactly the same like the project name and the ':' stays.
Looks for me like the newer OS version or that newer unity version changes the bahaviour.

@Purfakt
Copy link
Author

Purfakt commented Feb 19, 2023

Hi @Dysman. Thanks for the quick answer.

It turns out this wasn't the project name, but a concatenation of the company name (Spirit: Seeds of Dreams.) and the project name (The Stroryteller).
After some discussion with the owners of the project, we figured out that these values weren't really accurate and we just modified the company name.

I believe this ticket still holds value, but in our case, we solved the issue differently.

@Dysman
Copy link
Owner

Dysman commented Oct 2, 2023

New occurence reported via mail:

Now, the less fun part, I found a small bug. On Mac, when there is a colon in the game name, Unity decides to replace it with a slash. I know that's not very smart, but it's, your tool doesn't find the file anymore as you replace any colon with an underscore.
Joining the screenshots of each side.

Precisions :
OS : MacOS Ventura 13.1 - French
Unity version : 2020.3.44f1
PlayerPrefs Editor version : 1.2.2
Project : Entirely new, no modification except in the game name.

grafik

grafik

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants