NekoiNemo

NekoiNemo

Advanced Hands-on Rust: Numerous issues with Loading Menu parts (page 119-128

Setup Asset Store

On page 120 we’re told to make a fn setup in asset_manager, in a format of a bevy system, this is done after being told to uncomment adding setup fn as a system to bevy on the previous page, and told we will be implementing it now.

We never actually end up running an application using this code, as it gets discarded immediately after, without that being mentioned.

Later, on page 126 we use setup_asset_store fn that we never declared and never implement it after. Consulting with sources, the function we were supposed to write on 120 is that setup_asset_store, except it takes references to resources, not Res<> handles, and also returns an instance of AssetStore. Reader is never told to make these changes.

Workspace is ignored

Minor, but page 125 forgets that we’re using workspace and treats library’s Cargo.toml as having dependencies specified with versions

loading_menu re-exports

On page 126 we’re told to create loading_menu module, but never told to do blanket re-export of everything from it, despite the functions being used later as bevy_assets::setup (with function being declared in loading_menu.

The entirety of build() at the end

Not only all of the above, but the entire body of build() on page 128 is only annotated as us needing to add usage of Egui plugin to the setup, while completely ignoring the numerous additions and changes that are made to the function (namely, everything to do with assets in the last block)

It also uses T::default(). but we’re never told to update T’s constraints to also include + Default. And, unlike similar omission with Copy - this time the where T isn’t even shown in the code block

Where Next?

Popular Pragmatic Bookshelf topics Top

belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
New
jdufour
Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
New
raul
Hi Travis! Thank you for the cool book! :slight_smile: I made a list of issues and thought I could post them chapter by chapter. I’m rev...
New
herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |&gt; handle_event() |&gt; render() but the correc...
New
HarryDeveloper
Hi @venkats, It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex&gt; product = %Product{} %Pento....
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
nicoatridge
Hi, I have just acquired Michael Fazio’s “Kotlin and Android Development” to learn about game programming for Android. I have a game in p...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
New
New
New

Sub Categories: