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

Missing Downcast: StateTransitionStageLabel #21

Open
Semihazah opened this issue Jun 22, 2022 · 4 comments
Open

Missing Downcast: StateTransitionStageLabel #21

Semihazah opened this issue Jun 22, 2022 · 4 comments

Comments

@Semihazah
Copy link

Whenever I start up my game, I get a message in the console about how my states are missing downcasts. I have no idea what it means, and I'm not sure it causes problems.

@inodentry
Copy link
Contributor

Please post a copy of what the message looks like, and what your app setup code looks like.

From just your description, I have no idea what is really going on.

@Semihazah
Copy link
Author

The message is

Missing downcast: StateTransitionStageLabel(TypeId { t: 2123205023094397789 }, "fallen_project::game_states::GameState")
Missing downcast: StateTransitionStageLabel(TypeId { t: 14454845288124870650 }, "fallen_project::game_states::loading::LoadingState")

The states are

#[derive(Component, Debug, Clone, Eq, PartialEq, Hash)]
pub enum LoadingState {
    Idle,
    Loading,
}

and

#[derive(Debug, Clone, Eq, PartialEq, Hash, Deref)]
pub struct GameState(pub String);

They are added via add_loopless_state

app.add_loopless_state(LoadingState::Idle);
app.add_loopless_state(GameState(TITLE_STATE.to_string()));

@InnocentusLime
Copy link

I think I know where this message is coming from. It seems to belong to bevy_mod_debugdump and is printed right here. Seems like it doesn't know how to handle iyes_loopless's custom stage type.

Basically, it doesn't seem to be an issue with iyes_loopless.

@Semihazah
Copy link
Author

Thanks. I didn't know what the message meant. Hope you guys resolve it on their side.

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

3 participants