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

jimschubert
In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
New
GilWright
Working through the steps (checking that the Info,plist matches exactly), run the demo game and what appears is grey but does not fill th...
New
Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
New
edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
New
herminiotorres
Hi @Margaret , On page VII the book tells us the example and snippets will be all using Elixir version 1.11 But on page 3 almost the en...
New
jeremyhuiskamp
Title: Web Development with Clojure, Third Edition, vB17.0 (p9) The create table guestbook syntax suggested doesn’t seem to be accepted ...
New
gilesdotcodes
In case this helps anyone, I’ve had issues setting up the rails source code. Here were the solutions: In Gemfile, change gem 'rails' t...
New
jgchristopher
“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ” Excerpt From: Br...
New
digitalbias
Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64) If you follow the defau...
New
bjnord
Hello @herbert ! Trying to get the very first “Hello, Bracket Terminal!" example to run (p. 53). I develop on an Amazon EC2 instance runn...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
AstonJ
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me. I think the Planck and the Preonic (o...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
PragmaticBookshelf
Use WebRTC to build web applications that stream media and data in real time directly from one user to another, all in the browser. ...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
hilfordjames
There appears to have been an update that has changed the terminology for what has previously been known as the Taskbar Overflow - this h...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New

Sub Categories: