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

Enums are not usable although saving them to the Project file. #3295

Closed
UliAbo opened this issue Mar 7, 2022 · 13 comments
Closed

Enums are not usable although saving them to the Project file. #3295

UliAbo opened this issue Mar 7, 2022 · 13 comments
Labels
bug Broken behavior.

Comments

@UliAbo
Copy link

UliAbo commented Mar 7, 2022

Describe the bug
I try to use Enums after saving them, but they don't show up in the CustomProperties of an selected Object, like I would expect it. I have also made sure to save the Enums in the Project file.

Expected behavior
Enums work :)

Media
image

Specifications:

  • OS: Windows 10
  • Tiled Version: v1.82
@UliAbo UliAbo added the bug Broken behavior. label Mar 7, 2022
@eishiya
Copy link
Contributor

eishiya commented Mar 7, 2022

When you say you "made sure to save the Enums in the Project file", what do you mean? Did you verify that the enums appear in the .tiled-project file, or do you just mean you exported them (which should be irrelevant)?

@UliAbo
Copy link
Author

UliAbo commented Mar 7, 2022

I made sure that it's inside the *.tiled-project file:

image

@bjorn
Copy link
Member

bjorn commented Mar 8, 2022

@UliAbo Would it be possible for you to share a minimal zipped up project directory with which you can reproduce this issue?

@UliAbo
Copy link
Author

UliAbo commented Mar 8, 2022

image

I just opened the project from yesterday and now it's there...
It seems like the project needed a restart of Tiled itself?

So this is no real bug from my side, I guess. Just the restart is necessary...

@bjorn Yesterday in the chat you mentioned problems other Users have - do they have the very same issue I described in my initial post?

@bjorn
Copy link
Member

bjorn commented Mar 8, 2022

Yesterday in the chat you mentioned problems other Users have - do they have the very same issue I described in my initial post?

I think there was at least one other person who also needed to restart Tiled to see the types. However, that should not be necessary, so there's still a bug somewhere. Do additional enums you're adding at least show up without requiring a restart?

@UliAbo
Copy link
Author

UliAbo commented Mar 8, 2022

Yes adding further ones works instantly.

@bjorn
Copy link
Member

bjorn commented Mar 8, 2022

Alright, I was able to reproduce the problem. It appears to me, that this only happens when you did not initially had a project set up. So when you do things in this order:

  • Launch Tiled without a project loaded
  • Open Property Types Editor, add some types
  • (Save the Project)

Then, even though the types will be saved to the project, they do not show up in the Add Property dialog. For that to work, you'll need to have a project loaded either at startup or through opening it after startup.

@UliAbo
Copy link
Author

UliAbo commented Mar 8, 2022

Okay! I definitely can confirm that. I did the same, I created the project and the enums all in one go.

@bjorn bjorn closed this as completed in 69cd4a0 Mar 8, 2022
@UliAbo
Copy link
Author

UliAbo commented Aug 6, 2022

I think with the new Custom Types, this problem is gone? This can be closed? Or do I overlook something?

@bjorn
Copy link
Member

bjorn commented Aug 6, 2022

@UliAbo I think you overlooked that this issue is already closed since a few months. :-)

@UliAbo
Copy link
Author

UliAbo commented Aug 6, 2022

Oh yes you are right of course^^°
I just overlooked it above as I was somehow always looking at the bottom to see if something has been closed.
image

I now learned it!

@eishiya
Copy link
Contributor

eishiya commented Aug 6, 2022

@UliAbo You should be able to see the status of an issue at the top of the page no matter how far down you scroll, that's the place to look. You don't have to hunt for the status in the timeline of the issue :]
image

@UliAbo
Copy link
Author

UliAbo commented Aug 7, 2022

Okay thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Broken behavior.
Projects
None yet
Development

No branches or pull requests

3 participants