zkat / big-brain

Utility AI library for the Bevy game engine
Other
1.01k stars 61 forks source link

using prelude rather than ecs::xyz in derive #99

Closed ekalosak closed 4 months ago

stargazing-dino commented 4 months ago

I reproduced your initial issue and verified these changes fixed it for me

zkat commented 4 months ago

me, with this bug: images

anyway, thanks for the PR.

ekalosak commented 4 months ago

Ah, so, I can verify that the change to the import path has nothing to do with it.

The fix is to make sure that the Bevy version used by Big Brain match the Bevy version used by the user code. So, with latest Bevy 0.13 and latest Big Brain 0.19, there is a mismatch - as Big Brain 0.19 uses Bevy 0.12.

Thus the compiler saying "found a different Commands" - it's from a semantically different Bevy dependency.

In my user code, I simply specify the Big Brain dependency using a git location - as the main:HEAD of this project is on Bevy 0.13 - and the error evaporates, the example builds successfully, and everything works.

Really bottom line just points to releasing Big Brain 0.20 including Bevy 0.13, imho.

ekalosak commented 4 months ago

The compiler message could be more clear, I think is the real answer...