You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From another closed issue it seems like the ConvertSaveload is an error? Either that or I'm missing something important. No matter how I change things in the includes I get errors about being unable to find 'serde' in the list of imported crates.
The text was updated successfully, but these errors were encountered:
dgobi
changed the title
Ch9 Items - ConvertSaveload in WantsToDropItem component
Ch8 Items - ConvertSaveload in WantsToDropItem component
Sep 10, 2021
Chapter 10 goes through how ConvertSaveload is used. I also saw that it's written before being used (i.e. in ch. 8). If you want to fix the error import use specs::saveload::{ConvertSaveload, Marker};
I also needed to use a specific version of serde for it to work, here's what I put in my cargo.toml:
serde = { version = "^1.0.44", features = ["derive"] }
serde_json = "^1.0.44"
And don't forget to add specs = { version = "0.18.0", features = ["serde"] } to cargo.toml. I was missing the features part and got unresolved import specs::saveload which I did not see at first because you're flooded with cannot determine resolution for the derive macro ConvertSaveload errors. This change is silently introduced in the sources chapter 11 (2.10 Saving and Loading).
Hello,
I'm a beginner following along with the tutorial and I came across a derivation that seems to be incorrect:
From another closed issue it seems like the ConvertSaveload is an error? Either that or I'm missing something important. No matter how I change things in the includes I get errors about being unable to find 'serde' in the list of imported crates.
The text was updated successfully, but these errors were encountered: